Package madrona :: Package common :: Module jsonutils
[hide private]

Module jsonutils

source code

GeoJSON helper functions

Functions [hide private]
 
get_properties_json(i) source code
 
get_feature_json(geom_json, prop_json) source code
 
srid_to_urn(srid)
Take a postgis srid and make it into a OGC CRS URN...
source code
 
srid_to_proj(srid)
Take a postgis srid and return the proj4 string Useful for custom projections with no authority
source code
Function Details [hide private]

srid_to_urn(srid)

source code 

Take a postgis srid and make it into a OGC CRS URN
As suggested by http://www.geojson.org/geojson-spec.html#named-crs
This is pretty dumb right now and just assumes EPSG as the authority
except for 4326 which uses:
  4326 -> urn:ogc:def:crs:OGC:1.3:CRS84