public class SHPExportMarshal extends OGRExportMarshal
Export
instances to a SHP fileExportMarshal.Progress
geometries
contentType, context, exportedUIDs, filename, iconId, isCancelled, mimeType
progress
sort
Constructor and Description |
---|
SHPExportMarshal(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelMarshal()
Cancel the export e.g.
|
protected java.lang.String |
getExtension() |
java.io.File |
getFile()
Get marshal target
|
void |
postMarshal()
Will be invoked on UI thread, upon successful export
|
static java.io.File |
zipDirectory(java.io.File dir)
Compress the directory contents into a ZIP file
|
static java.io.File |
zipShapefile(java.io.File baseSHP)
Compress the base shapefile and all related files into a ZIP file
|
finalizeMarshal, getOrCreateFeatureList, getTargetClass, marshal
execute, filterListItemImpl, getContentType, getIconId, getMIMEType, marshal, send3rdParty, sendFile, sendFTP, sendFTP, timestamp, toString
accept, addFilter, beginMarshal, filterGroup, filterItem, filterOverlay, getFilters, hasProgress, setProgress
acceptEntry, isDefaultFilter
public java.io.File getFile() throws java.io.IOException
ExportFileMarshal
getFile
in class ExportFileMarshal
java.io.IOException
- if there is a problem constructing the file.protected java.lang.String getExtension()
getExtension
in class ExportFileMarshal
public static java.io.File zipShapefile(java.io.File baseSHP) throws java.io.IOException
baseSHP
- the base shape file to be zipped for exportjava.io.IOException
- if unable to write the zip filepublic static java.io.File zipDirectory(java.io.File dir) throws java.io.IOException
dir
- the directoryjava.io.IOException
- error if unable to create a zipped fileprotected void cancelMarshal()
ExportMarshal
cancelMarshal
in class ExportFileMarshal
public void postMarshal()
ExportMarshal
postMarshal
in class ExportFileMarshal