com.iver.cit.gvsig.fmap.drivers.shp
Class SHP

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.drivers.shp.SHP

public class SHP
extends java.lang.Object

Clase con las constantes que representan los diferentes tipos de Shape y métodos estáticos relativos a los shapes.

Author:
Vicente Caballero Navarro

Field Summary
static int MULTIPOINT2D
           
static int MULTIPOINT3D
           
static int NULL
           
static int POINT2D
           
static int POINT3D
           
static int POLYGON2D
           
static int POLYGON3D
           
static int POLYLINE2D
           
static int POLYLINE3D
           
 
Constructor Summary
SHP()
           
 
Method Summary
static SHPShape create(int type)
          Crea a partir del tipo de geometría un shape del tipo más adecuado.
static char getCharSelect(int i)
          Devuelve el caracter que representa el tipo de valor del shape.
static void SHPFileFromGeometries(IGeometry[] fgs, java.util.BitSet bitset, SelectableDataSource sds, java.io.File f)
           
static void SHPFileFromSelected(FMap map, java.io.File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final int NULL
See Also:
Constant Field Values

POINT2D

public static final int POINT2D
See Also:
Constant Field Values

POLYLINE2D

public static final int POLYLINE2D
See Also:
Constant Field Values

POLYGON2D

public static final int POLYGON2D
See Also:
Constant Field Values

MULTIPOINT2D

public static final int MULTIPOINT2D
See Also:
Constant Field Values

POINT3D

public static final int POINT3D
See Also:
Constant Field Values

POLYLINE3D

public static final int POLYLINE3D
See Also:
Constant Field Values

POLYGON3D

public static final int POLYGON3D
See Also:
Constant Field Values

MULTIPOINT3D

public static final int MULTIPOINT3D
See Also:
Constant Field Values
Constructor Detail

SHP

public SHP()
Method Detail

create

public static SHPShape create(int type)
                       throws ShapefileException
Crea a partir del tipo de geometría un shape del tipo más adecuado.

Parameters:
type - Tipo de geometría.
Returns:
Geometría más adecuada.
Throws:
ShapefileException - Se lanza cuando es causada por la creación del shape.

getCharSelect

public static char getCharSelect(int i)
Devuelve el caracter que representa el tipo de valor del shape.

Parameters:
i - Tipo de Valor.
Returns:
Tipo de valor entendible por el formato shape.

SHPFileFromSelected

public static void SHPFileFromSelected(FMap map,
                                       java.io.File f)

SHPFileFromGeometries

public static void SHPFileFromGeometries(IGeometry[] fgs,
                                         java.util.BitSet bitset,
                                         SelectableDataSource sds,
                                         java.io.File f)