Skip to content

Commit

Permalink
fix(parser): wrong shpjs 6.0.1 using
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Jul 25, 2024
1 parent 544b4a7 commit 755ae17
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Parser/ShapefileParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,9 @@ export default {

// If a zip is present, don't read anything else
if (data.zip) {
result = shp.parseZip(data.zip);
result = shp(data.zip);
} else if (data.shp && data.shx && data.dbf) {
result = Promise.all([
shp.parseShp(data.shp, data.prj),
shp.parseDbf(data.dbf),
]).then(shp.combine);
result = shp(data);
}

options.in = options.in || {};
Expand Down

0 comments on commit 755ae17

Please sign in to comment.