Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there a function exposed by ESRI's python geoprocessor that converts the JSON format used in the various web clients to a valid feature class.

Clearly, the function exists because something is converting these JSON strings into a format usable by the geoprocessor. I can't find it anywhere.

share|improve this question
    
See related question –  Kirk Kuykendall Jul 18 '11 at 3:24

3 Answers 3

If you have the json data to parse with python, you could grab the lat/longs and use an insert cursor and the writing geometry object found here http://webhelp.esri.com/arcgiSDEsktop/9.3/index.cfm?TopicName=Writing_geometries

share|improve this answer

No, there's no built-function to do this.

Edit: As of ArcGIS 10.1 (Spring 2012), arcpy.AsShape will convert an Esri JSON FeatureSet/RecordSet to a Python FeatureSet/RecordSet object if you set the esri_json parameter to True. Additionally, FeatureSet and RecordSet objects have a .JSON property to do the reverse.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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