-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic Export #1
Comments
We will create a Docker container that attaches to our database and at the For the following features
|
Regarding the export format spec. I propose to use GeoCSV: |
We decided to prepare an export container which takes the table osm_places as example. And exports as much information from the following list as possible:
|
Following additions: [Update - comments moved to #3] |
Agree to generate only "osm_places" for now. Basic export should be .tsv with columns which you have already available. This is fine for the Basic export - and once you have docker for this we can close this ticket. @sfkeller: To discuss details of the data format I have created a ticket #3. I am moving your comments from this ticket to #3. Hopefully you agree. |
How can we join for example a place label of rapperswil with the boundaries of rapperswil? Just looked at the data and in OSM the administrative boundaries are not polygons but linestrings which are not linked together - so can we extract administrative area polygons out of OSM data? There is also no osm_id of the administrative area that matches the osm_id of the place label or other linking data. Perhaps @sfkeller knows more about how to link administrative boundaries to place labels? For example Rapperswil is just a point. And this is a border of my hometown. |
For places I can get out a export but have no way yet to get bounding boxes. https://gist.github.com/lukasmartinelli/e40a48d93cc05b2dbb15 https://github.com/osm2vectortiles/osm2vectortiles/tree/feature/export-geonames/src/export-geonames |
In OSM this is done in the data with relations: Relations aggregate admin. boundaries and the same relation usually also contans a node with the center of the admin. unit (i.e. "the pace label"). See e.g. City (= county of) Zürich: http://www.openstreetmap.org/relation/1682248 . Unfortunately that's not yet in the OSM data for Uznach http://www.openstreetmap.org/relation/1683953 nor Rapperswil-Jona. AFAIK that reference from a place or building (having point coordinates) to the next outer admin. boundary is calculated in Nominatim and e.g. also in the "?" function in osm.org which uses Overpass API. In either case it's probably simply an ST_Witihin function ordered by area size.Now I don't know if you can calculate this? |
Thanks a lot. Forgot about the relations concept. We need to make polygons of all those relations for the boundaries in imposm3.
Once we have the polygons we can start try to relate the labels with the polygons. |
We decided to make the basic export for the layer roads. Because this layer does not need any joining with an other table and we don't have to rewrite the mapping for now. The following fields can be extracted: *north (=boundingbox) *lat |
This matters to decide whether to use |
We really have to be aware that this is about geographic names (not building addresses). Geographic names can be represented either as point (landmark plus some "surrounding", "Bundesplatz"), linear ("Albiskette") or areal geometry (city of Zurich). Bounding Box can be a mandatory field(s) but it's a derived or approximated info from the "real" geometries. Field lat/lon in this context can only mean that's it's the (center) location of a geographic name. |
Ideally the point should represent where the label typically is located. The real reason for point in a Search API is the cheap distance calculation. Typically fulltext engines supports scoring based on distance only for a point index (as calculations and indexes on bbox are significantly more expensive and distance is only one part of the final rank for given query). |
We are looking forward to get the early first export at least for roads - to test the server side on some larger close to real database. In case any other table can be exported directly of with easy to do joins, please add it too to the initial export. We hope to get the export soon from you. Important for meeting on Monday is having analyse of data tables described in osm2vectortiles/osm2vectortiles#156 |
Thanks for the basic export with download link at osm2vectortiles/osm2vectortiles#157 @manuelroth @lukasmartinelli We are working on a first deploy of osmnames search indexing the roads to test the performance of the search engine powered by sphinx search: klokantech/osmnames-sphinxsearch#3 |
Basic data deployed in very early version of the search at: http://osmnames.klokantech.com/. Thanks @manuelroth @lukasmartinelli |
Tables with/without geometry documented: osm2vectortiles/osm2vectortiles#156 |
Mapzen also offers a similar service: http://whosonfirst.mapzen.com/ |
The text was updated successfully, but these errors were encountered: