Skip to content

Commit

Permalink
Merge pull request #1051 from AtlasOfLivingAustralia/feature/meritiss…
Browse files Browse the repository at this point in the history
…ue3381

Return features for sites with features array AtlasOfLivingAustralia/…
  • Loading branch information
salomon-j authored Jan 10, 2025
2 parents 4b1e7ad + e0cee88 commit 810cd1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grails-app/services/au/org/ala/ecodata/SiteService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class SiteService {
]
Map geojson

if (site.type == Site.TYPE_COMPOUND) {
if (site.features) {
geojson = [
type:'FeatureCollection',
properties: properties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class ShapefileBuilder {
createShapefile()
}
try {
if (Site.TYPE_COMPOUND == site.type) {
if (site.features) {
site.features.each { Map feature ->
if (feature.geometry) {
Map siteProps = new HashMap(site)
Expand Down

0 comments on commit 810cd1f

Please sign in to comment.