Open MortenHofft opened 6 years ago
For some reason Solr decides that is a GeometryCollection: java.lang.IllegalArgumentException: This method does not support GeometryCollection arguments at com.vividsolutions.jts.geom.Geometry.checkNotGeometryCollection(Geometry.java:1782) at com.vividsolutions.jts.geom.Geometry.relate(Geometry.java:1033) at com.vividsolutions.jts.geom.Geometry.covers(Geometry.java:962) at com.vividsolutions.jts.geom.prep.BasicPreparedGeometry.covers(BasicPreparedGeometry.java:164) at com.spatial4j.core.shape.jts.JtsGeometry.relate(JtsGeometry.java:281) at com.spatial4j.core.shape.jts.JtsGeometry.relate(JtsGeometry.java:238) at com.spatial4j.core.shape.jts.JtsGeometry.relate(JtsGeometry.java:212)
works this works
POLYGON((-180 31,-180 48,180 48,180 31,-180 31))
View on site)API: https://api.gbif.org/v1/occurrence/search?has_coordinate=true&geometry=POLYGON((-180%2031,-180%2048,180%2048,180%2031,-180%2031))
Fails But this fails
POLYGON((-179 31,-180 48,180 48,180 31,-179 31))
View on site)API: https://api.gbif.org/v1/occurrence/search?has_coordinate=true&geometry=POLYGON((-179%2031,-180%2048,180%2048,180%2031,-179%2031))
Both seem valid to me and both is read by leaflet
Tha later throws