Skip to content

Commit 5a4f690

Browse files
authored
Merge pull request #258 from StefanVanDyck/fix-grid-layer-upload
Fix grid layer upload and MaxEnt predictions
2 parents 32a100b + 99fd110 commit 5a4f690

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/groovy/au/org/ala/spatial/process/LayerCreation.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class LayerCreation extends SlaveProcess {
9292
new File(outPath + "_tmp.bil").delete()
9393

9494
taskWrapper.task.message = 'bil > diva'
95-
Bil2diva.bil2diva(outPath, outPath, layer.environmentalvalueunits.toString())
95+
Bil2diva.bil2diva(outPath, outPath, layer.environmentalvalueunits.toString(), spatialConfig.gdal.dir.toString(), 36000000)
9696

9797
if ("Contextual".equalsIgnoreCase(layer.type.toString())) {
9898
taskWrapper.task.message = "process grid file to shapes"

src/main/groovy/au/org/ala/spatial/util/OccurrenceData.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class OccurrenceData {
3535

3636
//remove sensitive records that will not be LSID matched
3737
try {
38-
Records r = new Records(bs, q + "&fq=" + UriEncoder.encode("-sensitive:[* TO *]"), null, records_filename, null, facetName)
38+
Records r = new Records(bs, q + "&fq=" + URLEncoder.encode("-sensitive:[* TO *]", "utf-8"), null, records_filename, null, facetName)
3939

4040
StringBuilder sb = null
4141
if (r.getRecordsSize() > 0) {

0 commit comments

Comments
 (0)