Skip to content

GaiaGeoReader.Read(byte[] blob) throws an exception in case the envelope Coordinates read from the blob contain double.NaN #9

Description

@UliEgger

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

grafik

Further down in the call stack, we see that an Envelope is created but not used in GaiaGeoReader.Read:

grafik

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions