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(java.nio.MappedByteBuffer buffer,
int type)
Lee del buffer el shape y crea una nueva geometría.
|
void |
write(java.nio.ByteBuffer buffer,
Geometry geometry)
Escribe en el buffer la geometría que se pasa como parámetro.
|
getGeneralPathX, obtainsPointspublic SHPPolygon()
public SHPPolygon(int type)
type - Tipo de shape.ShapefileExceptionpublic int getShapeType()
SHPShapegetShapeType in interface SHPShapegetShapeType in class SHPMultiLinecom.iver.cit.gvsig.fmap.shp.SHPShape#getShapeType()public Geometry read(java.nio.MappedByteBuffer buffer, int type)
SHPShaperead in interface SHPShaperead in class SHPMultiLinebuffer - Buffer de donde se lee.type - Tipo de shape en concreto.com.iver.cit.gvsig.fmap.shp.SHPShape#read(MappedByteBuffer, int)public void write(java.nio.ByteBuffer buffer,
Geometry geometry)
SHPShapewrite in interface SHPShapewrite in class SHPMultiLinebuffer - Buffer donde escribir.geometry - Geometría a escribir.com.iver.cit.gvsig.fmap.shp.SHPShape#write(ByteBuffer, IGeometry)public int getLength(Geometry fgeometry)
SHPShapegetLength in interface SHPShapegetLength in class SHPMultiLinefgeometry - Geometría a medir.com.iver.cit.gvsig.fmap.shp.SHPShape#getLength(com.iver.cit.gvsig.core.BasicShape.FGeometry)