Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

What is ESRI JSON? #3

Closed
tmcw opened this issue Aug 24, 2012 · 7 comments
Closed

What is ESRI JSON? #3

tmcw opened this issue Aug 24, 2012 · 7 comments

Comments

@tmcw
Copy link

tmcw commented Aug 24, 2012

Could this link to ESRI JSON and possibly explain the difference between it and the common standard?

@chelm
Copy link
Contributor

chelm commented Aug 24, 2012

I'll dig up some references to the geoservices REST spec's JSON structure and add some documentation on how geoms are structured in those APIs. The idea is that we'd like to provide a nice way to pull in geojson (from everywhere...) and be able to at least map it in the Esri JSAPI

@tmcw
Copy link
Author

tmcw commented Aug 24, 2012

The Esri (ESRI?) JSAPI doesn't support GeoJSON natively?

@chelm
Copy link
Contributor

chelm commented Aug 24, 2012

a topic of conversation for sure....

it'll be in there soon, until then we have this little bit of code to step around a few of the um...holes

@rxsands
Copy link
Contributor

rxsands commented Mar 20, 2013

Here are the links I found to describe ESRI JSON:

http://resources.arcgis.com/en/help/rest/apiref/feature.html
http://resources.arcgis.com/en/help/rest/apiref/geometry.html

I think the basic mapping from GeoJSON and ESRI JSON is:

Feature -> Feature
FeatureCollection -> (Array of Feature)
Point -> Point
MultiPoint -> Multipoint
LineString -> Polyline
MultiLineString -> Polyline
Polygon -> Polygon
MultiPolygon -> Polygon

Also, there's no direct mapping for GeoJSONs GeometryCollection! It's kind of like an array of ESRI Geometry objects...

@jcardonadcdev
Copy link
Member

I am working on updating the issue with GeoJson multi polygons. Thanks for letting me know about it.

For GeoJson Geometry Collections, I am converting them to feature collections using the first geometry type found in the GeoJson Geometry Collection. Maybe not the best solution, but since ESRI Fature Collections can only contain one geometry type, it’s the best I could think of.

From: rxsands [mailto:[email protected]]
Sent: Wednesday, March 20, 2013 4:16 PM
To: Esri/geojson-utils
Subject: Re: [geojson-utils] What is ESRI JSON? (#3)

Here are the links I found to describe ESRI JSON:

http://resources.arcgis.com/en/help/rest/apiref/feature.html
http://resources.arcgis.com/en/help/rest/apiref/geometry.html

I think the basic mapping from GeoJSON and ESRI JSON is:

Feature -> Feature
FeatureCollection -> (Array of Feature)
Point -> Point
MultiPoint -> Multipoint
LineString -> Polyline
MultiLineString -> Polyline
Polygon -> Polygon
MultiPolygon -> Polygon

Also, there's no direct mapping for GeoJSONs GeometryCollection! It's kind of like an array of ESRI Geometry objects...


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-15200651.

@stolstov
Copy link
Member

@tmcw
Copy link
Author

tmcw commented Jan 29, 2016

👍 thanks all

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants