PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <errno.h>
#include <string.h>
#include "postgres.h"
#include "utils/builtins.h"
#include "../postgis_config.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
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 LWGEOM * | parse_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 POINTARRAY * | parse_kml_coordinates (xmlNodePtr xnode, bool *hasz) |
Parse kml:coordinates. More... | |
static LWGEOM * | parse_kml_point (xmlNodePtr xnode, bool *hasz) |
Parse KML point. More... | |
static LWGEOM * | parse_kml_line (xmlNodePtr xnode, bool *hasz) |
Parse KML lineString. More... | |
static LWGEOM * | parse_kml_polygon (xmlNodePtr xnode, bool *hasz) |
Parse KML Polygon. More... | |
static LWGEOM * | parse_kml_multi (xmlNodePtr xnode, bool *hasz) |
Parse KML MultiGeometry. More... | |