Package org.opengis.referencing

Examples of org.opengis.referencing.FactoryException


    public org.opengis.referencing.crs.GeocentricCRS createGeocentricCRS(String str) throws FactoryException {
        throw new FactoryException("Not implemented");
    }
   
    public org.opengis.referencing.crs.ImageCRS createImageCRS(String str) throws FactoryException {
        throw new FactoryException("Not implemented");
    }
View Full Code Here


    public org.opengis.referencing.crs.ImageCRS createImageCRS(String str) throws FactoryException {
        throw new FactoryException("Not implemented");
    }
   
    public org.opengis.referencing.crs.TemporalCRS createTemporalCRS(String str) throws FactoryException {
        throw new FactoryException("Not implemented");
    }
View Full Code Here

    public org.opengis.referencing.crs.TemporalCRS createTemporalCRS(String str) throws FactoryException {
        throw new FactoryException("Not implemented");
    }
   
    public org.opengis.referencing.crs.VerticalCRS createVerticalCRS(String str) throws FactoryException {
        throw new FactoryException("Not implemented");
    }
View Full Code Here

     
      try {
    rsBuilder.getMathTransform().transform(source, 0, source, 0, (source.length + 1) / 2);
  } catch (TransformException e) {
      throw new FactoryException(Errors.format(ErrorKeys.CANT_TRANSFORM_VALID_POINTS), e);                  
  }
      

        return source;
    }  
View Full Code Here

            ty = xNew.getElement(5, 0);

            i++;
     
            if (i > maxSteps) { //&& oldDxMatrix.getElement(0, 0) < dxMatrix.getElement(0, 0)){           
                throw new FactoryException("Calculation of transformation is divergating");
            }
        } while ((!dxMatrix.equals(zero, tolerance)));

        xNew.transpose();
View Full Code Here

    try {
      trans = ConcatenatedTransform.create(ConcatenatedTransform.create(
          this.worldToGrid, wt), this.worldToGrid.inverse());
    } catch (TransformException e) {
      throw new FactoryException(Errors
          .format(ErrorKeys.NONINVERTIBLE_TRANSFORM), e);
    }

    return wt;
  }
View Full Code Here

  private float[] getWarpPositions() throws FactoryException {
    if (warpPositions == null) {
      try {
        warpPositions = computeWarpGrid(gridParameters);
      } catch (TransformException e) {
        throw new FactoryException(Errors
            .format(ErrorKeys.CANT_TRANSFORM_VALID_POINTS), e);
      }

      return warpPositions;
    } else {
View Full Code Here

      String tmpdir = System.getProperty("java.io.tmpdir");
      NADCONTransform trans = new NADCONTransform(this.writeDeltaFile(1, tmpdir+"/nadcon.laa").getAbsolutePath(),
                                              this.writeDeltaFile(0, tmpdir+"/nadcon.loa").getAbsolutePath());
      return trans;
    } catch (ParameterNotFoundException e) {
        throw new FactoryException(e);
    } catch (IOException e) {
           throw new FactoryException(e);
    }
  }      
View Full Code Here

            throws ParameterNotFoundException, InvalidParameterTypeException, FactoryException {
            try {
                return createWarpGrid(values.parameter("X_difference_file").stringValue(),
                    values.parameter("Y_difference_file").stringValue());
            } catch (MalformedURLException e) {
                throw new FactoryException(Errors.format(ErrorKeys.UNSUPPORTED_FILE_TYPE_$2), e);
            } catch (IOException e) {
                throw new FactoryException(Errors.format(ErrorKeys.FILE_DOES_NOT_EXIST_$1), e);
            }
        }
View Full Code Here

            xLine = xBr.readLine(); //skip header description       
            xLine = xBr.readLine();
            xSt = new StringTokenizer(xLine, " ");

            if (xSt.countTokens() > 8) {
                throw new FactoryException(Errors.format(ErrorKeys.HEADER_UNEXPECTED_LENGTH_$1,
                        String.valueOf(xSt.countTokens())));
            }

            int nc = Integer.parseInt(xSt.nextToken());
            int nr = Integer.parseInt(xSt.nextToken());
            int nz = Integer.parseInt(xSt.nextToken());

            float xStart = Float.parseFloat(xSt.nextToken());
            float xStep = Float.parseFloat(xSt.nextToken());
            float yStart = Float.parseFloat(xSt.nextToken());
            float yStep = Float.parseFloat(xSt.nextToken());

            // float angle = Float.parseFloat(latSt.nextToken());
            float xmax = xStart + ((nc - 1) * xStart);
            float ymax = yStart + ((nr - 1) * yStep);

            //now read long shift grid
            longLine = longBr.readLine(); //skip header description
            longLine = longBr.readLine();
            longSt = new StringTokenizer(longLine, " ");

            if (longSt.countTokens() > 8) {
                throw new FactoryException(Errors.format(ErrorKeys.HEADER_UNEXPECTED_LENGTH_$1,
                        String.valueOf(longSt.countTokens())));
            }

            //check that latitude grid header is the same as for latitude grid
            if ((nc != Integer.parseInt(longSt.nextToken()))
                    || (nr != Integer.parseInt(longSt.nextToken()))
                    || (nz != Integer.parseInt(longSt.nextToken()))
                    || (xStart != Float.parseFloat(longSt.nextToken()))
                    || (xStep != Float.parseFloat(longSt.nextToken()))
                    || (yStart != Float.parseFloat(longSt.nextToken()))
                    || (yStep != Float.parseFloat(longSt.nextToken()))) {
                // || (angle != Float.parseFloat(longSt.nextToken()))) {
                throw new FactoryException(Errors.format(ErrorKeys.GRID_LOCATIONS_UNEQUAL));
            }

            ////////////////////////
            //read grid shift data into LocalizationGrid
            ////////////////////////   
View Full Code Here

TOP

Related Classes of org.opengis.referencing.FactoryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.