KML to JSON (modelBuilder)

606
1
01-25-2023 07:24 AM
Labels (3)
Guy_srb
New Contributor III

Hi 🙂

I need to make a GP service that takes a KML file, and will return a JSON containing all of its featureClasses.

Currently my problem is that I don't know how to return a JSON with all of the feature Classes in it(it only writes the JSON of the first Feature Class).

this is the model:

Guy_srb_0-1674660180386.png

thanks 🙂

 

0 Kudos
1 Reply
BarryNorthey
Occasional Contributor III

Try using in-line variable substitution to uniquely prefix the output file names and prevent overwriting.

%Name%_FeaturesToJSON.json

 

BarryNorthey_0-1674770987845.png

 

0 Kudos