All Projects → placemark → check-geojson

placemark / check-geojson

Licence: MIT license
a checker for the geojson format. goes beyond a schema, checking semantics and producing character-level warnings.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to check-geojson

Mapbox Gl Native
Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
Stars: ✭ 4,091 (+11263.89%)
Mutual labels:  geojson, maps
Country Iso
🗺 Get the ISO 3166-1 alpha-3 country code from geographic coordinates.
Stars: ✭ 141 (+291.67%)
Mutual labels:  geojson, maps
Geo Maps
🗺 High Quality GeoJSON maps programmatically generated.
Stars: ✭ 1,098 (+2950%)
Mutual labels:  geojson, maps
is-sea
🌊 Check whether a geographic coordinate is in the sea or not on the earth.
Stars: ✭ 34 (-5.56%)
Mutual labels:  geojson, maps
geojson-editor
A modified version of Googles Simple GeoJSON Editor
Stars: ✭ 43 (+19.44%)
Mutual labels:  geojson, maps
chilemapas
Mapas terrestres de Chile con topologias simplificadas.
Stars: ✭ 23 (-36.11%)
Mutual labels:  geojson, maps
Mapbox Gl Native Android
Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL
Stars: ✭ 135 (+275%)
Mutual labels:  geojson, maps
Geoswift
The Swift Geometry Engine.
Stars: ✭ 1,267 (+3419.44%)
Mutual labels:  geojson, maps
echarty
Minimal R/Shiny Interface to ECharts.js
Stars: ✭ 49 (+36.11%)
Mutual labels:  geojson, maps
Mapstore2
Modern webmapping with OpenLayers, Leaflet and React
Stars: ✭ 251 (+597.22%)
Mutual labels:  geojson, maps
django-graphql-geojson
GeoJSON support for Graphene Django
Stars: ✭ 61 (+69.44%)
Mutual labels:  geojson, maps
osm-static-maps
Openstreetmap static maps is a nodejs lib, CLI and server open source inspired on google static map service
Stars: ✭ 130 (+261.11%)
Mutual labels:  geojson, maps
osm-geojson
🔰 Get GeoJSON of a OpenStreetMap's relation from the API.
Stars: ✭ 42 (+16.67%)
Mutual labels:  geojson, maps
Android Maps Utils
Maps SDK for Android Utility Library
Stars: ✭ 3,330 (+9150%)
Mutual labels:  geojson, maps
vaguely-rude-places
The map of Vaguely Rude Place Names
Stars: ✭ 19 (-47.22%)
Mutual labels:  geojson, maps
Geojsonify
Easily add GeoJson layers to your Maps
Stars: ✭ 141 (+291.67%)
Mutual labels:  geojson, maps
geoJSON-Nepal
GeoJSON for Nepal. 🇳🇵
Stars: ✭ 49 (+36.11%)
Mutual labels:  geojson, maps
geofiddle
Geometric conversions between different formats and projections
Stars: ✭ 15 (-58.33%)
Mutual labels:  geojson, maps
BingMapsSDSToolkit
This toolkit makes it easy to use the Bing Maps Spatial Data Services (SDS) in .NET
Stars: ✭ 39 (+8.33%)
Mutual labels:  maps
command line lint
This script generates a report against your command-line history and suggests workflow improvements.
Stars: ✭ 42 (+16.67%)
Mutual labels:  linter

check-geojson

check-geojson development is supported by 🌎 placemark.io

geojsonhint for 2021.

I started working on geojsonhint in 2014. It's a pretty useful project. But it has been stagnant for a long time now, and has some annoying long-term issues.

check-geojson is intended to be a full successor for geojsonhint. Like geojsonhint, it is tailored to a particular usecase: writing GeoJSON by hand, or quickly sussing out issues in GeoJSON that you've received.

📕 API Documentation

Main differences from geojsonhint

  • Actively maintained
  • Written in TypeScript and includes types
  • Uses momoa to parse JSON instead of a homemade parser. This is probably the biggest one. jsonlint-lines was a hack, which I created because I could not find a single parser that actually parsed JSON and gave line numbers for values. momoa is much better than that hack, and using it makes line-level errors much cleaner.

Unlike geojsonhint, this checker only produces errors, not warnings. So things that geojsonhint would warn about, like:

  • excessive coordinate precision
  • right-hand rule compliance

This does not check for. Additionally, the crs member is ignored by this tool: as of the latest GeoJSON specification, this is not used.

We're using the same test fixtures as geojsonhint as a starter.

Usage

Not finalized yet

import { check } from "check-geojson"

try {
  const parseValue = check('… geojson string …')
} catch (e) {
  /// e.issues
}

Maintainability Test Coverage

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].