org.n52.oxf.conversion.gml32.xmlbeans.jts
Class GMLGeometryFactory

java.lang.Object
  extended by org.n52.oxf.conversion.gml32.xmlbeans.jts.GMLGeometryFactory

public class GMLGeometryFactory
extends Object

Class providing static methods for parsing AIXM and GML geometry abstractions.


Constructor Summary
GMLGeometryFactory()
           
 
Method Summary
static void checkAndApplyInterpolation(Collection<GeometryWithInterpolation> geometries)
          Checks if a collection of geometries can be interpolated.
static void checkAndApplyInterpolation(GeometryWithInterpolation geometry)
           
static com.vividsolutions.jts.geom.Geometry createAggregatedGeometry(List<GeometryWithInterpolation> geometryList)
           
static com.vividsolutions.jts.geom.Coordinate[] createCoordinatesFromPosList(net.opengis.gml.x32.DirectPositionListType posList, String srs)
           
static GeometryWithInterpolation createCurve(net.opengis.gml.x32.AbstractCurveSegmentType curve, String srs)
           
static GeometryWithInterpolation createGreatCirlce(net.opengis.gml.x32.GeodesicStringType segment, String srs)
           
static GeometryWithInterpolation createLineString(net.opengis.gml.x32.LineStringSegmentType segment, String srs)
           
static List<GeometryWithInterpolation> createMultiPolygonPatch(net.opengis.gml.x32.SurfacePatchArrayPropertyType patches, String srs)
           
static com.vividsolutions.jts.geom.Point createPoint(net.opengis.gml.x32.DirectPositionType pos, String srs)
           
static com.vividsolutions.jts.geom.Polygon createPolygon(net.opengis.gml.x32.AbstractRingPropertyType exterior, net.opengis.gml.x32.AbstractRingPropertyType[] interiors, String srs)
          Creates a polygon with one exterior and 0..* interior holes.
static com.vividsolutions.jts.geom.Geometry createPolygon(net.opengis.gml.x32.BoundingShapeType boundedBy)
           
static com.vividsolutions.jts.geom.Geometry createPolygon(net.opengis.gml.x32.EnvelopeType envelope)
           
static GeometryWithInterpolation createPolygonPatch(net.opengis.gml.x32.AbstractSurfacePatchType abstractPatch, String srs)
           
static GeometryWithInterpolation createRectangle(net.opengis.gml.x32.RectangleType patch, String srs)
           
static com.vividsolutions.jts.geom.LinearRing createRing(net.opengis.gml.x32.AbstractRingType abstractRing, String srs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLGeometryFactory

public GMLGeometryFactory()
Method Detail

checkAndApplyInterpolation

public static void checkAndApplyInterpolation(Collection<GeometryWithInterpolation> geometries)
Checks if a collection of geometries can be interpolated. This depends on the GeometryFactoryConfiguration settings and the geometries itself. Every geometry is treated separately and interpolation is applied when prerequisites are met.

Parameters:
geometries - the list of geometries with an abstract interpolation method defined.

checkAndApplyInterpolation

public static void checkAndApplyInterpolation(GeometryWithInterpolation geometry)
See Also:
checkAndApplyInterpolation(Collection)

createCurve

public static GeometryWithInterpolation createCurve(net.opengis.gml.x32.AbstractCurveSegmentType curve,
                                                    String srs)
Parameters:
curve - the gml curve segment element
Returns:
a geometry representing abstract curve segment as LineString with an interpolation method defined.

createPolygon

public static com.vividsolutions.jts.geom.Polygon createPolygon(net.opengis.gml.x32.AbstractRingPropertyType exterior,
                                                                net.opengis.gml.x32.AbstractRingPropertyType[] interiors,
                                                                String srs)
Creates a polygon with one exterior and 0..* interior holes.

Parameters:
exterior - the exterior ring
interiors - the holes
srs - as defined in srsName
Returns:
a raw polygon

createPolygonPatch

public static GeometryWithInterpolation createPolygonPatch(net.opengis.gml.x32.AbstractSurfacePatchType abstractPatch,
                                                           String srs)
Parameters:
patch - the gml polygon patch
srs - as defined in srsName
Returns:
a polygon with a defined interpolation method.

createRectangle

public static GeometryWithInterpolation createRectangle(net.opengis.gml.x32.RectangleType patch,
                                                        String srs)
Parameters:
patch - the gml Rectangle
srs - as defined in srsName
Returns:
a rectangle with a defined interpolation method

createCoordinatesFromPosList

public static com.vividsolutions.jts.geom.Coordinate[] createCoordinatesFromPosList(net.opengis.gml.x32.DirectPositionListType posList,
                                                                                    String srs)

createGreatCirlce

public static GeometryWithInterpolation createGreatCirlce(net.opengis.gml.x32.GeodesicStringType segment,
                                                          String srs)

createLineString

public static GeometryWithInterpolation createLineString(net.opengis.gml.x32.LineStringSegmentType segment,
                                                         String srs)

createRing

public static com.vividsolutions.jts.geom.LinearRing createRing(net.opengis.gml.x32.AbstractRingType abstractRing,
                                                                String srs)

createPoint

public static com.vividsolutions.jts.geom.Point createPoint(net.opengis.gml.x32.DirectPositionType pos,
                                                            String srs)

createAggregatedGeometry

public static com.vividsolutions.jts.geom.Geometry createAggregatedGeometry(List<GeometryWithInterpolation> geometryList)

createPolygon

public static com.vividsolutions.jts.geom.Geometry createPolygon(net.opengis.gml.x32.BoundingShapeType boundedBy)

createPolygon

public static com.vividsolutions.jts.geom.Geometry createPolygon(net.opengis.gml.x32.EnvelopeType envelope)

createMultiPolygonPatch

public static List<GeometryWithInterpolation> createMultiPolygonPatch(net.opengis.gml.x32.SurfacePatchArrayPropertyType patches,
                                                                      String srs)


Copyright © 2012-2013 52north.org. All Rights Reserved.