Class SHP
java.lang.Object
org.gvsig.fmap.dal.store.shp.utils.SHP
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SHPShapeWritercreate(int type) Crea a partir del tipo de geometría un shape writer del tipo más adecuado.static FilegetDbfFile(File shpFile) static FilegetPrjFile(File shpFile) static FilegetShpFile(File dbfFile) static FilegetShxFile(File shpFile) static StringgetTypeName(int type) static double[]getZMinMax(double[] zs) Devuelve un array con dos doubles, el primero representa el mínimo valor y el segundo el máximo de entre los valores que se pasan como parámetro en forma de array.
-
Field Details
-
NULL
public static final int NULL- See Also:
-
POINT2D
public static final int POINT2D- See Also:
-
POLYLINE2D
public static final int POLYLINE2D- See Also:
-
POLYGON2D
public static final int POLYGON2D- See Also:
-
MULTIPOINT2D
public static final int MULTIPOINT2D- See Also:
-
POINT3D
public static final int POINT3D- See Also:
-
POLYLINE3D
public static final int POLYLINE3D- See Also:
-
POLYGON3D
public static final int POLYGON3D- See Also:
-
MULTIPOINT3D
public static final int MULTIPOINT3D- See Also:
-
POINTM
public static final int POINTM- See Also:
-
POLYLINEM
public static final int POLYLINEM- See Also:
-
POLYGONM
public static final int POLYGONM- See Also:
-
MULTIPOINTM
public static final int MULTIPOINTM- See Also:
-
-
Constructor Details
-
SHP
public SHP()
-
-
Method Details
-
create
Crea a partir del tipo de geometría un shape writer del tipo más adecuado.- Parameters:
type- Tipo de geometría.- Returns:
- ShapeWriter más adecuado.
-
getTypeName
-
getZMinMax
public static double[] getZMinMax(double[] zs) Devuelve un array con dos doubles, el primero representa el mínimo valor y el segundo el máximo de entre los valores que se pasan como parámetro en forma de array.- Parameters:
zs- Valores a comprobar.- Returns:
- Array de doubles con el valor mínimo y el valor máximo.
-
getDbfFile
-
getShpFile
-
getShxFile
-
getPrjFile
-