Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 755ae17

Browse files
committed
fix(parser): wrong shpjs 6.0.1 using
1 parent 544b4a7 commit 755ae17

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Parser/ShapefileParser.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,9 @@ export default {
6767

6868
// If a zip is present, don't read anything else
6969
if (data.zip) {
70-
result = shp.parseZip(data.zip);
70+
result = shp(data.zip);
7171
} else if (data.shp && data.shx && data.dbf) {
72-
result = Promise.all([
73-
shp.parseShp(data.shp, data.prj),
74-
shp.parseDbf(data.dbf),
75-
]).then(shp.combine);
72+
result = shp(data);
7673
}
7774

7875
options.in = options.in || {};

0 commit comments

Comments
 (0)