You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for your library and for sharing the code. I am trying to export a given geojson coming from Turf JS in to a Shapefile project as a zip.
I am facing a problem when comparing results in QGis. The thing is that, as far as I can see in the code, POLYGON and MULTIPOLYGON collapse to the same Type, so the final file per type written into the temporary zip object shares its name (path), overwriting its content if some other file would have been generated previously with the same type (i. e.: Polygon and MultiPolygon).
An example of a geojson I am plugging in to the zip() method:
Is this a bug or is it the way the library is supposed to work?
I would expect as a result of executing zip() just one set of files (.dbf, .prj, .shp, .shx) inside a .zip.
Checking the library code, multiple sets of files (.dbf, .prj, .shp, .shx) would be generated depending on the geojson feature types, effectively dividing its content. I think that this behavior is a bit weird.
Could you please confirm or assist on how I can get just one set of files (.dbf, .prj, .shp, .shx) in a .zip representing the entire geojson original content?
In a GeoServer instance using WFS\GetFeature, that is what is returned (.dbf contains all features properties).
The text was updated successfully, but these errors were encountered:
juliolopeztorres
changed the title
[ZIP] Missing Feature when exporting FeatureCollection of Feature<Polygon> and Feature<MultiPolygon>
[ZIP] Missing Features when exporting FeatureCollection of Feature<Polygon> and Feature<MultiPolygon>Mar 19, 2024
Hi there!
First of all, thank you for your library and for sharing the code. I am trying to export a given
geojson
coming from Turf JS in to a Shapefile project as azip
.I am facing a problem when comparing results in
QGis
. The thing is that, as far as I can see in the code,POLYGON
andMULTIPOLYGON
collapse to the sameType
, so the final file per type written into the temporaryzip
object shares its name (path), overwriting its content if some other file would have been generated previously with the same type (i. e.:Polygon
andMultiPolygon
).An example of a
geojson
I am plugging in to thezip()
method:GeoJson example
Code references:
My question is:
I would expect as a result of executing
zip()
just one set of files (.dbf
,.prj
,.shp
,.shx
) inside a.zip
.Checking the library code, multiple sets of files (
.dbf
,.prj
,.shp
,.shx
) would be generated depending on thegeojson
feature types, effectively dividing its content. I think that this behavior is a bit weird..dbf
,.prj
,.shp
,.shx
) in a.zip
representing the entiregeojson
original content?In a
GeoServer
instance usingWFS\GetFeature
, that is what is returned (.dbf
contains allfeatures
properties).Example on TS
The text was updated successfully, but these errors were encountered: