org.gvsig.fmap.geom.util
Class Converter

java.lang.Object
  extended by org.gvsig.fmap.geom.util.Converter

Deprecated. to be removed or moved from API to implementation in gvSIG 2.1.0

public class Converter
extends Object

Clase con varios m�todos est�ticos utilizados para pasar de java2d a jts y viceversa.

Author:
fjp

Field Summary
static com.vividsolutions.jts.algorithm.CGAlgorithms cga
          Deprecated.  
static com.vividsolutions.jts.geom.GeometryFactory geomFactory
          Deprecated. ï¿½QU� PODEMOS HACER CON LOS MULTIPOINT???
 
Constructor Summary
Converter()
          Deprecated.  
 
Method Summary
static com.vividsolutions.jts.geom.Envelope convertEnvelopeToJTS(Envelope r)
          Deprecated.  
static Rectangle2D convertEnvelopeToRectangle2D(com.vividsolutions.jts.geom.Envelope jtsR)
          Deprecated.  
static Point coordinate2FPoint2D(com.vividsolutions.jts.geom.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
 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
 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 Geometry getExteriorPolygon(com.vividsolutions.jts.geom.Coordinate[] coordinates)
          Deprecated. Return a correct polygon (no hole)
static Shape getExteriorPolygon(GeneralPathX gp)
          Deprecated.  
static Geometry getHole(com.vividsolutions.jts.geom.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(com.vividsolutions.jts.geom.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 fmap IGeometry
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.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geomFactory

public static final com.vividsolutions.jts.geom.GeometryFactory geomFactory
Deprecated. 
�QU� PODEMOS HACER CON LOS MULTIPOINT??? => DEBER�AMOS TRABAJAR CON UN ARRAY DE PUNTOS EN FShape.....Pensarlo bien.


cga

public static com.vividsolutions.jts.algorithm.CGAlgorithms cga
Deprecated. 
Constructor Detail

Converter

public Converter()
Deprecated. 
Method Detail

jtsToGeometry

public static Geometry jtsToGeometry(com.vividsolutions.jts.geom.Geometry geo)
                              throws CreateGeometryException
Deprecated. 
Receives a JTS Geometry and returns a fmap IGeometry

Parameters:
jtsGeometry - jts Geometry
Returns:
IGeometry of FMap
Throws:
CreateGeometryException

geometryToJts

public com.vividsolutions.jts.geom.Geometry geometryToJts(MultiPoint geom)
Deprecated. 
Convierte un MultiPoint2D a un MultiPoint de JTS

Parameters:
geom -
Returns:

geometryToJts

public static com.vividsolutions.jts.geom.Geometry geometryToJts(MultiCurve geom)
Deprecated. 
Convierte una MultiCurve2D en una MultiLineString de JTS

Parameters:
geom -
Returns:

geometryToJts

public com.vividsolutions.jts.geom.Geometry geometryToJts(MultiSurface geom)
Deprecated. 
Convierte una MultiSurface2D en un MultiPolygon de JTS

Returns:

geometryToJts

public com.vividsolutions.jts.geom.Geometry geometryToJts(MultiPrimitive geom)
Deprecated. 
Convierte una BaseMultiPrimitive en una GeometryCollection de JTS

Returns:

geometryToJtsWithSRID

public static com.vividsolutions.jts.geom.Geometry geometryToJtsWithSRID(Geometry geom,
                                                                         int srid)
Deprecated. 

geometryToJts

public static com.vividsolutions.jts.geom.Geometry geometryToJts(Geometry geom)
Deprecated. 

coordinate2FPoint2D

public static Point coordinate2FPoint2D(com.vividsolutions.jts.geom.Coordinate coord)
                                 throws CreateGeometryException
Deprecated. 
DOCUMENT ME!

Parameters:
coord - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
CreateGeometryException

toShape

public static GeneralPathX toShape(com.vividsolutions.jts.geom.Geometry geometry)
                            throws NoninvertibleTransformException,
                                   CreateGeometryException
Deprecated. 
Convierte una Geometry de JTS a GeneralPathX.

Parameters:
geometry - Geometry a convertir.
Returns:
GeneralPathX.
Throws:
NoninvertibleTransformException
CreateGeometryException
IllegalArgumentException

transformToInts

public static GeneralPathX transformToInts(GeneralPathX gp,
                                           AffineTransform at)
Deprecated. 

transformToInts

public static Geometry transformToInts(Geometry gp,
                                       AffineTransform at)
                                throws CreateGeometryException
Deprecated. 
Throws:
CreateGeometryException

convertEnvelopeToRectangle2D

public static Rectangle2D convertEnvelopeToRectangle2D(com.vividsolutions.jts.geom.Envelope jtsR)
Deprecated. 

convertEnvelopeToJTS

public static com.vividsolutions.jts.geom.Envelope convertEnvelopeToJTS(Envelope r)
Deprecated. 

getExteriorPolygon

public static Geometry getExteriorPolygon(com.vividsolutions.jts.geom.Coordinate[] coordinates)
Deprecated. 
Return a correct polygon (no hole)

Parameters:
coordinates -
Returns:

isCCW

public static boolean isCCW(com.vividsolutions.jts.geom.Point[] points)
Deprecated. 

isCCW

public static boolean isCCW(Surface pol)
Deprecated. 

getHole

public static Geometry getHole(com.vividsolutions.jts.geom.Coordinate[] coordinates)
Deprecated. 
Return a hole (CCW ordered points)

Parameters:
coordinates -
Returns:

getExteriorPolygon

public static Shape getExteriorPolygon(GeneralPathX gp)
Deprecated. 

getNotHolePolygon

public static Geometry getNotHolePolygon(Surface pol)
Deprecated. 
Use it ONLY for NOT multipart polygons.

Parameters:
pol -
Returns:


Copyright © 2004-2012 gvSIG. All Rights Reserved.