Class SHPMultiLine

java.lang.Object
org.gvsig.fmap.dal.store.shp.utils.SHPMultiLine
All Implemented Interfaces:
SHPShape
Direct Known Subclasses:
SHPPolygon

public class SHPMultiLine extends Object implements SHPShape
Elemento shape de tipo multilínea.
Author:
Vicente Caballero Navarro
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected int[]
     
    protected org.gvsig.fmap.geom.primitive.Point[]
     
    protected double[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Crea un nuevo SHPMultiLine.
    SHPMultiLine(int type)
    Crea un nuevo SHPMultiLine.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.gvsig.fmap.geom.primitive.GeneralPathX
    getGeneralPathX(org.gvsig.fmap.geom.primitive.Point[] po, int[] pa)
    DOCUMENT ME!
    int
    getLength(org.gvsig.fmap.geom.Geometry fgeometry)
    Devuelve el tamaño de la geometría.
    int
    Devuelve el tipo de shape de que se trata.
    void
    obtainsPoints(org.gvsig.fmap.geom.Geometry g)
    Obtiene los puntos y partes del GeneralPathXIterator del shape.
    org.gvsig.fmap.geom.Geometry
    read(MappedByteBuffer buffer, int type)
    Lee del buffer el shape y crea una nueva geometría.
    void
    write(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 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • m_type

      protected int m_type
    • parts

      protected int[] parts
    • points

      protected org.gvsig.fmap.geom.primitive.Point[] points
    • zs

      protected double[] zs
  • Constructor Details

    • SHPMultiLine

      public SHPMultiLine()
      Crea un nuevo SHPMultiLine.
    • SHPMultiLine

      public SHPMultiLine(int type)
      Crea un nuevo SHPMultiLine.
      Parameters:
      type - Tipo de multilínea.
  • 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
      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
      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
      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
      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(int)
    • getGeneralPathX

      protected org.gvsig.fmap.geom.primitive.GeneralPathX getGeneralPathX(org.gvsig.fmap.geom.primitive.Point[] po, int[] pa)
      DOCUMENT ME!
      Parameters:
      po - DOCUMENT ME!
      pa - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • obtainsPoints

      public void obtainsPoints(org.gvsig.fmap.geom.Geometry g)
      Description copied from interface: SHPShape
      Obtiene los puntos y partes del GeneralPathXIterator del shape.
      Specified by:
      obtainsPoints in interface SHPShape
      See Also:
      • invalid reference
        com.iver.cit.gvsig.fmap.shp.SHPShape#obtainsPoints(com.iver.cit.gvsig.fmap.core.GeneralPathXIterator)