drolbr / Overpass-API

A database engine to query the OpenStreetMap data.
http://overpass-api.de
GNU Affero General Public License v3.0
716 stars 90 forks source link

Add power=plant to area creation rules #609

Open joconnor-ecaa opened 3 years ago

joconnor-ecaa commented 3 years ago

Posting an issue as instructed by https://wiki.openstreetmap.org/wiki/Overpass_API/Areas. My use case involves querying for objects within the area of a power plant way.

The area creation rules as specified here include power=station, power=generator, power=sub_station and power=transformer but no power=plant. Most power plants have landuse=industrial but it if the plant is left without a name, no area is created. It also seems that the landuse=industrial tag may be disputed for power plants.

Happy to PR myself if this change is acceptable.

joconnor-ecaa commented 3 years ago

On closer inspection, everything requires a name. I'm guessing this prevents computation over spurious objects?

mmd-osm commented 3 years ago

Fyi: the concept of using hard coded rules to define areas will quite likely disappear later this year, meaning that you will be able to treat every closed object as an area.

isabellasoldner commented 3 years ago

Would it be possible to add power=plant as a interim fix until the code is refactored?

mmd-osm commented 3 years ago

I’d say it’s somewhat unlikely to see this in production in the near future. Probably you need to look into setting up your own overpass instance, or use some alternative approaches.