net.refractions.udig.catalog.ui.operation
Class ReshapeOperation

java.lang.Object
  extended by net.refractions.udig.catalog.ui.operation.ReshapeOperation

public class ReshapeOperation
extends java.lang.Object

This class pops up a dialog and asks the user to fiddle with the expressions used to create a new temporary layer.

While the Dialog may be simple; this is a reasonable example at how to hack at an operation that processes data in a way that does not force all the data into memory.

However the createTemporaryResource method may use a MemoryDataStore depending on how your environment is configured.

I would like to see this class changed to be a wizard, with an option to export directly to shapefile (rather than a temporary resource ).

Author:
Jody Garnett

Constructor Summary
ReshapeOperation()
           
 
Method Summary
 java.lang.String getNewTypeName(java.lang.String typeName)
           
 void op(Display display, java.lang.Object target, IProgressMonitor monitor)
           
 IGeoResource process( source, net.refractions.udig.catalog.ui.operation.ReshapeOperation.ReshapeDialog dialog, IProgressMonitor monitor)
          Called to do the actual processing once we have everything set up
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReshapeOperation

public ReshapeOperation()
Method Detail

op

public void op(Display display,
               java.lang.Object target,
               IProgressMonitor monitor)
        throws java.lang.Exception
Throws:
java.lang.Exception

process

public IGeoResource process( source,
                            net.refractions.udig.catalog.ui.operation.ReshapeOperation.ReshapeDialog dialog,
                            IProgressMonitor monitor)
                     throws java.io.IOException
Called to do the actual processing once we have everything set up

Returns:
Throws:
java.io.IOException

getNewTypeName

public java.lang.String getNewTypeName(java.lang.String typeName)