Skip to content

Commit

Permalink
Return features for sites with features array AtlasOfLivingAustralia/…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Dec 19, 2024
1 parent 962eed9 commit e0cee88
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 e0cee88

Please sign in to comment.