Is there a way to calculate the area of a polygon (i.e. a relation) based on the results I receive from a query? I have a query that finds the "landuse" of the area around a certain radius. I planned to calculate the area of the of each type of landuse that was returned by the API. But I am unable to find any resource for something like this. This is my query: So how can I calculate those areas, if its possible? asked 23 Nov '18, 07:44 imsubkrishd aseerel4c26 ♦ |
If you want to just extract the areas, in JOSM:
But for a cleaner method and if you want to go further with your data I'd suggest doing things in a GIS software like QGIS (for e.g download the data through QuickOSM and generate the areas as new column). answered 28 Nov '18, 11:42 Privatemajory I have tried both methods and as you suggested the QGIS method is much more cleaner and straightforward. But one thing I want to know is that can I automate this process but creating a Python script? I have multiple points that I want to check for.
(29 Nov '18, 06:52)
imsubkrishd
QGIS has python and an overpass I/f so it may be possible to do this from within QGIS.
(30 Nov '18, 15:34)
SK53 ♦
|
Hi. I don't think this is something you can get directly as an output from Overpass. You can run your Overpass query through JOSM or QGIS where it is easy to measure the area once you get your data in.
Is there a way to extract that data given by the plugin? I see values, but I don't see a way to export them.
Which plugin? overpass turbo has an export button.
As @Privatemajory suggested I ran the query through JOSM using the measurement plugin to get the area of the polygons. I want to extract those values for each polygon that I get as part of my query. Is there a way to do this?