Created on: Dec 24, 2017
Author: mholmes
Module containing utility functions used to
process GIS data, normally as part of GeoJSON generation
or processing.
Regex for a single coordinate number.
Regex for a coordinate pair.
This template can be used to run tests of the functions
by running the stylesheet against itself.
hcmc:polygonsOverlap
takes two sequences of coordinates, which are assumed to be polygons,
and checks whether they overlap or not. The coordinate sequences are
in string format: lat,long lat,long lat,long (although the order of lat and
long should not matter, as long as both sets of coordinates use the same
order).
Two strings containing coordinate lists.
hcmc:getGeometry
turns one or more geo elements into XML/JSON geometries.
One or more TEI
geo elements.
Whether or not to
add a key attribute to the output. When expressing nested geometries in a
MultiGeometry, a key attribute is not allowed.
hcmc:getGeometryType
interrogates the geo element to find out
what type of geometry it contains, based on its coordinate structure.
One or more TEI
geo elements.
This function checks whether a sequence
of coordinates (supplied as a string) is clockwise
or not, and if it is, it reverses the order of
the coords in the string.
coordinate
list in the form lat,long lat,long lat,long...:
The hcmc:isRingClockwise
function simply checks whether a sequence
of coordinates (supplied as a string) is clockwise
or not.
coordinate
list in the form lat,long lat,long lat,long...:
hcmc:areaCalc
does the area calculation for a single
pair of coordinates.
coordinate pair
in the form (lat,long lat,long)
This function calculates the radian of the
supplied value.
Input value from which to generate
radian.