# geovector

> Wrapper around GIS Vector Files, like GeoJSON, ESRIJSON, and Shapefile

Latest version **0.1.1** (published 2018-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install geovector
pnpm add geovector
yarn add geovector
bun add geovector
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-06-29 |
| First published | 2018-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 22.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daniel J. Dufour |
| Maintainers | danieljdufour |
| Keywords | gis, geo, vector, shp, geojson |

## Links

- npm: https://www.npmjs.com/package/geovector
- Repository: https://github.com/GeoTIFF/geovector
- Homepage: https://github.com/GeoTIFF/geovector#readme
- Issues: https://github.com/GeoTIFF/geovector/issues
- npm.io page: https://npm.io/package/geovector

## Dependencies (10)

- [shpjs](https://npm.io/package/shpjs.md) ^3.4.2
- [eslint](https://npm.io/package/eslint.md) ^4.19.1
- [webpack](https://npm.io/package/webpack.md) ^4.12.0
- [shapefile](https://npm.io/package/shapefile.md) ^0.6.6
- [@turf/bbox](https://npm.io/package/@turf/bbox.md) ^6.0.1
- [is-geojson](https://npm.io/package/is-geojson.md) ^1.0.2
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.0.8
- [@turf/combine](https://npm.io/package/@turf/combine.md) ^6.0.1
- [worker-loader](https://npm.io/package/worker-loader.md) ^2.0.0
- [terraformer-arcgis-parser](https://npm.io/package/terraformer-arcgis-parser.md) ^1.0.5

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.1 (latest) — 2018-06-29
- 0.1.0 — 2018-06-27
- 0.0.2 — 2018-06-26
- 0.0.1 — 2018-05-23

## README

# geovector
Wrapper around GIS Vector Files, like GeoJSON, ESRIJSON, and Shapefile that provides a standard interface.

# load from url on front-end
```
const parseGeoVector = require("geovector");
const url = 'https://s3.amazonaws.com/geovector/geojsons/madagascar.geojson';
fetch(url)
  .then(response => response.json() )
  .then(parseGeoVector)
  .then(geovector => {
      console.log("geovector:", geovector);
  });
```

# load from file on back-end
```
const parseGeoVector= require("geovector);
fs.readFile('/tmp/mexico.zip', (error, data) => {
    const mexico = parseGeoVector(data);
    console.log("mexico is:", mexico);
});
```

# properties
| name | description |
| ---- | ----------- |
| coordinates | coordinates |
| projection | equal to EPSG code, like 4326 |
| xmax | xmax in crs, which is often in longitude |
| xmin | xmin in crs, which is often in longitude |
| ymin | ymin in crs, which is often in latitude |
| ymax | ymax in crs, which is often in latitude |

---
_Source: https://npm.io/package/geovector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
