public class SHPPolygon extends SHPMultiLine
m_type, parts, points, zs
Constructor and Description |
---|
SHPPolygon()
Crea un nuevo SHPPolygon.
|
SHPPolygon(int type)
Crea un nuevo SHPPolygon.
|
Modifier and Type | Method and Description |
---|---|
int |
getLength(Geometry fgeometry)
Devuelve el tamaño de la geometría.
|
int |
getShapeType()
Devuelve el tipo de shape de que se trata.
|
Geometry |
read(MappedByteBuffer buffer,
int type)
Lee del buffer el shape y crea una nueva geometría.
|
void |
write(ByteBuffer buffer,
Geometry geometry)
Escribe en el buffer la geometría que se pasa como parámetro.
|
getGeneralPathX, obtainsPoints
public SHPPolygon()
public SHPPolygon(int type)
type
- Tipo de shape.ShapefileException
public int getShapeType()
SHPShape
getShapeType
in interface SHPShape
getShapeType
in class SHPMultiLine
com.iver.cit.gvsig.fmap.shp.SHPShape#getShapeType()
public Geometry read(MappedByteBuffer buffer, int type)
SHPShape
read
in interface SHPShape
read
in class SHPMultiLine
buffer
- Buffer de donde se lee.type
- Tipo de shape en concreto.com.iver.cit.gvsig.fmap.shp.SHPShape#read(MappedByteBuffer, int)
public void write(ByteBuffer buffer, Geometry geometry)
SHPShape
write
in interface SHPShape
write
in class SHPMultiLine
buffer
- Buffer donde escribir.geometry
- Geometría a escribir.com.iver.cit.gvsig.fmap.shp.SHPShape#write(ByteBuffer, IGeometry)
public int getLength(Geometry fgeometry)
SHPShape
getLength
in interface SHPShape
getLength
in class SHPMultiLine
fgeometry
- Geometría a medir.com.iver.cit.gvsig.fmap.shp.SHPShape#getLength(com.iver.cit.gvsig.core.BasicShape.FGeometry)