Parse gml:coord.
727{
728 xmlNodePtr xyz;
731 xmlChar *c;
733
734
736
738 for (xyz = xnode->children ; xyz != NULL ; xyz = xyz->next)
739 {
740 if (xyz->type != XML_ELEMENT_NODE) continue;
742
744 {
746 c = xmlNodeGetContent(xyz);
749 xmlFree(c);
750 }
752 {
754 c = xmlNodeGetContent(xyz);
757 xmlFree(c);
758 }
760 {
762 c = xmlNodeGetContent(xyz);
764 z = true;
765 xmlFree(c);
766 }
767 }
768
769 if (!x || !y)
gml_lwpgerror(
"invalid GML representation", 24);
770 if (!z) *hasz = false;
771
773
774 return dpa;
775}
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
int ptarray_append_point(POINTARRAY *pa, const POINT4D *pt, int allow_duplicates)
Append a point to the end of an existing POINTARRAY If allow_duplicate is LW_FALSE,...
static double parse_gml_double(char *d, bool space_before, bool space_after)
Parse a string supposed to be a double.
static bool is_gml_namespace(xmlNodePtr xnode, bool is_strict)
Return false if current element namespace is not a GML one Return true otherwise.
static void gml_lwpgerror(char *msg, __attribute__((__unused__)) int error_code)
static bool is_gml_element(xmlNodePtr xn, const char *gml_name)