Created
May 31, 2013 16:08
-
-
Save JerrySievert/5686043 to your computer and use it in GitHub Desktop.
geojson to esri json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
work=# select geoJSONToEsri('{ "type": "Polygon", | |
"coordinates": [ | |
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ] | |
] | |
}', '{ "wkid": 4326 }'); | |
geojsontoesri | |
-------------------------------------------------------------------------------- | |
-------- | |
{"rings":[[[100,0],[101,0],[101,1],[100,1],[100,0]]],"spatialReference":{"wkid" | |
:4326}} |
Author
JerrySievert
commented
May 31, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment