All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.geolatte.geom.codec.support.GeometryBuilder Maven / Gradle / Ivy

Go to download

This geoLatte-geom library offers a geometry model that conforms to the OGC Simple Features for SQL specification.

The newest version!
package org.geolatte.geom.codec.support;

import org.geolatte.geom.Geometry;
import org.geolatte.geom.GeometryType;
import org.geolatte.geom.Position;
import org.geolatte.geom.crs.CoordinateReferenceSystem;

abstract public class GeometryBuilder {
    public static GeometryBuilder create(GeometryType type) {
        if (type == GeometryType.GEOMETRYCOLLECTION) {
            return new CollectionGeometryBuilder();
        } else {
            return new SimpleGeometryBuilder(type);
        }
    }

    abstract public 

Geometry

createGeometry(CoordinateReferenceSystem

crs); abstract public int getCoordinateDimension(); abstract public void setPositions(Holder positions); abstract public boolean isEmpty(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy