Package org.geotools.geometry

Examples of org.geotools.geometry.GeometryBuilder


*/
public class PicoCurveTest extends TestCase {
 
  public void testMain() {
   
    GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
   
    this._testCurve(builder);
   
  }
View Full Code Here


   
  }
 
  public void testCurveAgain() {

    GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
    PositionFactory posF = builder.getPositionFactory();
    PrimitiveFactory primF = builder.getPrimitiveFactory();
    GeometryFactory geomF = builder.getGeometryFactory();   

//     create directpositions
    DirectPosition start = posF.createDirectPosition(new double[]{ 48.44, -123.37 });
    DirectPosition middle = posF.createDirectPosition(new double[]{ 47, -122 });
    DirectPosition end = posF.createDirectPosition(new double[]{ 46.5, -121.5 });
View Full Code Here

*/
public class CurveTest extends TestCase {
 
  public void testMain() {
   
    GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
   
    this._testCurve(builder);
   
  }
View Full Code Here

  CoordinateReferenceSystem crs_WGS84;
  GeometryBuilder builder;
 
  public void setUp() {
    crs_WGS84 = DefaultGeographicCRS.WGS84;
    builder = new GeometryBuilder(crs_WGS84);
  }
View Full Code Here

*/
public class Dimension2o5DTest extends TestCase {
 
  public void testMain() {
   
    GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84_3D);
   
    this._testCurve1(builder);
    this._testSurface(builder);
   
  }
View Full Code Here

  /**
   * @param args
   */
  public static void main(String[] args) {
    GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84_3D);
   
    //this._testTriangle1(tGeomFactory);
    _testRing1(builder);
   
  }
View Full Code Here

*/
public class RingTest extends TestCase {
 
  public void testMain() {
   
    GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
   
    //this._testTriangle1(tGeomFactory);
    this._testRing1(builder);
   
  }
View Full Code Here

    else
      return ff.or(filters);
  }
 
  private static Filter getDistanceFilter(String propertyName, Coordinate coordinate, CoordinateReferenceSystem crs, FilterFactory2 ff) throws FactoryException {
    GeometryBuilder builder = new GeometryBuilder(crs);
    org.opengis.geometry.primitive.Point point = builder.createPoint(coordinate.x, coordinate.y, coordinate.z);
    Unit<?> unit_str = CRSUtilities.getUnit(crs.getCoordinateSystem());
    double unit = 0.00001;
    if(unit_str.getStandardUnit().isCompatible(SI.METER)) {
      unit = 1.11;
    }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.GeometryBuilder

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.