public class Converter extends Object
Modifier and Type | Field and Description |
---|---|
static CGAlgorithms |
cga
Deprecated.
|
static com.vividsolutions.jts.geom.GeometryFactory |
geomFactory
Deprecated.
|
Constructor and Description |
---|
Converter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Envelope |
convertEnvelopeToJTS(Envelope r)
Deprecated.
|
static Rectangle2D |
convertEnvelopeToRectangle2D(Envelope jtsR)
Deprecated.
|
static Point |
coordinate2FPoint2D(Coordinate coord)
Deprecated.
DOCUMENT ME!
|
static com.vividsolutions.jts.geom.Geometry |
geometryToJts(Geometry geom)
Deprecated.
|
static com.vividsolutions.jts.geom.Geometry |
geometryToJts(MultiCurve geom)
Deprecated.
Convierte una MultiCurve2D en una MultiLineString de JTS
|
static com.vividsolutions.jts.geom.Geometry |
geometryToJts(MultiPoint geom)
Deprecated.
Convierte un MultiPoint2D a un MultiPoint de JTS
|
com.vividsolutions.jts.geom.Geometry |
geometryToJts(MultiPrimitive geom)
Deprecated.
Convierte una BaseMultiPrimitive en una GeometryCollection de JTS
|
static com.vividsolutions.jts.geom.Geometry |
geometryToJts(MultiSurface geom)
Deprecated.
Convierte una MultiSurface2D en un MultiPolygon de JTS
|
static com.vividsolutions.jts.geom.Geometry |
geometryToJtsWithSRID(Geometry geom,
int srid)
Deprecated.
|
static com.vividsolutions.jts.geom.Geometry |
geometryToJtsWithSRIDForcingType(Geometry geom,
int srid,
int type)
Deprecated.
|
static Geometry |
getExteriorPolygon(Coordinate[] coordinates)
Deprecated.
Return a correct polygon (no hole)
|
static Shape |
getExteriorPolygon(GeneralPathX gp)
Deprecated.
|
static Geometry |
getHole(Coordinate[] coordinates)
Deprecated.
Return a hole (CCW ordered points)
|
static Geometry |
getNotHolePolygon(Surface pol)
Deprecated.
Use it ONLY for NOT multipart polygons.
|
static boolean |
isCCW(Point[] points)
Deprecated.
|
static boolean |
isCCW(Surface pol)
Deprecated.
|
static Geometry |
jtsToGeometry(com.vividsolutions.jts.geom.Geometry geo)
Deprecated.
Receives a JTS Geometry and returns a DAL Geometry
|
static com.vividsolutions.jts.geom.Geometry |
multiCurveToJts(MultiCurve geom,
int srid)
Deprecated.
|
static com.vividsolutions.jts.geom.Geometry |
multiSurfaceToJts(MultiSurface geom,
int srid)
Deprecated.
Metodo creado para construir un MultiSurface formado por varias surface
|
static GeneralPathX |
toShape(com.vividsolutions.jts.geom.Geometry geometry)
Deprecated.
Convierte una Geometry de JTS a GeneralPathX.
|
static GeneralPathX |
transformToInts(GeneralPathX gp,
AffineTransform at)
Deprecated.
|
static Geometry |
transformToInts(Geometry gp,
AffineTransform at)
Deprecated.
|
public static final com.vividsolutions.jts.geom.GeometryFactory geomFactory
public static CGAlgorithms cga
public static Geometry jtsToGeometry(com.vividsolutions.jts.geom.Geometry geo) throws CreateGeometryException
jtsGeometry
- jts GeometryCreateGeometryException
public static com.vividsolutions.jts.geom.Geometry geometryToJts(MultiPoint geom)
geom
- public static com.vividsolutions.jts.geom.Geometry geometryToJts(MultiCurve geom)
geom
- public static com.vividsolutions.jts.geom.Geometry multiCurveToJts(MultiCurve geom, int srid)
public static com.vividsolutions.jts.geom.Geometry geometryToJts(MultiSurface geom)
public com.vividsolutions.jts.geom.Geometry geometryToJts(MultiPrimitive geom)
public static com.vividsolutions.jts.geom.Geometry geometryToJtsWithSRID(Geometry geom, int srid)
public static com.vividsolutions.jts.geom.Geometry geometryToJtsWithSRIDForcingType(Geometry geom, int srid, int type)
public static com.vividsolutions.jts.geom.Geometry geometryToJts(Geometry geom)
public static Point coordinate2FPoint2D(Coordinate coord) throws CreateGeometryException
coord
- DOCUMENT ME!CreateGeometryException
public static GeneralPathX toShape(com.vividsolutions.jts.geom.Geometry geometry) throws NoninvertibleTransformException, CreateGeometryException
geometry
- Geometry a convertir.NoninvertibleTransformException
CreateGeometryException
IllegalArgumentException
public static GeneralPathX transformToInts(GeneralPathX gp, AffineTransform at)
public static Geometry transformToInts(Geometry gp, AffineTransform at) throws CreateGeometryException
CreateGeometryException
public static Rectangle2D convertEnvelopeToRectangle2D(Envelope jtsR)
public static Envelope convertEnvelopeToJTS(Envelope r)
public static Geometry getExteriorPolygon(Coordinate[] coordinates)
coordinates
- public static boolean isCCW(Point[] points)
public static boolean isCCW(Surface pol)
public static Geometry getHole(Coordinate[] coordinates)
coordinates
- public static Shape getExteriorPolygon(GeneralPathX gp)
public static Geometry getNotHolePolygon(Surface pol)
pol
- public static com.vividsolutions.jts.geom.Geometry multiSurfaceToJts(MultiSurface geom, int srid)
geom
-