locationtech / geotrellis

GeoTrellis is a geographic data processing engine for high performance applications.
http://geotrellis.io
Other
1.32k stars 360 forks source link

How to tile vector data in shapefile or GeoJSON format by geotrellis #3532

Closed RunBoo closed 3 months ago

RunBoo commented 3 months ago

Describe the question

I have successfully implemented tiling of raster data in TIFF format using geotrellis, and published it as a WMTS service through geotrellis-server. I then loaded it in a web frontend. However, I'm unsure how to achieve the same process for vector data in shapefile or GeoJSON format. I couldn't find any relevant references, and I would greatly appreciate it if someone could provide some code snippets for vector data tiling.

jpolchlo commented 3 months ago

Hi. We don't have a good, ready-made solution for this sort of problem. Vector data is not structured as easily as raster data, so rapid lookup requires preprocessing effort. This can be as heavy of a solution as deploying GeoMesa or creating a vector tile collection on S3. If you know the structure of your vector data, you might be able to find a simpler solution. Serving these data out is a separate challenge. I don't recall if GT server provides WFS; @moradology or @pomadchin, do you know?

pomadchin commented 3 months ago

Ha, re: GT Server; we don't really have WFS support (that could be a feature to implement though); there is GetFeatureInfo WMS support https://github.com/geotrellis/geotrellis-server/pull/358 only :/

RunBoo commented 3 months ago

Thank you for your response. For vector visualization, we have decided to go with the Mapbox Vector Tile technology. We will dynamically slice the vector files into MVT (Mapbox Vector Tile) files and load them in the web frontend. As for vector data processing, we will store and analyze it using Geomesa.

jpolchlo commented 3 months ago

Ok, thanks for letting us know. I will say that GT does have some amount of vector tile capability, in case that ever becomes important to you. We also, once upon a time, had some geomesa interop, but I think that's long gone, and I'm not sure if it was deleted or landed in another repo. @pomadchin would know.

I think this issue can be closed, but I appear to have lost the ability to do it myself.