rphlo / karttapullautin

A fast and accurate map generator from classified LiDAR data.
GNU General Public License v3.0
33 stars 9 forks source link

Output data as vector tiles #116

Open mstahv opened 5 months ago

mstahv commented 5 months ago

Raster maps are so 90s ;-) https://github.com/mapbox/awesome-vector-tiles

Seriously, quite recently dropped usage of karttapullautin data in one of my hobby apps, because the vector data via NLS is much smoother and clearer in browsers. Now if I only could get improved countours (and maybe improved vegetation as well) via karttapullautin combined with other vector data from fnls...

stefankinell commented 5 months ago

@mstahv - you do know that you already get Karttapullautin output in vector format? All from the vegetation files. And in this project the vegetation can now be delivered in bit-format images, which is really really easy to transform to vector format.

mstahv commented 5 months ago

Yes, even the older Perl version did vector format, but at least I haven't heard/read about vector tiles. And then of course a service like mapant.fi should host those 🧸

rphlo commented 5 months ago

Actually karttapullautin doesn't output any tiles ready to be served on map services. Mapants style websites have been serving maps with raster tiles and I guess because that is easier to ouput png tiles in there toolchains. Lets remind ourself that karttapullautin is not mapant. Karttapullautin could however add the goal to output geojson files which could in the end ease the job of the mapants sites to generate tiles.

mstahv commented 5 months ago

Like I filled the issue ;-) The de-facto standard (MapBox Vector Tile Specification) needs to be the end result, geojson could be a middle format some other tooling can then parse. Might be though that geojson is not an optimal format there, haven't spent a minute to investigate 🤷‍♂️

mstahv commented 5 months ago

BTW. Do you know if the mapant tooling is OSS?

rphlo commented 5 months ago

Nicolas Rio has some mapant.fr tooling on Github https://github.com/NicoRio42/mapant-scripts not sure if it is relevant as the mapant.fr project is not fully there yet... As for the other mapant sites their process is not open.

NicoRio42 commented 4 months ago

@mstahv I am currently working on mapant.fr V2 as the LiDAR data are now broadly available in France. I am considering generating vector tiles from Karttapullautin output for contours and human features. However I think it is out of the scope of Karttapullautin. In my opinion it should be part of the tile pyramid generation pipeline. I will publish the repo for the generation pipeline of mapant.fr V2 when I start working on it (in the coming weeks). So stay tuned if you are interested!

The python scripts in this this repo are meant to generate a raster tiles pyramid from Karttapullautin output. However I don't guarantee the quality of the code as I was way less experimented back then 😉

mstahv commented 4 months ago

Didn't check your code (not my native language :-) ), but I'd guess there would be more existing libraries available if the middle format was geojson like suggested by @rphlo. I guess currently you are working with the png files, but you'd need to read in the dxf instead.