Convert graphics to Shape file

936
1
09-01-2017 02:28 AM
Siva_SankaraReddy_T
New Contributor II

How to covert Graphics(point, line,polygon ) into Shape file in arc gis runtime fora java 100.1

0 Kudos
1 Reply
HalidhaFathima1
New Contributor

This can be easily done with geoprocessing tools. I used arcpy to build a custom GP tool that would take feature set and the output shapefile location and copy features to it.

features = arcpy.GetParameterAsText(0) #featureSet outFeatureClass = arcpy.GetParameterAsText(1) # Shapefile path  # Set local variables  arcpy.CopyFeatures_management(features, outFeatureClass)

This gpk can be accessed from local or be hosted on your ArcGIS online account.

You might have to handle creating the feature set properly in the runtime app.

0 Kudos