Gianpaolo Coro 2013-05-29 15:09:17 +00:00
parent 0b450065dc
commit 9d01b2a0fb
1 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,11 @@ public class GeoIntersector {
featurer.setScope(scope);
this.configDir=cfgDir;
}
public FeaturesManager getFeaturer(){
return featurer;
}
public LinkedHashMap<String, Double> getFeaturesInTime(String layerTitle, double x, double y) throws Exception {
return getFeaturesInTime(layerTitle, x, y, 0);
}
@ -117,7 +121,7 @@ public class GeoIntersector {
boolean found = false;
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);
// features.add(poly.value);
featuresarray[k] = poly.value;