PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ is_kml_element()

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

Definition at line 68 of file lwgeom_in_kml.c.

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

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

Here is the caller graph for this function: