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

Fix geometry conversion for simple point geometries on oracle databases #1287

Merged

Conversation

stephanr
Copy link
Member

Until now, the geometry would have never been stored as an optimized point for a 2D point.
This originates from the check for ordinates.length > 2 && ordinates.length < 4 which only applies to 3D points at the moment.

To fix this bug and also to prevent Multipoint (2005/3005) geometries with only a single point to be stored wrongly, the type check was narrowed down to 2D/3D simple point (2001/3001).

It also may or may not be a desired option to never use optimized point storage, so the option to use -Ddeegree.sqldialect.oracle.optimized_point_storage=false was included.

@stephanr stephanr added bug error issue and bug (fix) needs discussion requires discussion with contributor labels Mar 11, 2022
@stephanr
Copy link
Member Author

@stephanr
Copy link
Member Author

I will change the System Property Usage and Documentation introduced in #1192

Copy link
Member

@tfr42 tfr42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation of the system property should be added.

stephanr added 3 commits May 13, 2022 10:19
* allow to disable optimized point storage globally
+ switch from System.getProperty to TunableParameter
@stephanr stephanr force-pushed the bugfix/oracle-dialect-optimized-point-storage branch from d4ab7ac to b7b0c2a Compare May 13, 2022 09:14
@tfr42 tfr42 merged commit 4390e40 into deegree:main May 14, 2022
@tfr42 tfr42 added this to the 3.5 milestone May 15, 2022
@tfr42 tfr42 removed the needs discussion requires discussion with contributor label May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug error issue and bug (fix)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants