Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- fixed a bug
  • Loading branch information
temi committed Sep 18, 2024
1 parent 8a93bab commit f08b930
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SpatialService {
int threshold = grailsApplication.config.getProperty('spatial.geoJsonEnvelopeConversionThreshold', Integer)
Geometry geo
// Ignore threshold check for GeometryCollection collection
if (geo.geometryType != 'GeometryCollection') {
if (geoJson.type != 'GeometryCollection') {
int length = geoJson?.toString().size()
if (length > threshold) {
geoJson = GeometryUtils.geometryToGeoJsonMap(geo.getEnvelope())
Expand Down

0 comments on commit f08b930

Please sign in to comment.