From 9cb0769fc44210ccf98f6dc6a77f470d80d6edd3 Mon Sep 17 00:00:00 2001 From: Dan Runfola Date: Tue, 12 Dec 2023 15:34:58 -0500 Subject: [PATCH] Update builderClass.py --- geoBoundaryBuilder/builderClass.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/geoBoundaryBuilder/builderClass.py b/geoBoundaryBuilder/builderClass.py index 2513530..4a6ac66 100644 --- a/geoBoundaryBuilder/builderClass.py +++ b/geoBoundaryBuilder/builderClass.py @@ -874,8 +874,8 @@ def to_multipolygon(geom): return MultiPolygon([geom]) return geom - tmpGeomJSONproj = gpd.read_file(jsonOUT) - tmpGeomJSONproj_multi = tmpGeomJSONproj.geometry.apply(to_multipolygon) + tmpGeomJSONproj_multi = gpd.read_file(jsonOUT) + #tmpGeomJSONproj_multi = tmpGeomJSONproj.geometry.apply(to_multipolygon) tmpGeomJSONproj_multi.to_file(jsonOUT, driver="GeoJSON", crs="EPSG:4326") self.logger("INFO","Building shapefiles, geojson, topojson (Simplified).") @@ -890,8 +890,8 @@ def to_multipolygon(geom): #Need to open and define the projection - unsure if this is a bug in mapshaper precluding #the projection outputs, or if our tests were ill-formed. - tmpGeomJSONproj_simplified = gpd.read_file(jsonOUT_simp) - tmpGeomJSONproj_simplified_multi = tmpGeomJSONproj_simplified.geometry.apply(to_multipolygon) + tmpGeomJSONproj_simplified_multi = gpd.read_file(jsonOUT_simp) + #tmpGeomJSONproj_simplified_multi = tmpGeomJSONproj_simplified.geometry.apply(to_multipolygon) tmpGeomJSONproj_simplified_multi.to_file(jsonOUT_simp, driver="GeoJSON", crs="EPSG:4326") #Create the plot for the boundary to be used in display