Select to view content in your preferred language

GeoJson Polyline Segments are Connected when Converted to Polyline

237
2
01-13-2025 11:40 AM
Russ_Nas
New Contributor

Hello Everyone, 
I am trying to import digitized shoreline data that I generated using python and output as a GeoJson. The code often generates multiple segmented polylines for a single date. Unfortunately, when I pull in the shapefiles to ArcGIS pro using the Json to Feature tool, these segments are connected with straight lines between end points. This makes the outputs unusable to me, unfortunately. Is there any way to import these and maintain the segmented polylines without connecting them?

 

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

try converting the shapefile to a locally stored file geodatabase featureclass as an intermediate step/test.

It may be that the conversion from shapefile to geojson doesn't handle multipart shapes well.  

You may need to convert the featureclass first using the multiparttosinglepart tool as well.

Multipart To Singlepart (Data Management)—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
Russ_Nas
New Contributor

Thanks Dan! 

I'm assuming this advice should be similar if im going from GeoJson-->Shapefile, correct? 
I was seeing online that it can have something to do with the topology rules inside a Geodatabase, so I did try storing it as a shapefile in a folder and had the same issue. 

0 Kudos