Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Possible Duplicate:
How to convert ArcGIS Server JSON to GeoJSON?

How to convert ArcGIS Javascript api Geometry Object to GeoJson using Javascript?

share|improve this question

marked as duplicate by Devdatta Tengshe, Aragon, R.K., iant, whuber Dec 19 '12 at 16:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

This looks similar to the question I asked here:… –  Tanner Mar 19 '12 at 18:54
@Tanner good call, I voted to close this as an exact duplicate. –  Derek Swingley Mar 19 '12 at 19:04

2 Answers 2

You can do it client-side in JavaScript. You can check the source out here.

And I've started implementing the same thing in python, but in both directions.

Here is a sample where you can use JavaScript to convert the results of an Esri map service query to GeoJSON to use in Leaflet

share|improve this answer

The geometry object has a method, toJson(), that will do this for you: Javascript API Reference

share|improve this answer
That method generates an object. It doesn't generate an object that conforms to the GeoJSON spec. –  Derek Swingley Mar 19 '12 at 18:26
Yes,toJson() method will return EsriJSON.But I want GeoJSON format. –  SureshRajamani Mar 20 '12 at 12:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.