-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
provider/postgis: Drop Z dimension for 3D geometries #449
Comments
It would be nice to at least have a warning in the logs for this. I spent a couple hours trying to figure out why a MultiPolygonZ layer was not showing up, assuming that it would work or at least work in 2d. Turns out I just had to wrap the geom column in a ST_Force2D. It would be great to have actual 3d support as well, though! |
@gorbypark yeah it's a nasty bug, one I would like to get addressed but we have some higher priorities right now. We're open to a PR on the geom package to support EWKB which we can then implement in the PostGIS driver. Thanks for documenting your solution here in case someone else hits it. |
@ARolek I started working on go-spatial/geom#16, but I realised there's still no support for the extended geometries Z (3D), ZM (4D) and geometries with projection reference - srid - info (S). In order to avoid too much changes related to a single issue, what do you think if I work on this before? I also include @gdey in the discussion here since he is involved in the other issue. This is the list of geometry types that should be included to integrate EWKB protocol:
that should extend the 2D geometries at the moment included in this repo:
|
@gbroccolo yeah, I'm not sure what to do. It does sound like this should be worked on first. Supporting multiple dimensions could result in breaking |
@gbroccolo apologies for the slow response here, I have been trying to think through a way forward. You bring up an excellent point here: the This considered, the Maybe it would be quicker to talk through this in the Go-Spatial slack workspace for |
Hi @ARolek , I tried to connect to the slack workspace, clicking the link, but it didn't work. Should I maybe be invited in some way? About the rest: I started with introducing new geometry types like |
@gbroccolo looks like I messed up the protocol, try this one: http://slack.go-spatial.org I'm hoping we can figure out a vector to attack with the new data types so you don't have to make them work everywhere right off the bat. That's indeed a good deal of work. I'm looking forward to chatting more! |
I also spent hours debugging why Tegola wasn't rendering the data returned by postgis and instead returning empty tiles. Through sheer luck I found this issue. After using |
@polastre yes I agree, its the worst kind of bug too (silent). @gbroccolo has been working on the extended geometry types so we can drop the Z value correctly. Let me see if we can get a log in there for the time being as we're getting closer to releasing a v0.12.0 version. |
We have added a log when the postgis provider encounters an UnknownGeometryType (previously it was just a |
Currently tegola's PostGIS driver ignores geometries that have a 3rd dimension. A better solution would be to support decoding PosGIS's EWKB format and drop the 3rd dimension. This issue is dependent on go-spatial/geom#16.
The text was updated successfully, but these errors were encountered: