-
Notifications
You must be signed in to change notification settings - Fork 69
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
T-Rex doesn't handle invalid geometry results correctly when transforming between coordinate systems #315
Comments
Is there any chance for a native debian package of bbox? I would like to check it out for my setup. |
This asset includes a Debian package: https://github.com/bbox-services/bbox/actions/runs/8375677003/artifacts/1346593260 You can run it with |
Thanks for providing a Debian package so quickly. It doesn't install on Debian 12. Is there a reason for the dependency on Glibc 2.34 or does 2.31 work anyway?
|
The package was built on Ubuntu 22.04. Will do an other one on Debian 12 then. |
There's a bookworm package in the latest CI build: https://github.com/bbox-services/bbox/actions/runs/8392289824/artifacts/1350419108 |
It still requires glibc 2.34.
May it be worth of transfering this issue to the bbox repository as it is not related to the original issue anymore? |
According to the error message you seem to be on bullseye not bookworm. Made another package to try: https://github.com/bbox-services/bbox/actions/runs/8422167915/artifacts/1356021483 |
Sorry for this case of PEBKAC. It was still too early in the morning. I tried the package on my production server running T-Rex under Debian 11 instead on my development server running Debian 12. The package runs well under Debian 12. Thank you. Hope you will provide Debian Packages as a official release. Many thanks for your work. |
I encountered an issue where invalid point geometries are served.
Steps to reproduce
/vector/test/19/280971/175891.pbf
Observed Behavior
Loading
175891.pbf
into QGis reveals there is a single point at the lower left corner of the tile not present in the database:Expected Behavior
The served tile should not contain invalid geometries.
I suppose this invalid geometries arise when the databases uses a different coordinate reference system than Web mercator. According to the docs the
&&
-operator should be used inside theWHERE
-clause to filter for all relevant geometries for the current tile. This operator compares the bounding boxes of both of its operands. Later on T-Rex clips the result of the query by means of theST_Intersection()
-function to the exact tile extent.The tile area (including a buffer, if configured) itself is transformed into the database native CRS (light-red polygon). The dark-red box shows the bounding box of the tile area. The green centroid therefore fulfills the
WHERE
-clause, but is subsequently clipped in theSELECT
clause which yields anPOINT EMPTY
value for this row.T-Rex doesn't handle that case correctly. It should ignore empty point geometries in this case.
The text was updated successfully, but these errors were encountered: