GeoLatte / geolatte-geom

A geometry model that conforms to the OGC Simple Features for SQL specification.
Other
132 stars 63 forks source link

CrsRegistry warnings when working with JST 1.18 #126

Closed bbehrang closed 3 years ago

bbehrang commented 3 years ago

Upon persisting JTS Geometry types(tested with Polygon and Point) into a postgres database using hibernate, even though the geometry is successfully saved to the database, I receive multiple warnings from org.geolatte.geom.crs.CrsRegistry in the form of "Can't parse srid ****()". Is this an issue with the dependency versions that I'm using? I have included a log file below.

Versions: geolatte-geom: 1.7.0 JTS core: 1.18.0 hibernate: 5.4.28.Final

Geometry: POLYGON ((30.473824 50.411819, 30.476112 50.400392, 30.495567 50.399906, 30.497093 50.412792, 30.473824 50.411819))

warnings.log

maesenka commented 3 years ago

Those messages are harmless, and It has nothing to do with the JTS dependency.

It turns out that the spatial refs file (which I copy from the Postgis project) contains a type of CRS that Geolatte doesn't know how to parse. Hence the errors.

I will filter these out in a next version.