Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (15 sloc) 0.519 kB
from arcpy import GetParameterAsText
from esri2open import writeFile, prepareGeoJSON, closeJSON
#compute the peramaters
features = GetParameterAsText(0).split(";")
outJSON=GetParameterAsText(1)
includeGeometry = "geojson"
fileType = "geojson"
out=prepareGeoJSON(outJSON)
first=True#this makes sure sure we arn't missing commas
for feature in features:
if feature[0] in ("'",'"'):
feature = feature[1:-1]
writeFile(out,feature,fileType,includeGeometry, first)
first=False
closeJSON(out)
Jump to Line
Something went wrong with that request. Please try again.