12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>71 / 310DescriptionConstructs a <strong>PostGIS</strong> ST_Geometry object from the OGC GML representation.ST_GeomFromGML works only for GML Geometry fragments. It throws an error if you try to use it on a whole GML document.OGC GML versions supported:• GML 3.2.1 Namespace• GML 3.1.1 Simple Features profile SF-2 (with GML 3.1.0 and 3.0.0 backward compatibility)• GML 2.1.2OGC GML standards, cf: http://www.opengeospatial.org/standards/gml:Availability: 1.5This function supports 3d and will not drop the z-index.GML allow mixed dimensions (2D and 3D inside the same MultiGeometry for instance). As <strong>PostGIS</strong> geometries don’t,ST_GeomFromGML convert the whole geometry to 2D if a missing Z dimension is found once.GML support mixed SRS inside the same MultiGeometry. As <strong>PostGIS</strong> geometries don’t, ST_GeomFromGML, in this case,reproject all subgeometries to the SRS root node. If no srsName attribute available for the GML root node, the function throw anerror.ST_GeomFromGML function is not pedantic about an explicit GML namespace. You could avoid to mention it explicitly forcommon usages. But you need it if you want to use XLink feature inside GML.NoteST_GeomFromGML function not support SQL/MM curves geometries.Examples - A single geometry with srsNameSELECT ST_GeomFromGML(’-71.16028,42.258729 -71.160837,42.259112 -71.161143,42.25932’);Examples - XLink usageST_GeomFromGML(’42.258729 -71.1602842.259112 -71.160837’););

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!