Skip to content

Commit e0cee88

Browse files
committed
Return features for sites with features array AtlasOfLivingAustralia/fieldcapture#3381
1 parent 962eed9 commit e0cee88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

grails-app/services/au/org/ala/ecodata/SiteService.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class SiteService {
207207
]
208208
Map geojson
209209

210-
if (site.type == Site.TYPE_COMPOUND) {
210+
if (site.features) {
211211
geojson = [
212212
type:'FeatureCollection',
213213
properties: properties,

src/main/groovy/au/org/ala/ecodata/reporting/ShapefileBuilder.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class ShapefileBuilder {
9696
createShapefile()
9797
}
9898
try {
99-
if (Site.TYPE_COMPOUND == site.type) {
99+
if (site.features) {
100100
site.features.each { Map feature ->
101101
if (feature.geometry) {
102102
Map siteProps = new HashMap(site)

0 commit comments

Comments
 (0)