Select to view content in your preferred language

Converting GeoJson to ESRI Json

12961
2
Jump to solution
01-26-2017 05:58 AM
FlorianCADOZ
Regular Contributor

Hello world !

I've got a geojson and I would like to integrate it in my esri map (with the ESRI JS API v3.17 if possible) as a Graphic.

I would know if there is a way to convert my GeoJson into an Esri Json first and then integrate the Esri Json as Graphics ?

Should I use another third lib like this one or should I use this feature of the ArcGIS JS API (but I can't figure out how to use it) ?

Thank you very much by advance ! 😃

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Florian,

   The first link you have is to a depreciated lib you should use this active one for GeoJSON conversion:

GitHub - Esri/arcgis-to-geojson-utils: Tools to convert ArcGIS JSON geometries to GeoJSON geometries... 

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Florian,

   The first link you have is to a depreciated lib you should use this active one for GeoJSON conversion:

GitHub - Esri/arcgis-to-geojson-utils: Tools to convert ArcGIS JSON geometries to GeoJSON geometries... 

FlorianCADOZ
Regular Contributor

Thank you Robert,

I just needed to know if it was possible natively but with your answer I guess no !

I finally used a great lib by esri avariable there !

Very usefull for everyone who want to manipulate geojson or esri json ! 😃