Package ca.carleton.gcrc.geom

Examples of ca.carleton.gcrc.geom.MultiPoint.addPoint()


      if( exifData.containsLongLat()
       && false == docDescriptor.isGeometryDescriptionAvailable() ) {
       
        Point point = new Point(exifData.computeLong(),exifData.computeLat());
        MultiPoint mp = new MultiPoint();
        mp.addPoint(point);
       
        GeometryDescriptor geomDesc = docDescriptor.getGeometryDescription();
        geomDesc.setGeometry(mp);
      }
    }
View Full Code Here


      if( exifData.containsLongLat()
       && false == conversionContext.isGeometryDescriptionAvailable() ) {
       
        Point point = new Point(exifData.computeLong(),exifData.computeLat());
        MultiPoint mp = new MultiPoint();
        mp.addPoint(point);
       
        GeometryDescriptor geomDesc = conversionContext.getGeometryDescription();
        geomDesc.setGeometry(mp);
      }
    }
View Full Code Here

    boolean done = false;
    do {
      skipWhiteSpaces(br);
      if( checkForLeftParen(br) ) {
        Point point = parsePoint(br);
        multiPoint.addPoint(point);
      } else {
        List<Number> positions = parsePositions(br);
        if( positions.size() < 2 ){
          throw new Exception("A point must have 2 or more positions");
        }
View Full Code Here

        if( positions.size() < 2 ){
          throw new Exception("A point must have 2 or more positions");
        }

        Point point = new Point(positions);
        multiPoint.addPoint(point);
      }

      if( checkForRightParen(br) ) {
        done = true;
      } else {
View Full Code Here

        Point point = new Point();
        for(int coordIndex=0,coordEnd=coordinates.length(); coordIndex<coordEnd; ++coordIndex){
          double position = coordinates.getDouble(coordIndex);
          point.addPosition(position);
        }
        multiPoint.addPoint(point);
      }
     
      return multiPoint;
     
    } catch(Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.