You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, type property of crs is mapped to org.geojson.jackson.CrsType enum. This makes it challenging to parse GeoJSON containing crs.type value outside of those outlined by the spec (and present in the enum).
One such example is government WFS service that provides cadastral data here in Croatia. The crs property of GeoJSON returned by this service contains the following:
Cannot deserialize value of type `org.geojson.jackson.CrsType` from String "EPSG": not one of the values accepted for Enum class: [link, name]
Additionally, GeoJSON spec linked in introduction is obsoleted by RFC 7946 which actually removes crs from the spec. See Appendix B of the RFC:
Appendix B. Changes from the Pre-IETF GeoJSON Format Specification
This appendix briefly summarizes non-editorial changes from the 2008
specification [GJ2008].
B.1. Normative Changes
o Specification of coordinate reference systems has been removed,
i.e., the "crs" member of [GJ2008] is no longer used.
All of this IMO supports the case for a more lenient parsing of crs in geojson-jackson.
The text was updated successfully, but these errors were encountered:
At present,
type
property ofcrs
is mapped toorg.geojson.jackson.CrsType
enum. This makes it challenging to parse GeoJSON containingcrs.type
value outside of those outlined by the spec (and present in the enum).One such example is government WFS service that provides cadastral data here in Croatia. The
crs
property of GeoJSON returned by this service contains the following:Attempting to parse such GeoJSON using something like:
Fails with
InvalidFormatException
:Additionally, GeoJSON spec linked in introduction is obsoleted by RFC 7946 which actually removes
crs
from the spec. See Appendix B of the RFC:All of this IMO supports the case for a more lenient parsing of
crs
ingeojson-jackson
.The text was updated successfully, but these errors were encountered: