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 read error when sdo_geometry is empty. #343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nocny-x
Copy link

@nocny-x nocny-x commented Nov 7, 2018

When geometry parameter is null, OraWriter.write() will create an empty geometry(ordDim=0) to store, then OraReader.read() will throw an error, I think it should return null when it is empty.

@dr-jts
Copy link
Contributor

dr-jts commented Dec 5, 2018

Should have a unit test that covers this case. Also Javadoc.

@dr-jts
Copy link
Contributor

dr-jts commented Dec 5, 2018

In general JTS operations usually return an empty GeometryCollection to indicate empty results. This means that chained geometry operations continue to work. Perhaps that is a better pattern to use here?

Do ordDim=0 Oracle geometrys ever occur in real life? If so, what do they represent?

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

Successfully merging this pull request may close these issues.

None yet

2 participants