jts icon indicating copy to clipboard operation
jts copied to clipboard

fix read error when sdo_geometry is empty.

Open nocny-x opened this issue 7 years ago • 2 comments

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.

nocny-x avatar Nov 07 '18 04:11 nocny-x

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

dr-jts avatar Dec 05 '18 22:12 dr-jts

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?

dr-jts avatar Dec 05 '18 22:12 dr-jts