Skip to content

Commit

Permalink
spatial returns geojson as features now AtlasOfLivingAustralia/fieldc…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Jun 26, 2024
1 parent 69e6974 commit 61aa967
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grails-app/services/au/org/ala/ecodata/SiteService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,10 @@ class SiteService {
break
case 'pid':
result = geometryForPid(geometry.pid)
// Spatial portal now returns results as Features.
if (result?.type == 'Feature') {
result = result.geometry
}
break
}
result
Expand Down

2 comments on commit 61aa967

@chrisala
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@temi Can you pls review?

@temi
Copy link
Contributor

@temi temi commented on 61aa967 Jun 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisala all good.

Please sign in to comment.