repast.simphony.space.gis
Class ShapefileWriter

java.lang.Object
  extended by repast.simphony.space.gis.ShapefileWriter

public class ShapefileWriter
extends Object

Writes the contents of a geography to a shapefile each layer of the geography is written to a separate shapefile.

Author:
Nick Collier

Constructor Summary
ShapefileWriter(Geography geography)
          Creates a ShapefileWriter that will write layers in the specified geography to a shapefile.
 
Method Summary
 void write(String layerName, URL url)
          Writes named geography layer to the specified URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapefileWriter

public ShapefileWriter(Geography geography)
Creates a ShapefileWriter that will write layers in the specified geography to a shapefile.

Parameters:
geography - the geography to write
Method Detail

write

public void write(String layerName,
                  URL url)
Writes named geography layer to the specified URL.

Parameters:
layerName - the name of the layer to write
url - url to write the layer to