Difference between revisions of "Geo Module"

From BaseX Documentation
Jump to navigation Jump to search
Line 37: Line 37:
 
|-
 
|-
 
| width='90' | '''Signatures'''
 
| width='90' | '''Signatures'''
|{{Func|geo:geometryType|$geometry as element(*)|xs:QName()?}}
+
|{{Func|geo:envelope|$geometry as element(*)|xs:element(gml:Envelope)?}}
 
|-
 
|-
 
| '''Summary'''
 
| '''Summary'''
| Returns the gml:Envelope of the giv engeometry {{Code|$geometry}}. The envelope is the minimum bounding box of this geometry
+
| Returns the gml:Envelope of the given geometry  {{Code|$geometry}}. The envelope is the minimum bounding box of this geometry
 +
|-
 +
| '''Errors'''
 +
|{{Error|GEO0001|#Errors}} the given element is not recognized as a valid geometry.<br />{{Error|GEO0002|#Errors}} the given element cannot be read by reader for some reason.<br />{{Error|GEO0008|#Errors}} the output object cannot be written as an element by writer for some reason.<br />
 +
|}
 +
 
 +
 
 +
==geo:asText==
 +
{| width='100%'
 +
|-
 +
| width='90' | '''Signatures'''
 +
|{{Func|geo:asText|$geometry as element(*)|xs:string}}
 +
|-
 +
| '''Summary'''
 +
| Returns the gml:Envelope of the given geometry {{Code|$geometry}}. The envelope is the minimum bounding box of this geometry
 
|-
 
|-
 
| '''Errors'''
 
| '''Errors'''
 
|{{Error|GEO0001|#Errors}} the given element is not recognized as a valid geometry.<br />{{Error|GEO0002|#Errors}} the given element cannot be read by reader for some reason.<br />{{Error|GEO0008|#Errors}} the output object cannot be written as an element by writer for some reason.<br />
 
|{{Error|GEO0001|#Errors}} the given element is not recognized as a valid geometry.<br />{{Error|GEO0002|#Errors}} the given element cannot be read by reader for some reason.<br />{{Error|GEO0008|#Errors}} the output object cannot be written as an element by writer for some reason.<br />
 
|}
 
|}

Revision as of 13:13, 4 January 2013

Geo Module adds the support of ExPath Geo Module for GML 2 to BaseX. Based on JTS, GML 2 queris are parsed and evaluated to show in the BaseX frontend.

General Functions

geo:dimension

Signatures geo:dimension($geometry as element(*)) as xs:integer()
Summary Returns the dimension of the given geometry $geometry.
Errors GEO0001: the given element is not recognized as a valid geometry.
GEO0002: the given element cannot be read by reader for some reason.


geo:geometryType

Signatures geo:geometryType($geometry as element(*)) as xs:QName()?
Summary Returns the name of the geometry type of given geometry $geometry or an empty sequence, if the geometry is not recognized with an error massage .
Errors GEO0001: the given element is not recognized as a valid geometry.
GEO0002: the given element cannot be read by reader for some reason.


geo:envelope

Signatures geo:envelope($geometry as element(*)) as xs:element(gml:Envelope)?
Summary Returns the gml:Envelope of the given geometry $geometry. The envelope is the minimum bounding box of this geometry
Errors GEO0001: the given element is not recognized as a valid geometry.
GEO0002: the given element cannot be read by reader for some reason.
GEO0008: the output object cannot be written as an element by writer for some reason.


geo:asText

Signatures geo:asText($geometry as element(*)) as xs:string
Summary Returns the gml:Envelope of the given geometry $geometry. The envelope is the minimum bounding box of this geometry
Errors GEO0001: the given element is not recognized as a valid geometry.
GEO0002: the given element cannot be read by reader for some reason.
GEO0008: the output object cannot be written as an element by writer for some reason.