Assumes the input is pointing to shapefile data or a gzipped folder with .shp, .dbf, .prj, and/or .cpg
import { shapefileFromURL, LambertConformalConic, EPSG_9974 } from 'gis-tools-ts';const reader = await shapefileFromURL('https://example.com/data.zip', [LambertConformalConic], { EPSG_9974 });for await (const feature of reader) { console.log(feature);} Copy
import { shapefileFromURL, LambertConformalConic, EPSG_9974 } from 'gis-tools-ts';const reader = await shapefileFromURL('https://example.com/data.zip', [LambertConformalConic], { EPSG_9974 });for await (const feature of reader) { console.log(feature);}
the url to the shapefile
Optional
optional array of ProjectionTransformDefinitions to insert
a record of EPSG codes to use for the transformer if needed
Read a Shapefile from a URL.
Description
Assumes the input is pointing to shapefile data or a gzipped folder with .shp, .dbf, .prj, and/or .cpg
Usage