Skip to content
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

"place" values occur in polygons as well as points. Only points currently shown #15

Open
SomeoneElseOSM opened this issue Mar 22, 2023 · 2 comments

Comments

@SomeoneElseOSM
Copy link
Owner

Example:

gis=> select osm_id,name,landuse from planet_osm_polygon where place = 'suburb';
 182933675 | Seadale Gardens   | 		(no name)

There is no corresponding point for this place way. However, many polygon places do have corresponding points:

gis=> select osm_id,name,landuse from planet_osm_polygon where place = 'suburb';
  68692986 | Nunthorpe         |		

gis=> select osm_id,name,landuse from planet_osm_point where name = 'Nunthorpe';
   osm_id   |   name    | landuse 
------------+-----------+---------
   27648220 | Nunthorpe |

"suburb" is just an example here; the same problem occurs (locally to Yorkshire) with everything from "town" downwards.

@SomeoneElseOSM
Copy link
Owner Author

It'd be straightforward to add a rendering for polygons in parallel with points ("piers" and "piers_area" is a simple bit of styling that does that for linear and area piers).

What would be much harder would be "only displaying a name for a polygon if there is no name displayed as a point for the same thing".

Note that it makes sense in some cases for places to have nodes as well as place polygons. The geographic centre of Sheffield is in a rural area, but the logical centre is near the town hall. Many seaside towns have a geographic centre in the sea.

@SomeoneElseOSM
Copy link
Owner Author

SomeoneElseOSM commented Mar 22, 2023

See also gravitystorm/openstreetmap-carto#103

Someone on IRC mentions gravitystorm/openstreetmap-carto#2816 which looks interesting...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant