PostGIS  2.5.0beta2dev-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 200 of file lwgeom_in_gml.c.

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().

201 {
202  xmlChar *prop;
203 
204  prop = xmlGetNsProp(node, (xmlChar *)"type", (xmlChar *) XLINK_NS);
205  if (prop == NULL) return false;
206  if (strcmp((char *) prop, "simple"))
207  {
208  xmlFree(prop);
209  return false;
210  }
211 
212  prop = xmlGetNsProp(node, (xmlChar *)"href", (xmlChar *) XLINK_NS);
213  if (prop == NULL) return false;
214  if (prop[0] != '#')
215  {
216  xmlFree(prop);
217  return false;
218  }
219  xmlFree(prop);
220 
221  return true;
222 }
#define XLINK_NS
Definition: lwgeom_in_gml.c:76
Here is the caller graph for this function: