Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Consider making geometry optional #312

Open
andrewharvey opened this issue Sep 10, 2024 · 1 comment
Open

Consider making geometry optional #312

andrewharvey opened this issue Sep 10, 2024 · 1 comment

Comments

@andrewharvey
Copy link

Per the current spec a geometry for each feature is required.

Each feature must have a geometry column, an optional id column, and optional property columns. The geometry column type is based on the OGC's Simple Feature Access Model (SFA) without the support for GeometryCollection types.

Have we considered loosening this to make geometry optional?

  1. Frequently updated attributes with infrequently updated geometries.

For example you might want to have the road network as MLTs with geometries that the browser can cache for longer, then a separate endpoint for MLTs without geometries but with live traffic attributes (using the id column to join the two together client side). This reduces the download size when updating a loaded map with fresh traffic data.

  1. Data with a large range of attributes.

For example you may have standardised census regions and possibly thousands of different attributes linked to those regions. In your application you could load the MLTs with the census regions, then based on the user selection within the app request geometryless MLTs just containing the attributes required to join to these regions client side.

@cutephoton
Copy link

I've been pondering how to solve this particular issue. Came up the other day in a discussion.

maplibre/maplibre-gl-js#4565

Geometry is fixed but data updates regularly and exists in the time domain. (I'm processing weather data that can be explored by the user.) The dataset is updated every 30 minutes. Using mbtiles and generating a new time slice for each hour/day is gigabytes of data. It will probably work, but it seems like the wrong way to approach this problem.

louwers pushed a commit that referenced this issue Feb 7, 2025
* Fix the Android API documentation link text

* Add myself to the community map
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants