[Tile-serving] [openstreetmap/osm2pgsql] LUA: calculate length (m) and area (m^2) (Discussion #1756)

Tobias notifications at github.com
Thu Sep 8 09:13:01 UTC 2022


Would it be possible to calculate …
- the length (way) and 
- the area (area/polygons) 

… of objects in LUA? If so, this would be a convenient addition to the new [LUA geometry helper](https://osm2pgsql.org/doc/manual.html#geometry-objects-in-lua).

---

With this I could filter for example small ponds (that lack specific tags) or small segments of road that I am not interested in. (Those filter are a bit rough, since I only look at one object, of course, but good enough for some use cases.)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/discussions/1756
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/repo-discussions/1756 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220908/ae894544/attachment.htm>


More information about the Tile-serving mailing list