Class SHPPolygon
java.lang.Object
org.gvsig.fmap.dal.store.shp.utils.SHPMultiLine
org.gvsig.fmap.dal.store.shp.utils.SHPPolygon
- All Implemented Interfaces:
SHPShape
Elemento shape de tipo Polígono.
- Author:
- Vicente Caballero Navarro
-
Field Summary
Fields inherited from class org.gvsig.fmap.dal.store.shp.utils.SHPMultiLine
m_type, parts, points, zs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLength(org.gvsig.fmap.geom.Geometry fgeometry) Devuelve el tamaño de la geometría.intDevuelve el tipo de shape de que se trata.org.gvsig.fmap.geom.Geometryread(MappedByteBuffer buffer, int type) Lee del buffer el shape y crea una nueva geometría.voidwrite(ByteBuffer buffer, org.gvsig.fmap.geom.Geometry geometry) Escribe en el buffer la geometría que se pasa como parámetro.Methods inherited from class org.gvsig.fmap.dal.store.shp.utils.SHPMultiLine
getGeneralPathX, obtainsPoints
-
Constructor Details
-
SHPPolygon
public SHPPolygon()Crea un nuevo SHPPolygon. -
SHPPolygon
public SHPPolygon(int type) Crea un nuevo SHPPolygon.- Parameters:
type- Tipo de shape.
-
-
Method Details
-
getShapeType
public int getShapeType()Description copied from interface:SHPShapeDevuelve el tipo de shape de que se trata.- Specified by:
getShapeTypein interfaceSHPShape- Overrides:
getShapeTypein classSHPMultiLine- Returns:
- Tipo de shape.
- See Also:
-
read
Description copied from interface:SHPShapeLee del buffer el shape y crea una nueva geometría.- Specified by:
readin interfaceSHPShape- Overrides:
readin classSHPMultiLine- Parameters:
buffer- Buffer de donde se lee.type- Tipo de shape en concreto.- Returns:
- Nueva geometría.
- See Also:
-
write
Description copied from interface:SHPShapeEscribe en el buffer la geometría que se pasa como parámetro.- Specified by:
writein interfaceSHPShape- Overrides:
writein classSHPMultiLine- Parameters:
buffer- Buffer donde escribir.geometry- Geometría a escribir.- See Also:
-
getLength
public int getLength(org.gvsig.fmap.geom.Geometry fgeometry) Description copied from interface:SHPShapeDevuelve el tamaño de la geometría.- Specified by:
getLengthin interfaceSHPShape- Overrides:
getLengthin classSHPMultiLine- Parameters:
fgeometry- Geometría a medir.- Returns:
- Tamaño de la geometría.
- See Also:
-