Select to view content in your preferred language

Saving/importing/converting drawn graphics to GDB, GPX, CSV, shapefile, etc.

2880
2
04-03-2013 02:42 PM
ScottMcGee
Regular Contributor
First off - standard disclaimer: "I'm not a programmer." So I don't have the technical knowledge to implement this, but it seems that it should be possible to save graphics that are drawn using the Draw widget to a format such as a geodatabase feature class, or shapefile, or GPX, or a CSV file, etc.

I'm using Robert's eDraw widget, and I've looked at several other widgets that have drawing capabilities, and some of them (including Robert's) have the ability to save drawn graphics to a text file. When you open the saved text file, you see that it has the various symbol properties (line color, fill color, etc) as well as the coordinate system definition (via the WKID) and the map coordinates defining the drawn graphics. This seems like all the information that would be needed in order to convert the text file into a feature class, shapefile, GPX file, etc. But yet I have not come across any widgets that can do this.

So I guess my question is, why aren't there any draw-type widgets that can do this? Is it because it's too difficult programmatically? Or is it just because no one has thought of it or needs this feature? To me, it seems like a basic function that ESRI would build into the API and make an integral part of any widget that draws or creates a graphics layer.
Tags (2)
0 Kudos
2 Replies
AnthonyGiles
Honored Contributor
Scott,

There are a couple of python scripts on this page that convert the geo json files that the draw widgets produce to shapefiles, they maybe of some use. I did briefly look at them a while ago but didn't really take it any further so I can't help other than point you towards them.

http://forums.arcgis.com/threads/33618-FAO-Robert-Scheitlin-or-anyone-who-knows-about-saved-graphics...

Regards

Anthony
0 Kudos
ScottMcGee
Regular Contributor
Anthony,

Once again, you provided the answer. Thanks for pointing me to the other forum post. I tried searching the forums for a post like that but I guess I just didn't use the right keywords.

Anyway, Mattias Ekström's post (Message #8 in http://forums.arcgis.com/threads/33618-FAO-Robert-Scheitlin-or-anyone-who-knows-about-saved-graphics... ) provided the exact thing I was hoping to find. So thank you Mattias, for making the script available. It works like a charm.
0 Kudos