org.geotools.data.shapefile.shp
Class ShapefileHeader

java.lang.Object
  extended byorg.geotools.data.shapefile.shp.ShapefileHeader

public class ShapefileHeader
extends java.lang.Object

Author:
jamesm, Ian Schneider

Field Summary
static int MAGIC
           
static int VERSION
           
 
Constructor Summary
ShapefileHeader()
           
 
Method Summary
 int getFileLength()
           
 ShapeType getShapeType()
           
 int getVersion()
           
static void main(java.lang.String[] args)
           
 double maxX()
           
 double maxY()
           
 double minX()
           
 double minY()
           
 void read(java.nio.ByteBuffer file, boolean strict)
           
 java.lang.String toString()
           
 void write(java.nio.ByteBuffer file, ShapeType type, int numGeoms, int length, double minX, double minY, double maxX, double maxY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAGIC

public static final int MAGIC
See Also:
Constant Field Values

VERSION

public static final int VERSION
See Also:
Constant Field Values
Constructor Detail

ShapefileHeader

public ShapefileHeader()
Method Detail

read

public void read(java.nio.ByteBuffer file,
                 boolean strict)
          throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.nio.ByteBuffer file,
                  ShapeType type,
                  int numGeoms,
                  int length,
                  double minX,
                  double minY,
                  double maxX,
                  double maxY)
           throws java.io.IOException
Throws:
java.io.IOException

getShapeType

public ShapeType getShapeType()

getVersion

public int getVersion()

getFileLength

public int getFileLength()

minX

public double minX()

minY

public double minY()

maxX

public double maxX()

maxY

public double maxY()

toString

public java.lang.String toString()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © GeoTools. All Rights Reserved.