PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ is_xlink()

static bool is_xlink ( xmlNodePtr  node)
static

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

Definition at line 230 of file lwgeom_in_gml.c.

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

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: