Skip to content

Commit 413ff34

Browse files
committed
- removes adding observation features to plot site
1 parent 5b02542 commit 413ff34

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/main/groovy/au/org/ala/ecodata/paratoo/ParatooProtocolConfig.groovy

-8
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,6 @@ class ParatooProtocolConfig {
214214
Map geoJson = null
215215
if (usesPlotLayout) {
216216
geoJson = extractSiteDataFromPlotVisit(output)
217-
// get list of all features associated with observation
218-
if (geoJson && form && output) {
219-
List features = extractFeatures(output, form)
220-
if (features) {
221-
features.addAll(geoJson.features?:[])
222-
geoJson = createConvexHullGeoJSON(features, geoJson.properties.name, geoJson.properties.externalId, geoJson.properties.notes)
223-
}
224-
}
225217
}
226218
else if (geometryPath) {
227219
geoJson = extractSiteDataFromPath(output)

src/test/groovy/au/org/ala/ecodata/paratoo/ParatooProtocolConfigSpec.groovy

-12
Original file line numberDiff line numberDiff line change
@@ -218,18 +218,6 @@ class ParatooProtocolConfigSpec extends Specification {
218218
]
219219
]
220220
config.getGeoJson(observation, activityForm).features == [
221-
[
222-
type:"Feature",
223-
geometry:[
224-
type:"Point",
225-
coordinates:[149.0651491, -35.2592444]
226-
],
227-
properties:[
228-
name:"Point aParatooForm 2-1",
229-
externalId:37,
230-
id:"aParatooForm 2-1"
231-
]
232-
],
233221
[
234222
type:"Feature",
235223
geometry:[

0 commit comments

Comments
 (0)