PostGIS  2.2.7dev-r@@SVN_REVISION@@
static bool is_xlink ( xmlNodePtr  node)
static

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

Definition at line 185 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().

186 {
187  xmlChar *prop;
188 
189  prop = xmlGetNsProp(node, (xmlChar *)"type", (xmlChar *) XLINK_NS);
190  if (prop == NULL) return false;
191  if (strcmp((char *) prop, "simple"))
192  {
193  xmlFree(prop);
194  return false;
195  }
196 
197  prop = xmlGetNsProp(node, (xmlChar *)"href", (xmlChar *) XLINK_NS);
198  if (prop == NULL) return false;
199  if (prop[0] != '#')
200  {
201  xmlFree(prop);
202  return false;
203  }
204  xmlFree(prop);
205 
206  return true;
207 }
#define XLINK_NS
Definition: lwgeom_in_gml.c:61

Here is the caller graph for this function: