What is Ogre?
Ogre is a web client (service) that translates spatial files into GeoJSON using the ogr2ogr command line tool for use in JavaScript web applications and frameworks (like OpenLayers).
What formats does it support?
Currently Ogre supports the following transformations:
| Type | Single File Format | Zipped (.zip) File Format | Notes |
|---|---|---|---|
| BNA | .bna | - | |
| CSV | .csv | - | Common spatial columns (e.g. lon, lat, the_geom) will be translated, for less common, use a VRT file |
| DGN | .dgn | - | |
| DXF | .dxf | - | |
| ESRI Shapefile | - | .shp, .dbf, and .shx (.prj optional) | |
| GeoConcept | .gxt or .txt | - | |
| GeoJSON | .json or .geojson | - | |
| GeoRSS | .rss, .georss, or .xml | - | |
| GML | .gml | .gml and .xsd | |
| GMT | .gmt | - | |
| KML / KMZ | .kml or .kmz | - | |
| MapInfo | - | .tab, .map, .id, and .dat | |
| VRT | - | .vrt with any other spatial file | For more information on how to use VRT files, see the full VRT documentation |
What are its limitations?
Ogre currently has an output size limit of 15MB.
Accessing Ogre using a POST request
You can perform Ogre transformations directly by making a HTTP POST request:
Convert to GeoJSON
http://ogre.adc4gis.com/convert with the following params:upload- the file being uploadedcallback(optional) - a JSONP callback function nameforcePlainText(optional) - force return type to "text/plain" instead of "application/json"
Convert from GeoJSON to Shapefile
http://ogre.adc4gis.com/convertJson with the following params:json- text of the GeoJSON file
Where can I watch the project status, report issues, contribute, or fork the code?
Issues and feature requests can be submitted here and to watch, fork and/or contribute to the project, visit the github page.
Where did you get that sweet logo?
"Orc Head" drawing by Jason J. Patterson