Skip to content

Commit

Permalink
Merge pull request #306 from makinacorpus/fix_tests_warnings
Browse files Browse the repository at this point in the history
Fix tests warnings
  • Loading branch information
submarcos authored Jul 15, 2024
2 parents 9353136 + 2c5908b commit cadf120
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ CHANGELOG

- Fix storage usage to deals with django >= 4.2.14

**Tests**

- Fix tests useless warnings


8.9.1 (2024-06-28)
-----------------------
Expand Down
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(directory, 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 cadf120

Please sign in to comment.