Difference between revisions of "Geo Module"

From BaseX Documentation
Jump to navigation Jump to search
Line 7: Line 7:
 
|-
 
|-
 
| width='90' | '''Signatures'''
 
| width='90' | '''Signatures'''
|{{Func|geo:dimension|$geometry as element(*)|xs:integer()*}}
+
|{{Func|geo:dimension|$geometry as element(*)|xs:integer()}}
 
|-
 
|-
 
| '''Summary'''
 
| '''Summary'''
Line 43: Line 43:
 
|-
 
|-
 
| '''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|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 12:53, 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:geometryType($geometry as element(*)) as xs:QName()?
Summary Returns the gml:Envelope of the giv engeometry $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.