-
Notifications
You must be signed in to change notification settings - Fork 9
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
GaiaGeoReader.Read(byte[] blob) throws an exception in case the envelope Coordinates read from the blob contain double.NaN #9
Comments
I guess gaiaImport.GetDouble has still to be called four times at that place, but without creating the evelope. |
Currently used version is 2.0.0 |
In the earlier used version of NetTopologySuite the constructor of envelope / Init method did not throw an exception when using double.NaN. |
I have created a pull request |
Dear developers,
It seems to be normal, that a Coordinate can contain an Ordinate double.NaN as defined in
NetTopologySuite.Geometries.Coordinate.NullOrdinate
public const double NullOrdinate = NaN
https://nettopologysuite.github.io/NetTopologySuite/api/NetTopologySuite.Geometries.Coordinate.html
A point that contains such a Coordinate can be stored to a database as a blob unsing GaiaGeoWriter.Write(Geometry geom)
However when using GaiaGeoReader.Read to get back the Geometry from the blob value (when reading from database),
an exception is thrown at this location:
Evenlope.Init
Further down in the call stack, we see that an Envelope is created but not used in GaiaGeoReader.Read:
Would it be possible that this is removed and a new version of the nuget-Package can be provided ?
Thank you very much, best regards,
Ulrich Egger
The text was updated successfully, but these errors were encountered: