PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ is_xlink()

static bool is_xlink ( xmlNodePtr  node)
static

Return true if current node contains a simple XLink Return false otherwise.

Definition at line 231 of file lwgeom_in_gml.c.

232{
233 xmlChar *prop;
234
235 prop = xmlGetNsProp(node, (xmlChar *)"type", (xmlChar *) XLINK_NS);
236 if (prop == NULL) return false;
237 if (strcmp((char *) prop, "simple"))
238 {
239 xmlFree(prop);
240 return false;
241 }
242
243 prop = xmlGetNsProp(node, (xmlChar *)"href", (xmlChar *) XLINK_NS);
244 if (prop == NULL) return false;
245 if (prop[0] != '#')
246 {
247 xmlFree(prop);
248 return false;
249 }
250 xmlFree(prop);
251
252 return true;
253}
#define XLINK_NS

References XLINK_NS.

Referenced by parse_gml_coll(), parse_gml_curve(), parse_gml_data(), parse_gml_line(), parse_gml_linearring(), parse_gml_mcurve(), parse_gml_mline(), parse_gml_mpoint(), parse_gml_mpoly(), parse_gml_msurface(), parse_gml_point(), parse_gml_polygon(), parse_gml_psurface(), parse_gml_surface(), parse_gml_tin(), and parse_gml_triangle().

Here is the caller graph for this function: