PostGIS  2.1.10dev-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 186 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().

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

Here is the caller graph for this function: