From 9da64c2f924246354609289883c19ffb899792b2 Mon Sep 17 00:00:00 2001 From: Gianpaolo Coro Date: Tue, 19 Nov 2013 14:50:43 +0000 Subject: [PATCH] git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@85703 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../ecoengine/transducers/OccurrencePointsInSeaOnEarth.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/dataanalysis/ecoengine/transducers/OccurrencePointsInSeaOnEarth.java b/src/main/java/org/gcube/dataanalysis/ecoengine/transducers/OccurrencePointsInSeaOnEarth.java index 009130a..feb96d2 100644 --- a/src/main/java/org/gcube/dataanalysis/ecoengine/transducers/OccurrencePointsInSeaOnEarth.java +++ b/src/main/java/org/gcube/dataanalysis/ecoengine/transducers/OccurrencePointsInSeaOnEarth.java @@ -20,8 +20,8 @@ import org.gcube.dataanalysis.ecoengine.utils.DatabaseUtils; public class OccurrencePointsInSeaOnEarth extends OccurrencePointsMerger{ //NOTE: 0.125 is the diagonal of a csquare, which is the maximum extent to which a point can lie in a csquare - private static String inthesea="select * into %1$s from (select distinct a.* from %2$s as a join hcaf_d as b on ((b.centerlat-a.%3$s)*(b.centerlat-a.%3$s)+(b.centerlong-a.%4$s)*(b.centerlong-a.%4$s)<= 0.125) and b.oceanarea>0) as t limit 50000"; - private static String onearth="select * into %1$s from (select distinct a.* from %2$s as a join hcaf_d as b on ((b.centerlat-a.%3$s)*(b.centerlat-a.%3$s)+(b.centerlong-a.%4$s)*(b.centerlong-a.%4$s)<= 0.125) and b.landdist<=0.3) as t limit 50000"; + private static String inthesea="select * into %1$s from (select distinct a.* from %2$s as a join hcaf_d as b on ((b.centerlat-a.%3$s)*(b.centerlat-a.%3$s)+(b.centerlong-a.%4$s)*(b.centerlong-a.%4$s)<= 0.125) and b.oceanarea>0) as t limit 10000"; + private static String onearth="select * into %1$s from (select distinct a.* from %2$s as a join hcaf_d as b on ((b.centerlat-a.%3$s)*(b.centerlat-a.%3$s)+(b.centerlong-a.%4$s)*(b.centerlong-a.%4$s)<= 0.125) and b.landdist<=0.3) as t limit 10000"; static String tableNameF = "OccurrencePointsTableName"; static String filterTypeF = "FilterType"; String tableName; @@ -69,7 +69,7 @@ public class OccurrencePointsInSeaOnEarth extends OccurrencePointsMerger{ @Override public String getDescription() { - return "A transducer algorithm that produces a table containing occurrence points by filtering them by type of area, i.e. by recognising whether they are marine or terrestrial. Works with up to 50000 points per table."; + return "A transducer algorithm that produces a table containing occurrence points by filtering them by type of area, i.e. by recognising whether they are marine or terrestrial. Works with up to 10000 points per table."; } @Override