@Override
 public boolean getPixelLocation(double lon, double lat, Point2D p) {
   if (geoCoding.canGetPixelPos()) {
     gp.setLocation((float) lat, (float) lon);
     geoCoding.getPixelPos(gp, pp);
     if (pp.isValid()) {
       p.setLocation(pp);
       return true;
     }
   }
   return false;
 }
Пример #2
0
 private boolean canUseGeoCoordinates(Product product) {
   final GeoCoding geoCoding = product.getGeoCoding();
   return geoCoding != null && geoCoding.canGetPixelPos() && geoCoding.canGetGeoPos();
 }