Replies: 1 comment
-
Alright so solved it like this: tables:
terrain_wojewodztwa_polygon:
layer_id: terrain_wojewodztwa_polygon
schema: maps
table: terrain_wojewodztwa
srid: 4326
geometry_column: geom
properties:
gid: Integer
jpt_nazwa_: String
terrain_wojewodztwa_centroid:
layer_id: terrain_wojewodztwa_centroid
schema: maps
table: terrain_wojewodztwa
srid: 4326
geometry_column: centroid
properties:
gid: Integer
jpt_nazwa_: String would be cool tho if those could have the same name, but it's alright to call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to put centered labels in Maplibre on geometries, but to do it I need to calculate center points. So to my PostGIS table I've added:
but on that table (with both geom and centroid) it says
Unable to configure source terrain_wojewodztwa because property 'centroid' was not found
. Config looks like:so sounds like it can't serve two geometries (multipolygon and point) at once - so how could I serve this as one endpoint, but in TileJSON it'd give me both geometry and centroid in separate vector_layers:
is it possible or I have to create separate endpoint like with different table or function to serve centroid separately? Thanks
Beta Was this translation helpful? Give feedback.
All reactions