|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.geometry.SimpleGeometryFactory
public class SimpleGeometryFactory
Supplies utility methods for building simple Geometry objects.
GeometryFactory,
GeometryInspector| Field Summary | |
|---|---|
protected List<GeometryInspector> |
inspectors
|
protected PrecisionModel |
pm
|
| Constructor Summary | |
|---|---|
SimpleGeometryFactory()
|
|
SimpleGeometryFactory(PrecisionModel pm)
|
|
| Method Summary | |
|---|---|
void |
addInspector(GeometryInspector inspector)
Adds the given GeometryInspector which will be invoked for every Geometry / CurveSegment
or SurfacePatch instance created by this factory. |
Envelope |
createEnvelope(double[] min,
double[] max,
CRS crs)
Creates an Envelope. |
Envelope |
createEnvelope(double minx,
double miny,
double maxx,
double maxy,
CRS crs)
Creates an Envelope in 2D space. |
Envelope |
createEnvelope(List<Double> lowerCorner,
List<Double> upperCorner,
CRS crs)
Create an Envelope from a list of Doubles. |
LineString |
createLineString(String id,
CRS crs,
Points points)
Creates a LineString geometry. |
MultiGeometry<Geometry> |
createMultiGeometry(String id,
CRS crs,
List<Geometry> members)
Creates an untyped multi geometry from a list of Geometrys. |
MultiLineString |
createMultiLineString(String id,
CRS crs,
List<LineString> members)
Creates a MultiCurve from a list of passed LineStrings. |
MultiPoint |
createMultiPoint(String id,
CRS crs,
List<Point> members)
Creates a MultiPoint from a list of passed Points. |
MultiPolygon |
createMultiPolygon(String id,
CRS crs,
List<Polygon> members)
Creates a MultiPolygon from a list of passed Polygons. |
Point |
createPoint(String id,
double[] coordinates,
CRS crs)
Creates a Point with an arbitrary number of coordinates. |
Point |
createPoint(String id,
double x,
double y,
CRS crs)
Creates a Point in 2D space. |
Point |
createPoint(String id,
double x,
double y,
double z,
CRS crs)
Creates a Point in 3D space. |
Points |
createPoints(List<Point> points)
Creates a Points object from the given list of Point instances. |
Polygon |
createPolygon(String id,
CRS crs,
Ring exteriorRing,
List<Ring> interiorRings)
Creates a Polygon surface. |
protected Geometry |
inspect(Geometry geom)
|
protected Points |
inspect(Points points)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<GeometryInspector> inspectors
protected PrecisionModel pm
| Constructor Detail |
|---|
public SimpleGeometryFactory()
public SimpleGeometryFactory(PrecisionModel pm)
| Method Detail |
|---|
public void addInspector(GeometryInspector inspector)
GeometryInspector which will be invoked for every Geometry / CurveSegment
or SurfacePatch instance created by this factory.
inspector - inspector to be added, must not be nullprotected Geometry inspect(Geometry geom)
protected Points inspect(Points points)
public Point createPoint(String id,
double x,
double y,
CRS crs)
Point in 2D space.
id - identifier, may be nullx - value for first coordinatey - value for second coordinatecrs - coordinate reference system, may be null
Point
public Point createPoint(String id,
double x,
double y,
double z,
CRS crs)
Point in 3D space.
id - identifier, may be nullx - value for first coordinatey - value for second coordinatez - value for third coordinatecrs - coordinate reference system, may be null
Point
public Point createPoint(String id,
double[] coordinates,
CRS crs)
Point with an arbitrary number of coordinates.
id - identifier, may be nullcoordinates - coordinate valuescrs - coordinate reference system, may be null
Pointpublic Points createPoints(List<Point> points)
Points object from the given list of Point instances.
points - list of points, must not be null
Points
public Polygon createPolygon(String id,
CRS crs,
Ring exteriorRing,
List<Ring> interiorRings)
Polygon surface.
id - identifier of the new geometry instancecrs - coordinate reference system, may be nullexteriorRing - ring that defines the outer boundary, this may be null (see section 9.2.2.5 of GML spec)interiorRings - list of rings that define the inner boundaries, may be empty or null
Polygon
public LineString createLineString(String id,
CRS crs,
Points points)
LineString geometry.
id - identifier, may be nullcrs - coordinate reference systempoints - control points
LineString
public Envelope createEnvelope(double[] min,
double[] max,
CRS crs)
Envelope.
min - minimum corner coordinatesmax - maximum corner coordinatescrs - coordinate reference system, may be null
Envelope
public Envelope createEnvelope(double minx,
double miny,
double maxx,
double maxy,
CRS crs)
Envelope in 2D space.
minx - minimum x corner coordinateminy - minimum y corner coordinatemaxx - maximum x corner coordinatemaxy - maximum y corner coordinatecrs - coordinate reference system, may be null
Envelope
public Envelope createEnvelope(List<Double> lowerCorner,
List<Double> upperCorner,
CRS crs)
Envelope from a list of Doubles.
lowerCorner - upperCorner - crs - coordinate reference system, may be null
public MultiGeometry<Geometry> createMultiGeometry(String id,
CRS crs,
List<Geometry> members)
Geometrys.
id - identifier, may be nullcrs - coordinate reference system, may be nullmembers -
MultiGeometry
public MultiPoint createMultiPoint(String id,
CRS crs,
List<Point> members)
MultiPoint from a list of passed Points.
id - identifier, may be nullcrs - coordinate reference system, may be nullmembers - points that constitute the collection
MultiPoint
public MultiLineString createMultiLineString(String id,
CRS crs,
List<LineString> members)
MultiCurve from a list of passed LineStrings.
id - identifier, may be nullcrs - coordinate reference system, may be nullmembers - curves that constitute the collection
MultiLineString
public MultiPolygon createMultiPolygon(String id,
CRS crs,
List<Polygon> members)
MultiPolygon from a list of passed Polygons.
id - identifier, may be nullcrs - coordinate reference system, may be nullmembers - polygons that constitute the collection
MultiPolygon
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||