public class SHPExportMarshal extends OGRExportMarshal
Export instances to a SHP fileExportMarshal.ProgressgeometriescontentType, context, exportedUIDs, filename, iconId, isCancelled, mimeTypeprogresssort| 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, marshalexecute, filterListItemImpl, getContentType, getIconId, getMIMEType, marshal, send3rdParty, sendFile, sendFTP, sendFTP, timestamp, toStringaccept, addFilter, beginMarshal, filterGroup, filterItem, filterOverlay, getFilters, hasProgress, setProgressacceptEntry, isDefaultFilterpublic java.io.File getFile()
throws java.io.IOException
ExportFileMarshalgetFile in class ExportFileMarshaljava.io.IOException - if there is a problem constructing the file.protected java.lang.String getExtension()
getExtension in class ExportFileMarshalpublic 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()
ExportMarshalcancelMarshal in class ExportFileMarshalpublic void postMarshal()
ExportMarshalpostMarshal in class ExportFileMarshal