com.vividsolutions.jump.io
Class WKTWriter

java.lang.Object
  extended by com.vividsolutions.jump.io.WKTWriter
All Implemented Interfaces:
JUMPWriter

public class WKTWriter
extends java.lang.Object
implements JUMPWriter

WKTWriter is a JUMPWriter specialized to write WTK (Well Known Text) files.

DataProperties for the JUMPWriter write(featureSchema,DataProperties) interface:

Parameter Meaning
OutputFile or DefaultValue File name for output .wkt file


Constructor Summary
WKTWriter()
          constuctor
 
Method Summary
 void write(FeatureCollection featureCollection, DriverProperties dp)
          Main method - writes a list of wkt features (no attributes).
 void write(FeatureCollection featureCollection, java.io.Writer writer)
          Function that actually does the writing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WKTWriter

public WKTWriter()
constuctor

Method Detail

write

public void write(FeatureCollection featureCollection,
                  DriverProperties dp)
           throws IllegalParametersException,
                  java.lang.Exception
Main method - writes a list of wkt features (no attributes).

Specified by:
write in interface JUMPWriter
Parameters:
featureCollection - features to write
dp - 'OutputFile' or 'DefaultValue' to specify the output file.
Throws:
IllegalParametersException
java.lang.Exception

write

public void write(FeatureCollection featureCollection,
                  java.io.Writer writer)
           throws java.io.IOException
Function that actually does the writing

Parameters:
featureCollection - features to write
writer - where to write
Throws:
java.io.IOException