Comments (5)
This is a difficult one - my database is produced using osm2pgsql, which
does not support site relations, which is why it is not showing up.
Assuming we fix osm2pgsql to store the relation as a single geogaphic
feature, what would we want it to do - include the individual vineyards and
the geometry of the combination of the two, or not store the individual
ones?
If we store them all he server code would have to check if an area is part
of a relation before deciding whether to add it to the output....
Graham.
On 22 November 2011 18:14, craigloftus <
[email protected]
wrote:
In issue #22 I mention the Denbies Wine Estate near Dorking which has 2
separate landuse areas ([1],[2]) both marked landuse=vineyard, which
currently appear as two separate entities on the map. The way to resolve
this is using relations to associate the ways. I couldn't think of anything
more appropriate, so I used a site relation [3].[1] http://www.openstreetmap.org/browse/way/31864235
[2] http://www.openstreetmap.org/browse/way/31864240
[3] http://www.openstreetmap.org/browse/relation/1858412
Reply to this email directly or view it on GitHub:
#23
Graham Jones
Hartlepool, UK.
from brewmap.
This is a difficult one - my database is produced using osm2pgsql, which does not support site relations, which is why it > is not showing up.
Is this just site relations, or is it lacking support for relations entirely?
what would we want it to do - include the individual vineyards and the geometry of the combination of the
two, or not store the individual ones?
From issue #22 you can guess that I'm in favour of dropping vineyards entirely. Not because I have some particular dislike for them, but because the current way of tagging them is rubbish and they seem to be outside the original scope of the project. If we were to include them (even with improved tagging) we should also consider hop fields/yards and their associated oast houses etc.?
In terms of handling the relation, I think just taking the tags from the relation would be most appropriate and forget the members and put the label on the centroid of the combined relation area. I have no idea how difficult any of this is...? If it is all very difficult then I would to just tag Denbies in a simpler way, such as a node.
I don't want to keep suggesting lists... but, perhaps we could provide a list of vineyards and suggest they be checked to see if they should be 'upgraded' to wineries?
from brewmap.
A 'possible winery' list sounds good - then I can recycle the grapes icon as a winery. I'll just add them to tagQueries for now.
from brewmap.
Forgot to add, osm2pgsql has limited support for relations:
"6) The relations are parsed. Osm2pgsql has special handling for a
limited number of types: multipolygon, route, boundary
The code will build the appropriate geometries by referencing the
members and outputing these into the database."
(from https://github.com/openstreetmap/osm2pgsql).
I would suggest we close this issue now we have moved vineyards to the tagQueries list?
from brewmap.
Agreed.
from brewmap.
Related Issues (20)
- Is the edit button necessary? HOT 2
- JSON data contains keys with null values HOT 3
- Render 'industrial=brewery' rather than 'industry=brewery' HOT 6
- Server code does not read BrewMapCfg.json file
- Map Key is not generated automatically HOT 1
- Statistics Box on main Page is emtpy
- Statistics should be shown as a table to make it neater. HOT 1
- Add layer selector HOT 4
- Improve Microbrewery Icon HOT 4
- Type in popup incorrect HOT 1
- Web Page Layout Percentage Size HOT 2
- Multiple values HOT 1
- Vineyards HOT 1
- Use geoJSON for data file format HOT 2
- Improve Scalability of Server Side Code HOT 3
- Show tagQueries on a Map
- Cluster icons to de-clutter map. HOT 3
- Make code more Abstract HOT 1
- Attribution HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brewmap.