Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

call Force2d on geometries passed into AsMVTGeom #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JesseCrocker
Copy link

I ran into an issue where clipping causes some geometries to be 0d, leading to this error "ERROR: lwcollection_construct: mixed dimension geometries: 2/0". The fix is to call ST_Force2D on the transformed geometry. For more info see CrunchyData/pg_tileserv#39

@StefanBrand
Copy link
Contributor

I have two questions. In the referenced commit, ST_Force2D is applied before the ST_Transform:

https://github.com/CrunchyData/pg_tileserv/blob/8e271f8d2de95d2d95efeb77e5c29780223d8f5e/layer_table.go#L391

  1. Why did you choose to call it after the transform?
  2. Does it make a difference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants