shapefile
shapefile copied to clipboard
A cross-platform streaming parser for the ESRI Shapefile spatial data format.
This PR removes the `text-encoding` dependency, which is [no longer maintained](https://www.npmjs.com/package/text-encoding). The change is minimal. A compliant implementation of TextDecoder has been a Node.js global [since v11](https://nodejs.org/dist/latest-v18.x/docs/api/util.html#new-textdecoderencoding-options) (so all maintained...
I have seen this with several projects reading array buffers and streams that are failing. Seems to be an issue with the underlying stream-source library but can't be 100% sure....
This works really well, thank you! It would be helpful to have a way of knowing the total feature count, in order to provide percentages to the user when processing...
fixes #68 #70
According to the GeoJSON spec (RFC 7946), outer rings of polygons MUST follow the right-hand rule, i.e., be counter-clockwise, whereas the output I see creates polygons with rings that use...
Hi, I found that shape.open() method emits error for upper shapefile. For example: path = "/user/TEST_002.SHP"; It emits error message: { [Error: ENOENT: no such file or directory, open '/user/TEST_002.SHP.shp']...
Hi! We think we have found an edge case. We have a file that has a numeric column "Blend - *", that when we run it through shapefile, returns all...
Let me preface this with a disclaimer: Don't merge this! Consider it a sketch for a possible feature addition, nothing more. The question of "reprojection" has come up several times,...
Testing for `.shp` or `.dbf` at the end isn’t a good test for URLs. For example, it means you can’t pass a URL to an Observable FileAttachment (because those never...