-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
PostGIS 2.0 ST_AsBinary drops forcing 2d, breaks WKB parser of QGIS #14630
Comments
Author Name: Sandro Santilli (@strk) Here's a fix for the 1.7 branch, which also improve the support for geography (fixing opening a geography table with no type advertised in geometry_columns). Note: this was tested against PostGIS 1.4, 1.5 and 2.0svn, opening geometry and geography columns with 4 dimensions.
|
Author Name: Sandro Santilli (@strk) I'll postpone port of the fix to master as master is currently undergoing a refactoring
|
Author Name: Sandro Santilli (@strk) Fixed in changeset "8d65c9728065d5b34b4e8c0418ad7767ea6f514e".
|
Author Name: Sandro Santilli (@strk) Done in 1.7 branch and master (2.0).
|
Author Name: Giuseppe Sucameli (@brushtyler) The fix seems already present in branch 1.8.
|
Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 4767
Affected QGIS version: 1.7.3
Redmine category:data_provider/postgis
Assignee: Tim Sutton
Up to PostGIS-1.5 ST_AsBinary used to internally force the geometry dimensionality to 2d, due to lack of standard specifications for higher dimensions. As of PostGIS-2.0 the new SQL/MM higher dimension specifications are used. Qgis is unable to parse such WKB and complains as follows:
Debug: /usr/src/qgis/qgis-1.7/src/core/qgsgeometry.cpp: 3701: (boundingBox) Unknown WkbType ENCOUNTERED
Mapserver contains an explicit Force2D call since a long time. Qgis could do the same for a quick fix.
The text was updated successfully, but these errors were encountered: