Reads data from a shapefile implementing the FeatureIterator interface
Usage
NOTE: It's recommended to not parse the shapefile directly but instead:
import { shapefileFromURL } from 'gis-tools-ts';
import { shapefileFromPath } from 'gis-tools-ts/file';
This ensures the other files paired with the shapefile are loaded to properly handle the
projection and properties data.
Usage
import { ShapeFileReader, DataBaseFile, Transformer } from'gis-tools-ts'; import { FileReader } from'gis-tools-ts/file'; // or use the MMapReader if using Bun: // import { MMapReader } from 'gis-tools-ts/mmap';
The Shapefile Reader
Description
Reads data from a shapefile implementing the FeatureIterator interface
Usage
NOTE: It's recommended to not parse the shapefile directly but instead:
import { shapefileFromURL } from 'gis-tools-ts';
import { shapefileFromPath } from 'gis-tools-ts/file';
This ensures the other files paired with the shapefile are loaded to properly handle the projection and properties data.
Usage
Links