VWTransformer class
- Inheritance
-
- Object
- GeometryTransformer
- VWTransformer
Constructors
- VWTransformer(bool isEnsureValidTopology, double distanceTolerance)
Properties
- distanceTolerance ↔ double
-
getter/setter pair
- factory ↔ GeometryFactory
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputGeom ↔ Geometry
-
Possible extensions:
getParent() method to return immediate parent e.g. of LinearRings in Polygons
getter/setter pairinherited
- isEnsureValidTopology ↔ bool
-
getter/setter pair
- preserveCollections ↔ bool
-
true
if the output from a collection argument should still be a collectiongetter/setter pairinherited - preserveGeometryCollectionType ↔ bool
-
true
if a homogenous collection result from a {@link GeometryCollection} should still be a general GeometryCollectiongetter/setter pairinherited - preserveType ↔ bool
-
true
if the type of the input should be preservedgetter/setter pairinherited - pruneEmptyGeometry ↔ bool
-
true
if empty geometries should not be included in the resultgetter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copy(
CoordinateSequence seq) → CoordinateSequence -
Convenience method which provides a standard way of copying {@link CoordinateSequence}s
@param seq the sequence to copy
@return a deep copy of the sequence
inherited
-
createCoordinateSequence(
List< Coordinate> coords) → CoordinateSequence -
Convenience method which provides standard way of
creating a {@link CoordinateSequence}
inherited
-
createValidArea(
Geometry rawAreaGeom) → Geometry - Creates a valid area geometry from one that possibly has bad topology (i.e. self-intersections). Since buffer can handle invalid topology, but always returns valid geometry, constructing a 0-width buffer "corrects" the topology. Note this only works for area geometries, since buffer always returns areas. This also may return empty geometries, if the input has no actual area.
-
getInputGeometry(
) → Geometry -
Utility function to make input geometry available
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
Geometry inputGeom) → Geometry -
inherited
-
transformCoordinates(
CoordinateSequence coords, Geometry parent) → CoordinateSequence -
Transforms a {@link CoordinateSequence}.
This method should always return a valid coordinate list for
the desired result type. (E.g. a coordinate list for a LineString
must have 0 or at least 2 points).
If this is not possible, return an empty sequence -
this will be pruned out.
override
-
transformGeometryCollection(
GeometryCollection geom, Geometry parent) → Geometry -
inherited
-
transformLinearRing(
LinearRing geom, Geometry parent) → Geometry -
Simplifies a LinearRing. If the simplification results in a degenerate
ring, remove the component.
override
-
transformLineString(
LineString geom, Geometry parent) → Geometry -
Transforms a {@link LineString} geometry.
inherited
-
transformMultiLineString(
MultiLineString geom, Geometry parent) → Geometry -
inherited
-
transformMultiPoint(
MultiPoint geom, Geometry parent) → Geometry -
inherited
-
transformMultiPolygon(
MultiPolygon geom, Geometry parent) → Geometry -
Simplifies a MultiPolygon, fixing it if required.
override
-
transformPoint(
Point geom, Geometry parent) → Geometry -
inherited
-
transformPolygon(
Polygon geom, Geometry parent) → Geometry -
Simplifies a polygon, fixing it if required.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited