Class WKTWriter

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

public class WKTWriter extends 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 Details

    • WKTWriter

      public WKTWriter()
      constuctor
  • Method Details

    • write

      public void write(FeatureCollection featureCollection, DriverProperties dp) throws 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:
      Exception
    • write

      public void write(FeatureCollection featureCollection, Writer writer) throws IOException
      Function that actually does the writing
      Parameters:
      featureCollection - features to write
      writer - where to write
      Throws:
      IOException