PostGIS  2.5.7dev-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 206 of file lwgeom_in_gml.c.

207 {
208  xmlChar *prop;
209 
210  prop = xmlGetNsProp(node, (xmlChar *)"type", (xmlChar *) XLINK_NS);
211  if (prop == NULL) return false;
212  if (strcmp((char *) prop, "simple"))
213  {
214  xmlFree(prop);
215  return false;
216  }
217 
218  prop = xmlGetNsProp(node, (xmlChar *)"href", (xmlChar *) XLINK_NS);
219  if (prop == NULL) return false;
220  if (prop[0] != '#')
221  {
222  xmlFree(prop);
223  return false;
224  }
225  xmlFree(prop);
226 
227  return true;
228 }
#define XLINK_NS
Definition: lwgeom_in_gml.c:76

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: