All Projects → carocad → geojson.specs

carocad / geojson.specs

Licence: LGPL-3.0 license
a Geojson utility for validating data using Clojure(script)'s spec (RFC 7946)

Programming Languages

clojure
4091 projects

Projects that are alternatives of or similar to geojson.specs

kandilli-rasathanesi-api
Kandilli rasathanesinin son dakika depremler ve tarihe göre deprem listesi için ara API (last minute earthquakes in turkey)
Stars: ✭ 90 (+400%)
Mutual labels:  geojson
winnow
Deprecated
Stars: ✭ 89 (+394.44%)
Mutual labels:  geojson
geopip
Reverse geocode a lng/lat coordinate within a geojson `FeatureCollection` and return information about the containing country (polygon).
Stars: ✭ 27 (+50%)
Mutual labels:  geojson
api-spec
API Specififications
Stars: ✭ 30 (+66.67%)
Mutual labels:  spec
krawler
A minimalist (geospatial) ETL
Stars: ✭ 51 (+183.33%)
Mutual labels:  geojson
togeojson
convert KML, TCX, and GPX to GeoJSON, without the fuss
Stars: ✭ 315 (+1650%)
Mutual labels:  geojson
geojsoncontour
Convert matplotlib contour plots to geojson
Stars: ✭ 78 (+333.33%)
Mutual labels:  geojson
geojson-rbush
GeoJSON implementation of RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles
Stars: ✭ 60 (+233.33%)
Mutual labels:  geojson
rain-geojson-sg
Straight-forward API server to convert rain area radar images (Singapore) to GeoJSON
Stars: ✭ 15 (-16.67%)
Mutual labels:  geojson
osm-static-maps
Openstreetmap static maps is a nodejs lib, CLI and server open source inspired on google static map service
Stars: ✭ 130 (+622.22%)
Mutual labels:  geojson
gjf
A tool in Python to fix invalid GeoJSON objects and files
Stars: ✭ 94 (+422.22%)
Mutual labels:  geojson
spec-pattern
Specification design pattern for JavaScript and TypeScript with bonus classes
Stars: ✭ 43 (+138.89%)
Mutual labels:  spec
dropbox-api-spec
The Official API Spec for Dropbox API V2 SDKs.
Stars: ✭ 36 (+100%)
Mutual labels:  spec
cogj-spec
Cloud Optimized GeoJSON spec
Stars: ✭ 36 (+100%)
Mutual labels:  geojson
de9im
DE-9IM spatial predicate library implemented in Javascript.
Stars: ✭ 22 (+22.22%)
Mutual labels:  geojson
geojson-editor
A modified version of Googles Simple GeoJSON Editor
Stars: ✭ 43 (+138.89%)
Mutual labels:  geojson
pentaho-gis-plugins
🗺 GIS plugins for Pentaho Data Integration
Stars: ✭ 42 (+133.33%)
Mutual labels:  geojson
geok
Kotlin geometry library
Stars: ✭ 29 (+61.11%)
Mutual labels:  geojson
speck
A concise and composable syntax for your function specs
Stars: ✭ 53 (+194.44%)
Mutual labels:  spec
geoJSON-Nepal
GeoJSON for Nepal. 🇳🇵
Stars: ✭ 49 (+172.22%)
Mutual labels:  geojson

geojson.specs

Build Status Clojars Project CljDoc

a Geojson utility for validating data using Clojure(script)'s spec following RFC 7946.

(ns example
  (:require [carocad.geojson.specs :as geojson]))
            [clojure.spec.alpha :as s] 

(s/valid? ::geojson/point {:type "Point" :coordinates [1 2 3]})

(s/valid? ::geojson/linestring {:type "LineString" :coordinates [[1 2 3]
                                                                 [4 5 6]]})

The caricad.geojson.specs namespace also contains some utility functions for working with geojson. Currently, those are:

  • bbox: get or compute (if not available) the bounding box of a geojson object. Returns nil if it is not possible to compute a bbox from the geojson object.
  • uri: takes a point (or feature-point) and returns a lon,lat,height string.
  • geo-uri takes a point (or feature-point) and returns a geo:lon,lat,height string

Distributed under LGPL v3

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].