Skip to content

Commit

Permalink
Update builderClass.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRunfola authored Dec 12, 2023
1 parent 756442e commit 9cb0769
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions geoBoundaryBuilder/builderClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).")
Expand All @@ -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
Expand Down

0 comments on commit 9cb0769

Please sign in to comment.