parseShapefileGeometry
@nmi-agro/fdm-source / fdm-rvo/src / parseShapefileGeometry
Function: parseShapefileGeometry()
parseShapefileGeometry(
shp_file,shx_file,prj_file):Promise<any[]>
Defined in: fdm-rvo/src/shapefile.ts:37
Parses the files found in a MijnPercelen Shapefile export and compiles a GeoJSON feature collection where each feature's properties represent the field properties registered by RVO.
Parameters
shp_file
FileInterface
Shapefile or ArrayBuffer to parse
shx_file
FileInterface | undefined
Shapefile index or ArrayBuffer file to parse, the library might be able to optimize lookups in the shp file using this
prj_file
string | Blob | undefined
Projection definition file or ArrayBuffer for coordinates found in the shp file, if not provided EPSG:4326 is assumed
Returns
Promise<any[]>
an array of geometries which can be passed to the shpjs combine function