Examples of GeometryBuilder


Examples of de.ailis.jollada.builders.GeometryBuilder

     *            The element attributes
     */

    private void enterGeometry(final Attributes attributes)
    {
        this.geometryBuilder = new GeometryBuilder();
        this.geometryBuilder.setId(attributes.getValue("id"));
        this.geometryBuilder.setName(attributes.getValue("name"));
        enterElement(ParserMode.GEOMETRY);
    }
View Full Code Here

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

Examples of org.geotools.geometry.GeometryBuilder

    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

Examples of org.geotools.geometry.GeometryBuilder

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

Examples of org.geotools.geometry.GeometryBuilder

public class CompositeSurfaceTest extends TestCase {

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

Examples of org.geotools.geometry.GeometryBuilder

                          // 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

Examples of org.geotools.geometry.GeometryBuilder

  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

Examples of org.geotools.geometry.GeometryBuilder

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

Examples of org.geotools.geometry.GeometryBuilder

     * 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

Examples of org.geotools.geometry.GeometryBuilder

*/
public class EnvelopeTest extends TestCase {
 
  public void testMain() {
   
    GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
    this._testEnvelope1(builder);
   
 
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.