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

public class SHPPolygon extends SHPMultiLine
Elemento shape de tipo Polígono.
Author:
Vicente Caballero Navarro
  • 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: SHPShape
      Devuelve el tipo de shape de que se trata.
      Specified by:
      getShapeType in interface SHPShape
      Overrides:
      getShapeType in class SHPMultiLine
      Returns:
      Tipo de shape.
      See Also:
      • invalid reference
        com.iver.cit.gvsig.fmap.shp.SHPShape#getShapeType()
    • read

      public org.gvsig.fmap.geom.Geometry read(MappedByteBuffer buffer, int type)
      Description copied from interface: SHPShape
      Lee del buffer el shape y crea una nueva geometría.
      Specified by:
      read in interface SHPShape
      Overrides:
      read in class SHPMultiLine
      Parameters:
      buffer - Buffer de donde se lee.
      type - Tipo de shape en concreto.
      Returns:
      Nueva geometría.
      See Also:
      • invalid reference
        com.iver.cit.gvsig.fmap.shp.SHPShape#read(MappedByteBuffer, int)
    • write

      public void write(ByteBuffer buffer, org.gvsig.fmap.geom.Geometry geometry)
      Description copied from interface: SHPShape
      Escribe en el buffer la geometría que se pasa como parámetro.
      Specified by:
      write in interface SHPShape
      Overrides:
      write in class SHPMultiLine
      Parameters:
      buffer - Buffer donde escribir.
      geometry - Geometría a escribir.
      See Also:
      • invalid reference
        com.iver.cit.gvsig.fmap.shp.SHPShape#write(ByteBuffer, IGeometry)
    • getLength

      public int getLength(org.gvsig.fmap.geom.Geometry fgeometry)
      Description copied from interface: SHPShape
      Devuelve el tamaño de la geometría.
      Specified by:
      getLength in interface SHPShape
      Overrides:
      getLength in class SHPMultiLine
      Parameters:
      fgeometry - Geometría a medir.
      Returns:
      Tamaño de la geometría.
      See Also:
      • invalid reference
        com.iver.cit.gvsig.fmap.shp.SHPShape#getLength(com.iver.cit.gvsig.core.BasicShape.FGeometry)