Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jul 15, 2024
1 parent ff0130b commit 2c5908b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mapentity/serializers/shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@ def create_shape_format_layer(directory, headers, geom_type, srid, srid_out=None
'geometry': geom_type,
'properties': properties_schema,
}
shape = fiona.open(os.path.join(directory, f"{geom_type}.shp"), layer=geom_type, mode='w', driver='ESRI Shapefile', schema=schema, encoding='UTF-8',
shape = fiona.open(os.path.join(directory, f"{geom_type}.shp"),
layer=geom_type,
mode='w',
driver='ESRI Shapefile',
schema=schema,
encoding='UTF-8',
crs=from_epsg(srid))
return shape, headers

Expand Down

0 comments on commit 2c5908b

Please sign in to comment.