PostGIS  2.4.9dev-r@@SVN_REVISION@@
lwgeom_in_kml.c File Reference
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <errno.h>
#include <string.h>
#include "postgres.h"
#include "../postgis_config.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
Include dependency graph for lwgeom_in_kml.c:

Go to the source code of this file.

Macros

#define KML_NS   ((char *) "http://www.opengis.net/kml/2.2")
 

Functions

Datum geom_from_kml (PG_FUNCTION_ARGS)
 
static LWGEOMparse_kml (xmlNodePtr xnode, bool *hasz)
 Parse KML. More...
 
 PG_FUNCTION_INFO_V1 (geom_from_kml)
 Ability to parse KML geometry fragment and to return an LWGEOM or an error message. More...
 
static bool is_kml_namespace (xmlNodePtr xnode, bool is_strict)
 Return false if current element namespace is not a KML one Return true otherwise. More...
 
static POINTARRAYparse_kml_coordinates (xmlNodePtr xnode, bool *hasz)
 Parse kml:coordinates. More...
 
static LWGEOMparse_kml_point (xmlNodePtr xnode, bool *hasz)
 Parse KML point. More...
 
static LWGEOMparse_kml_line (xmlNodePtr xnode, bool *hasz)
 Parse KML lineString. More...
 
static LWGEOMparse_kml_polygon (xmlNodePtr xnode, bool *hasz)
 Parse KML Polygon. More...
 
static LWGEOMparse_kml_multi (xmlNodePtr xnode, bool *hasz)
 Parse KML MultiGeometry. More...