Is it possible to draw on the map - then Create and Export a shapefile
I was able to do this with some older code from the link above....see attached zip.
Unzip and create virtual directory on web server
Then navigate in URL to http:// server info \ js2shapefile\tests\Test_EsriDrawToShapefile.html
Note there is no prj file created....manually project a file to:
Projected Coordinate System: WGS_1984_world_Mercator , Meter
Then use this .prj file (renamed to output file) and it will render perfectly.
I am going to try and get the code to create this .prj file automatically but cant afford the time now.
NOTE: that this example is using older code and api references I have not yet tried to update these.
You would have to use a library like this. I personally don't have any experience doing this yet but it is an interesting idea.
yea this is going to be a touch one....I looked at that example and only a .shp file is exported....no dbf or shx...and written a while ago.....hmmmmm
I tried to bring the files local but not getting the Button to appear to export....have to be doing something wrong...
its using https://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6
anyone else out there dable in exporting a Shapefile from graphic?
The answer is YES if you are talking about ArcGIS Desktop 10.2.x.
Do the following:
1. Turn on the Drawing toolbar in ArcMap
2. Draw your graphics
3. Select your graphic points, lines, or polygons graphics - can't "mix" the data types
4. Right click on your Data Frame (e.g., "Layers" by default) in the Table of Contents
5. Select Convert Graphics to Features <-- this is new at 10.2
There are code samples to do this in ArcScripts as well at
that just points out how screwed up the new geoNet is.
Retrieving data ...