Package org.geotools.geometry

Examples of org.geotools.geometry.GeometryBuilder


    public void testRingImpls() {
     
      Hints hints1 = GeoTools.getDefaultHints();
          hints1.put(Hints.CRS, DefaultGeographicCRS.WGS84 );
          hints1.put(Hints.GEOMETRY_VALIDATE, true);
      GeometryBuilder builder_validate = new GeometryBuilder(hints1);
     
      Hints hints2 = GeoTools.getDefaultHints();
          hints2.put(Hints.CRS, DefaultGeographicCRS.WGS84 );
          hints2.put(Hints.GEOMETRY_VALIDATE, false);
      GeometryBuilder builder_novalid = new GeometryBuilder(hints2);
     
      Ring validated = createRing(builder_validate);
      Ring not_validated = createRing(builder_novalid);
     
      //System.out.println(validated);
View Full Code Here


    public void testSurfaceImpl() {
     
      Hints hints1 = GeoTools.getDefaultHints();
          hints1.put(Hints.CRS, DefaultGeographicCRS.WGS84 );
          hints1.put(Hints.GEOMETRY_VALIDATE, true);
      GeometryBuilder builder_validate = new GeometryBuilder(hints1);
     
      Hints hints2 = GeoTools.getDefaultHints();
          hints2.put(Hints.CRS, DefaultGeographicCRS.WGS84 );
          hints2.put(Hints.GEOMETRY_VALIDATE, false);
      GeometryBuilder builder_novalid = new GeometryBuilder(hints2);
     
      Surface validated = createSurface(builder_validate);
      Surface not_validated = createSurface(builder_novalid);
     
      //System.out.println(validated);
View Full Code Here

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

public class CompositeSurfaceTest extends TestCase {

 
  public void testMain() {
   
    GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
   
    this._testCompositeSurface(builder);
   
  }
View Full Code Here

                          // post obj into a point
                          PointImpl point = (PointImpl) op.getExpectedResult();
                          op.setExpectedResult( point );
                        }
                        else { // try parsing this thing as WKT
                          GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
                            GeometryFactory geomFact = builder.getGeometryFactory();
                            PrimitiveFactory primFact = builder.getPrimitiveFactory();
                            WKTParser wktFactory = new WKTParser(geomFact, primFact, null, builder.getAggregateFactory());
                            try {
                                Object expectedResult = wktFactory.parse(operationValue);
                                op.setExpectedResult(expectedResult);
                                testCase.addTestOperation(op);
                            } catch (ParseException e) {
View Full Code Here

  private CoordinateReferenceSystem crs = null;

  public void testMain() {
   
    // === 2D ===
    this.builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
    this.crs = DefaultGeographicCRS.WGS84;
   
    // Test Points and MultiPoints
    this._testPoints2D();
View Full Code Here

    GeometryBuilder builder;
   
    protected void setUp() throws Exception {
        super.setUp();
       
        builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);               
    }
View Full Code Here

     * Called before each test.
     *
     * @throws FactoryException
     */
    public void setUp() throws FactoryException {
      GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);      
        gFact = builder.getGeometryFactory();
        pFact = builder.getPrimitiveFactory();
    }
View Full Code Here

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

*/
public class PointArrayTest extends TestCase {

  public void testMain() {
   
    GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
   
    this._test1(builder);
   
  }
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.