All Projects → developmentseed → skynet-scrub-server

developmentseed / skynet-scrub-server

Licence: other
Backing store for developmentseed/skynet-scrub

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to skynet-scrub-server

Lawn
⛔ ARCHIVED ⛔ turf.js R client
Stars: ✭ 57 (+338.46%)
Mutual labels:  geojson, geospatial
Kepler
The open source full-stack geosocial network platform
Stars: ✭ 125 (+861.54%)
Mutual labels:  geojson, geospatial
Geotools
Official GeoTools repository
Stars: ✭ 1,109 (+8430.77%)
Mutual labels:  geojson, geospatial
Go Geom
Package geom implements efficient geometry types for geospatial applications.
Stars: ✭ 456 (+3407.69%)
Mutual labels:  geojson, geospatial
krawler
A minimalist (geospatial) ETL
Stars: ✭ 51 (+292.31%)
Mutual labels:  geojson, geospatial
Magellan
Geo Spatial Data Analytics on Spark
Stars: ✭ 507 (+3800%)
Mutual labels:  geojson, geospatial
Geojson2h3
Conversion utilities between H3 indexes and GeoJSON
Stars: ✭ 93 (+615.38%)
Mutual labels:  geojson, geospatial
GeoJSON.jl
Utilities for working with GeoJSON data in Julia
Stars: ✭ 46 (+253.85%)
Mutual labels:  geojson, geospatial
turf-go
A Go language port of Turf.js
Stars: ✭ 41 (+215.38%)
Mutual labels:  geojson, geospatial
Php Crud Api
Single file PHP script that adds a REST API to a SQL database
Stars: ✭ 2,904 (+22238.46%)
Mutual labels:  geojson, geospatial
Orb
Types and utilities for working with 2d geometry in Golang
Stars: ✭ 378 (+2807.69%)
Mutual labels:  geojson, geospatial
geojson
Library for serializing the GeoJSON vector GIS file format
Stars: ✭ 171 (+1215.38%)
Mutual labels:  geojson, geospatial
geojson-mongo-import.py
Import GeoJSON file into MongoDB using Python
Stars: ✭ 20 (+53.85%)
Mutual labels:  geojson, geospatial
Wellknown
WKT <-> GeoJSON
Stars: ✭ 15 (+15.38%)
Mutual labels:  geojson, geospatial
xyz-hub
XYZ Hub is a RESTful web service for the access and management of geospatial data.
Stars: ✭ 43 (+230.77%)
Mutual labels:  geojson, geospatial
Geoswift
The Swift Geometry Engine.
Stars: ✭ 1,267 (+9646.15%)
Mutual labels:  geojson, geospatial
xyz-spaces-python
Manage your XYZ Hub or HERE Data Hub spaces from Python.
Stars: ✭ 29 (+123.08%)
Mutual labels:  geojson, geospatial
pygeoif
Basic implementation of the __geo_interface__
Stars: ✭ 44 (+238.46%)
Mutual labels:  geojson, geospatial
L7
🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis framework which relies on Mapbox GL or AMap to render basemaps.
Stars: ✭ 2,517 (+19261.54%)
Mutual labels:  geojson, geospatial
de9im
DE-9IM spatial predicate library implemented in Javascript.
Stars: ✭ 22 (+69.23%)
Mutual labels:  geojson, geospatial

skynet-scrub-server 🌏

Database of features!

A feature server for the skynet-scrub tool. Uses tile38 for the backing store.

📖 api

GET /

Renders a mapbox-gl map with all the features

GET /features/:z/:x/:y.json

Gets the GeoJSON features in the database at that z/x/y tile.

GET /features/:z/:x/:y.pbf

Gets the features at the z/x/y tile as a vector tile protobuf suitable for mapbox-gl rendering.

GET /features.json

Gets all the features in the database

GET /features/:id.json

Gets a feature by id

PUT /features/:id.json

Updates a feature by id req.body is a GeoJSON

DELETE /features/:id.json

Deletes a feature by id

POST /commit

Batch update and delete features req.body is a commit object with two keys. edited is a list of GeoJSON features with "id" properties corresponding to objects in the database. deleted is a list of ids to be deleted in the database.

Commit format:

{
    "edited":
    [
        {
            "type": "Feature",
            "geometry": {"type":"LineString","coordinates":[[123,9],[123,10]]},
            "properties": {"id":"1"}
        },
        {
            "type": "Feature",
            "geometry": {"type":"LineString","coordinates":[[125.455804,9.8069055],[125.456243,9.806644]]},
            "properties": {"id":"2"}
        },
        {
            "type": "Feature",
            "geometry": {"type":"LineString","coordinates":[[123.234,9],[123.24223,10.9238]]},
            "properties": {"id":"4"}
        }
    ],
    "deleted":
    [
        "3"
    ]
}

run your own

dependencies

  • Docker
  • node 7.6

run the database

docker pull tile38/tile38
mkdir data
npm run start-db

This will host the database at localhost:9851

import data into database

yarn install
bin/import.js -f test/fixtures/testset.geojson

drop all features from the database

bin/drop.js

run the server

Options:

  • --token: a mapbox token to access the rendered map
  • --port: the tcp port where the server will run (defaults to 4030)
  • --addr: the address where the server will run (used to construct URLs in the html, defaults to http://localhost:4030)
node index.js --token MAPBOX_ACCESS_TOKEN

Open a browser at http://localhost:4030

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