git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngineGeoSpatialExtension@76477 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0b450065dc
commit
9d01b2a0fb
|
@ -32,7 +32,11 @@ public class GeoIntersector {
|
||||||
featurer.setScope(scope);
|
featurer.setScope(scope);
|
||||||
this.configDir=cfgDir;
|
this.configDir=cfgDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FeaturesManager getFeaturer(){
|
||||||
|
return featurer;
|
||||||
|
}
|
||||||
|
|
||||||
public LinkedHashMap<String, Double> getFeaturesInTime(String layerTitle, double x, double y) throws Exception {
|
public LinkedHashMap<String, Double> getFeaturesInTime(String layerTitle, double x, double y) throws Exception {
|
||||||
return getFeaturesInTime(layerTitle, x, y, 0);
|
return getFeaturesInTime(layerTitle, x, y, 0);
|
||||||
}
|
}
|
||||||
|
@ -117,7 +121,7 @@ public class GeoIntersector {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
|
||||||
for (FeaturedPolygon poly:featuresInTime){
|
for (FeaturedPolygon poly:featuresInTime){
|
||||||
if (poly.p.covers(po)){
|
if (poly!=null && poly.p!=null && poly.p.covers(po)){
|
||||||
// System.out.println(po+" intersected by "+poly.p+ " assigning value "+poly.value);
|
// System.out.println(po+" intersected by "+poly.p+ " assigning value "+poly.value);
|
||||||
// features.add(poly.value);
|
// features.add(poly.value);
|
||||||
featuresarray[k] = poly.value;
|
featuresarray[k] = poly.value;
|
||||||
|
|
Loading…
Reference in New Issue