Git Product home page Git Product logo

koop-osm's Introduction

koop-osm-provider

An OpenStreetMap provider to koop

Will support a variety of things:

  • access to points, lines, and polygons as both geojson and Esri FeatureService (GeoService REST)
  • counts of data per boundary files via PostGIS
  • distinct values for table fields

koop-osm's People

Contributors

chelm avatar jgravois avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

peacenlove

koop-osm's Issues

SQL files are missing in Github

The package from NPM has a folder SQL with the necessary sql files to set up the db tables and the states and counties.
These SQL files however are not present here in Github. I would like to change and add in these files, but as far as I can see now, these modifications cannot come back here.

Support for OSM outside USA

I tried the OSM provider today and got myself some supermarkets visualized on the map in Connecticut :-)
However, since I'm from the Netherlands I'm not particularly interested in the USA, and the current way the routes configured in the provider doesn't work well for other countries, or event countries at all.

So I would like to propose to include the country into the route, for example:
'get /osm/:type/country/:country/state/:state/county/:county.:format': 'getCounty',
This will require a world map with all country borders
Furthermore, routes will be added for the Dutch administrative system: provinces and municipalities
this will look like this:
'get /osm/:type/country/:country/province/:province/municipality/:municipality/field/:field/:value/FeatureServer': 'featureserver',
This will work for a lot of other countries as well, but in some cases there are additional administrative levels, for instance France has regions, departments, cantons and municipalities. I'm not sure whether all levels are interesting, but it's something to think about.
This would require additional tables in the database for the provinces and municipalities.

There are some problems implementing these additional routes: when you try to use province and municipality on the USA data, it will return no data. So you need to know in advance which routes are suitable for which country
Other countries have other administrative systems, so Koop-osm could end up having a lot of routes to cater for all those systems. You might solve that by using more abstract types of administrative units, like /1stadmin, /2ndadmin which would translate to State and county in the USA and to province and municipality in the Netherlands, but I think these abstract types make the data less accessible.

Before I start to implement these improvements to the koop-osm provider (which I would like to do), I would like your opinion first. I want to get the OSM provider to work for Dutch data as well, but I also want my code for these improvements accepted in the koop project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.