PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ is_kml_element()

static bool is_kml_element ( xmlNodePtr  xn,
const char *  kml_name 
)
inlinestatic

Definition at line 70 of file lwgeom_in_kml.c.

71 {
72  char *colon_pos;
73  char *node_name;
74 
75  /* Not an element node, can't do anything */
76  if (!xn || xn->type != XML_ELEMENT_NODE)
77  return false;
78 
79  /* If there's a colon in the element name, */
80  /* move past it before checking for equality with */
81  /* the element name we are looking for */
82  node_name = (char*)xn->name;
83  colon_pos = strchr(node_name, ':');
84  if (colon_pos)
85  node_name = colon_pos + 1;
86 
87  return strcmp(node_name, kml_name) == 0;
88 }

Referenced by parse_kml(), parse_kml_coordinates(), parse_kml_multi(), and parse_kml_polygon().

Here is the caller graph for this function: