OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGpkgWriter.h>
Public Types | |
enum | { DEFAULT_JPEG_QUALITY = 75 } |
enum | ossimGpkgWriterMode { OSSIM_GPGK_WRITER_MODE_UNKNOWN = 0, OSSIM_GPGK_WRITER_MODE_JPEG = 1, OSSIM_GPGK_WRITER_MODE_PNG = 2, OSSIM_GPGK_WRITER_MODE_PNGA = 3, OSSIM_GPGK_WRITER_MODE_MIXED = 4 } |
![]() | |
enum | ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 } |
typedef std::vector< ossimRefPtr< ossimConnectableObject > > | ConnectableObjectList |
![]() | |
enum | ossimProcessStatus { PROCESS_STATUS_UNKNOWN = 0, PROCESS_STATUS_EXECUTING = 1, PROCESS_STATUS_ABORTED = 2, PROCESS_STATUS_ABORT_REQUEST = 3, PROCESS_STATUS_NOT_EXECUTING = 4 } |
Public Member Functions | |
ossimGpkgWriter () | |
virtual | ~ossimGpkgWriter () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getClassName () const |
virtual ossimString | getExtension () const |
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for image file extensions. More... | |
virtual void | getImageTypeList (std::vector< ossimString > &imageTypeList) const |
void getImageTypeList(std::vector<ossimString>& imageTypeList)const More... | |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
saves the state of the object. More... | |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
Method to the load (recreate) the state of an object from a keyword list. More... | |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
Will set the property whose name matches the argument "property->getName()". More... | |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
Pushes this's names onto the list of property names. More... | |
bool | hasImageType (const ossimString &imageType) const |
bool hasImageType(const ossimString& imageType) const More... | |
ossimString | getCompressionLevel () const |
Get the gpkg compression level as a string. More... | |
bool | setCompressionLevel (const ossimString &level) |
Set the gpkg compression level from a string. More... | |
virtual bool | isOpen () const |
virtual bool | open () |
virtual bool | openFile (const ossimKeywordlist &options) |
Opens file for writing, appending, merging without an input connection. More... | |
virtual void | close () |
ossimGpkgWriterMode | getWriterMode () const |
Gets the writer mode. More... | |
std::string | getWriterModeString (ossimGpkgWriterMode mode) const |
Gets the writer mode as string. More... | |
void | setCompressionQuality (const std::string &quality) |
ossim_uint32 | getCompressionQuality () const |
Gets the compression quality. More... | |
virtual ossim_int32 | beginTileProcessing () |
Calls initial sqlite3_prepare_v2 statement. More... | |
virtual bool | writeTile (ossimRefPtr< ossimImageData > &tile, ossim_int32 zoomLevel, ossim_int64 row, ossim_int64 col) |
Direct interface to writing a tile to database. More... | |
virtual bool | writeCodecTile (ossim_uint8 *codecTile, ossim_int32 codecTileSize, ossim_int32 zoomLevel, ossim_int64 row, ossim_int64 col) |
Direct interface to writing a Codec tile to database. More... | |
virtual void | finalizeTileProcessing () |
Calls sqlite3_finalize(pStmt) terminating tile processing. More... | |
![]() | |
ossimImageFileWriter (const ossimFilename &filename=ossimFilename(), ossimImageSource *inputSource=0, ossimObject *owner=0) | |
The writer will own the sequencer. More... | |
virtual | ~ossimImageFileWriter () |
virtual ossimObject * | getObject () |
virtual const ossimObject * | getObject () const |
virtual bool | getOutputHasInternalOverviews (void) const |
Examples of writers that always generate internal overviews are ossim_kakadu_jp2 and ossim_kakadu_nitf_j2k. More... | |
virtual void | setTileSize (const ossimIpt &tileSize) |
Sets the output image tiling size if supported by the writer. More... | |
virtual bool | writeEnviHeaderFile () |
Will write an envi header file. More... | |
virtual bool | writeErsHeaderFile () |
Will write an ER Mapper header file. More... | |
virtual bool | writeExternalGeometryFile () |
Will write an external geometry file. More... | |
virtual bool | writeFgdcFile () |
Will write an fgdc file. More... | |
virtual bool | writeHistogramFile () |
Returns true on success, false on error. More... | |
virtual bool | writeJpegWorldFile () |
Will write a jpeg world file. More... | |
virtual bool | writeOverviewFile (ossim_uint16 tiff_compress_type=1, ossim_int32 jpeg_compress_quality=75, bool includeR0=false) |
Write out an ossim overview file from the source_file. More... | |
virtual bool | writeReadmeFile () |
Will write a readme file. More... | |
virtual bool | writeTiffWorldFile () |
Will write a world file. More... | |
virtual bool | writeWorldFile () |
Will write a world file. More... | |
virtual bool | writeMetaDataFiles () |
Convenience method that calls meta data write methods that are flagged to be called. More... | |
virtual void | setAreaOfInterest (const ossimIrect &inputRect) |
virtual void | changeSequencer (ossimImageSourceSequencer *sequencer) |
Sets the sequencer and connects it to the input of this. More... | |
virtual ossimImageSourceSequencer * | getSequencer () |
virtual void | initialize () |
Initialize method. More... | |
virtual bool | execute () |
Calls: writeFile() writeMetaDataFiles() More... | |
virtual bool | writeStream () |
Method to write the image to a stream. More... | |
virtual bool | setOutputStream (ossimRefPtr< ossimOStream > stream) |
Sets the output stream to write to. More... | |
virtual bool | setOutputStream (std::ostream &str) |
tmp drb More... | |
virtual ossimRefPtr< ossimOStream > | getOutputStream () const |
Method to return the stream attached to output. More... | |
virtual void | setPercentComplete (double percentComplete) |
virtual void | setOutputImageType (ossim_int32 type) |
virtual void | setOutputImageType (const ossimString &type) |
virtual ossim_int32 | getOutputImageType () const |
virtual ossimString | getOutputImageTypeString () const |
virtual void | setOutputName (const ossimString &outputName) |
virtual void | setFilename (const ossimFilename &file) |
virtual const ossimFilename & | getFilename () const |
virtual bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
required to be overriden by derived classes More... | |
virtual void | disconnectInputEvent (ossimConnectionEvent &event) |
virtual void | connectInputEvent (ossimConnectionEvent &event) |
virtual void | propertyEvent (ossimPropertyEvent &event) |
virtual bool | getWriteImageFlag () const |
Control flags... More... | |
virtual bool | getWriteHistogramFlag () const |
virtual bool | getWriteOverviewFlag () const |
virtual bool | getScaleToEightBitFlag () const |
virtual bool | getWriteEnviHeaderFlag () const |
virtual bool | getWriteErsHeaderFlag () const |
virtual bool | getWriteExternalGeometryFlag () const |
virtual bool | getWriteFgdcFlag () const |
virtual bool | getWriteJpegWorldFileFlag () const |
virtual bool | getWriteReadmeFlag () const |
virtual bool | getWriteTiffWorldFileFlag () const |
virtual bool | getWriteWorldFileFlag () const |
virtual void | setWriteImageFlag (bool flag) |
virtual void | setWriteOverviewFlag (bool flag) |
virtual void | setWriteHistogramFlag (bool flag) |
virtual void | setScaleToEightBitFlag (bool flag) |
virtual void | setWriteEnviHeaderFlag (bool flag) |
virtual void | setWriteErsHeaderFlag (bool flag) |
virtual void | setWriteExternalGeometryFlag (bool flag) |
virtual void | setWriteFgdcFlag (bool flag) |
virtual void | setWriteJpegWorldFile (bool flag) |
virtual void | setWriteReadme (bool flag) |
virtual void | setWriteTiffWorldFile (bool flag) |
virtual void | setWriteWorldFile (bool flag) |
virtual ossim_uint16 | getOverviewCompressType () const |
virtual ossim_int32 | getOverviewJpegCompressQuality () const |
virtual void | setOverviewCompressType (ossim_uint16 type) |
virtual void | setOverviewJpegCompressQuality (ossim_int32 quality) |
virtual bool | addListener (ossimListener *listener) |
Overrides base "addListener" this will capture the pointer and then call the base class "addListener". More... | |
virtual bool | removeListener (ossimListener *listener) |
Overrides base "removeListener". More... | |
virtual void | setPixelType (ossimPixelType type) |
If "point" the coordinate tie points are relative to the center of the pixel. More... | |
virtual void | setPixelType (const ossimString &type) |
If "point" the coordinate tie points are relative to the center of the pixel. More... | |
virtual ossimPixelType | getPixelType () const |
virtual void | getPixelTypeString (ossimString &type) const |
![]() | |
ossimImageWriter (ossimObject *owner=NULL) | |
ossimImageWriter (ossimObject *owner, ossim_uint32 numberOfInputs, ossim_uint32 numberOfOutputs, bool inputListIsFixed, bool outputListIsFixed) | |
virtual | ~ossimImageWriter () |
virtual bool | setViewingRect (const ossimIrect &aRect) |
virtual ossimIrect | getAreaOfInterest () const |
![]() | |
ossimOutputSource (ossimObject *owner=NULL) | |
ossimOutputSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimOutputSource () |
virtual bool | open (const ossimString &outputName) |
virtual const ossimString & | getOutputName () |
![]() | |
ossimSource (ossimObject *owner=0) | |
ossimSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimSource () |
virtual bool | isSourceEnabled () const |
virtual void | enableSource () |
virtual void | disableSource () |
virtual bool | getEnableFlag () const |
virtual void | setEnableFlag (bool flag) |
virtual bool | isInitialized () const |
virtual void | setInitializedFlag (bool flag) |
virtual std::ostream & | print (std::ostream &out) const |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
![]() | |
ossimConnectableObject (ossimObject *owner=0) | |
Base constructor of this object. More... | |
ossimConnectableObject (ossimObject *owner, ossim_int32 inputListSize, ossim_int32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimConnectableObject () |
void | setId (const ossimId &id) |
All connectable objects will have id's. More... | |
const ossimId & | getId () const |
Will allow us to get this object's id. More... | |
const ossimObject * | getOwner () const |
Fetches the current owner, most likely a container but not limited to one. More... | |
virtual void | changeOwner (ossimObject *owner) |
Permits changing the object's owner. More... | |
virtual void | setDescription (const ossimString &description) |
virtual ossimString | getDescription () const |
virtual bool | isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const |
will check the direction specified to see if all slots are full. More... | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className)) | |
virtual ossim_int32 | findInputIndex (const ossimConnectableObject *object) |
Return a valid index of the input list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findInputIndex (const ossimId &id) |
Return a valid index of the input list if the passed id is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimConnectableObject *object) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimId &id) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | getMyInputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual ossim_int32 | getMyOutputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual bool | canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const |
default implementation is to allow anyone to connect to us. More... | |
virtual void | disconnect (ossimConnectableObject *object=0) |
Will disconnect the object passed in. More... | |
virtual void | disconnect (const ossimId &id) |
Will disconnect the object passed in. More... | |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given input index and generate a connection event. More... | |
virtual void | disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More... | |
virtual void | disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given output index and generate a connection event. More... | |
virtual void | disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the output object. More... | |
virtual void | disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual void | disconnectAllInputs () |
Will disconnect all of the input objects. More... | |
virtual void | disconnectAllOutputs () |
Will disconnect all of the output objects. More... | |
virtual ossim_int32 | connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will try to connect this objects input to the passed in object. More... | |
virtual ossim_int32 | connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will connect the specified input to the passed in object. More... | |
virtual bool | connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true) |
virtual ossim_int32 | connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true) |
Will try to connect this objects output to the passed in object. More... | |
virtual bool | connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true) |
virtual bool | connectInputList (ConnectableObjectList &inputList) |
Will disconnect itself from all inputs and reset to the passed in input list. More... | |
virtual bool | connectOutputList (ConnectableObjectList &outputList) |
Will disconnect itself from all outputs and reset to the passed in output list. More... | |
virtual ossim_uint32 | getNumberOfInputs () const |
Returns the number of input objects. More... | |
virtual ossim_uint32 | getNumberOfOutputs () const |
Return the number of output objects. More... | |
ossimConnectableObject * | getInput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getInput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
ossimConnectableObject * | getOutput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getOutput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
virtual void | setNumberOfInputs (ossim_int32 numberOfInputs) |
Will set the number of inputs. More... | |
virtual bool | getInputListIsFixedFlag () const |
virtual bool | getOutputListIsFixedFlag () const |
virtual void | setNumberOfOutputs (ossim_int32 numberOfInputs) |
Will set the number of outputs. More... | |
const ConnectableObjectList & | getInputList () const |
const ConnectableObjectList & | getOutputList () const |
ConnectableObjectList & | getInputList () |
ConnectableObjectList & | getOutputList () |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true)) | |
virtual void | propagateEventToOutputs (ossimEvent &event) |
virtual void | propagateEventToInputs (ossimEvent &event) |
virtual void | setProperty (const ossimString &name, const ossimString &value) |
virtual ossim_uint32 | saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const |
Save the state of all inputs to a keyword list. More... | |
virtual bool | fillContainer (ossimConnectableContainer &container) |
Inserts this object and all of its children and inputs into the container provided. More... | |
bool | moveInputUp (const ossimId &id) |
Moves the input connection matching id up one in the connection list. More... | |
bool | moveInputDown (const ossimId &id) |
Moves the input connection matching id down one in the connection list. More... | |
bool | moveInputToTop (const ossimId &id) |
Moves the input connection matching id to the top of the connection list. More... | |
bool | moveInputToBottom (const ossimId &id) |
Moves the input connection matching id to the bottom of the connection list. More... | |
virtual void | accept (ossimVisitor &visitor) |
We will add a visitor interface for all connectable objects. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
ossimListenerManager () | |
virtual | ~ossimListenerManager () |
virtual void | fireEvent (ossimEvent &event) |
virtual bool | findListener (ossimListener *listener) |
![]() | |
ossimPropertyInterface () | |
virtual | ~ossimPropertyInterface () |
virtual ossimString | getPropertyValueAsString (const ossimString &name) const |
void | getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const |
void | setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList) |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
![]() | |
ossimProcessInterface () | |
virtual | ~ossimProcessInterface () |
virtual void | abort () |
bool | needsAborting () const |
bool | isAbortRequested () const |
bool | isAborted () const |
bool | isExecuting () const |
ossimProcessStatus | getProcessStatus () const |
virtual void | setProcessStatus (ossimProcessStatus processStatus) |
virtual double | getPercentComplete () const |
virtual ossimListenerManager * | getManager () |
void | enableEvents () |
void | disableEvents () |
void | setCurrentMessage (const ossimString &message) |
virtual std::ostream & | print (std::ostream &out) const |
![]() | |
ossimConnectableObjectListener () | |
virtual | ~ossimConnectableObjectListener () |
virtual void | processEvent (ossimEvent &event) |
ProcessEvent. More... | |
virtual void | objectDestructingEvent (ossimObjectDestructingEvent &) |
virtual void | connectionEvent (ossimConnectionEvent &) |
virtual void | disconnectOutputEvent (ossimConnectionEvent &) |
virtual void | connectOutputEvent (ossimConnectionEvent &) |
virtual void | addObjectEvent (ossimContainerEvent &) |
virtual void | removeObjectEvent (ossimContainerEvent &) |
virtual void | containerEvent (ossimContainerEvent &) |
virtual void | refreshEvent (ossimRefreshEvent &) |
![]() | |
ossimListener () | |
virtual | ~ossimListener () |
void | enableListener () |
void | disableListener () |
void | setListenerEnableFlag (bool flag) |
bool | isListenerEnabled () const |
bool | getListenerEnableFlag () const |
![]() | |
ossimGpkgWriterInterface () | |
GP: I had to add this or windows would not link with the latest compiler. More... | |
Private Member Functions | |
virtual bool | writeFile () |
Writes the file to disk or a stream. More... | |
bool | writeEntry () |
Writes an entry to gpkg. More... | |
bool | addLevels () |
Adds levels to an existing an gpkg. More... | |
bool | createTables (sqlite3 *db) |
ossim_int32 | writeGpkgSpatialRefSysTable (sqlite3 *db, const ossimMapProjection *proj) |
bool | writeGpkgContentsTable (sqlite3 *db, const ossimDrect &boundingRect) |
bool | writeGpkgTileMatrixSetTable (sqlite3 *db, const ossimDrect &boundingRect) |
bool | writeGpkgTileMatrixTable (sqlite3 *db, ossim_int32 zoom_level, const ossimIpt &matrixSize, const ossimDpt &gsd) |
Initialize method. More... | |
bool | writeGpkgNsgTileMatrixExtentTable (sqlite3 *db, ossim_int32 zoom_level, const ossimIrect &expandedAoi, const ossimIrect &clippedAoi) |
void | writeZoomLevels (sqlite3 *db, ossimMapProjection *proj, const std::vector< ossim_int32 > &zoomLevels) |
void | writeTiles (sqlite3 *db, const ossimIrect &aoi, ossim_int32 zoomLevel, const ossim_float64 &totalTiles, ossim_float64 &tilesWritten) |
void | writeTile (sqlite3_stmt *pStmt, sqlite3 *db, ossimRefPtr< ossimImageData > &tile, ossim_int32 zoomLevel, ossim_int64 row, ossim_int64 col) |
void | writeCodecTile (sqlite3_stmt *pStmt, sqlite3 *db, ossim_uint8 *codecTile, ossim_int32 codecTileSize, ossim_int32 zoomLevel, ossim_int64 row, ossim_int64 col) |
void | getGsd (const ossimDpt &fullResGsd, ossim_int32 fullResZoomLevel, ossim_int32 currentZoomLevel, ossimDpt &gsd) |
void | getGsd (const ossimMapProjection *proj, ossimDpt &gsd) const |
Get the gsd. More... | |
void | getGsd (const ossimImageGeometry *geom, ossimDpt &gsd) const |
Get the gsd. More... | |
void | getGsd (const ossimMapProjection *proj, ossim_int32 zoomLevel, ossimDpt &gsd) const |
Get the gsd. More... | |
bool | alignToGrid () const |
bool | append () const |
Check if file is to be open new or appended. More... | |
bool | addLevels () const |
bool | addEntry () const |
ossimRefPtr< ossimMapProjection > | getNewOutputProjection (ossimImageGeometry *geom) const |
Get the output projection. More... | |
ossimRefPtr< ossimMapProjection > | getNewOutputProjection () const |
Gets projection from "epsg" code if in options list. More... | |
ossimRefPtr< ossimMapProjection > | getNewGeographicProjection () const |
ossimRefPtr< ossimMapProjection > | getNewWorldMercatorProjection () const |
void | setView (ossimMapProjection *proj) |
void | reInitializeCombiners () |
Finds all combiners and calls initialize to reset the bounding box after a view change. More... | |
void | reInitializeCutters (const ossimMapProjection *proj) |
Finds all ossimRectangleCutter and calls setRectangle with a nan rect to reset the bounding box after a view change. More... | |
bool | keyIsTrue (const std::string &key) const |
void | getTileSize (ossimIpt &tileSize) const |
ossim_uint64 | getBatchSize () const |
This is the number of transactions batched before being executed. More... | |
ossim_int32 | getNumberOfZoomLevels (const ossimIrect &aoi) const |
Zoom levels needed to get AOI down to one tile. More... | |
void | getZoomLevels (std::vector< ossim_int32 > &zoomLevels) const |
Gets zoom levels from options keyword list if set. More... | |
void | getZoomLevels (const ossimMapProjection *proj, const ossimIrect &aoi, const ossimDpt &sourceGsd, std::vector< ossim_int32 > &zoomLevels, ossimDpt &fullResGsd) const |
Computes start and stop level. More... | |
void | getAoiFromRect (const ossimMapProjection *proj, const ossimDrect &rect, ossimIrect &aoi) |
Get the view coordinates for edge to edge rect. More... | |
void | getExpandedAoi (const ossimIrect &aoi, ossimIrect &expandedAoi) const |
Gets aoi expanded to tile boundaries. More... | |
void | getMatrixSize (const ossimIrect &rect, ossimIpt &matrixSize) const |
void | setProjectionTie (ossimMapProjection *proj) const |
bool | requiresEightBit () const |
ossim_uint32 | getEpsgCode () const |
void | getProjectionDimensionsInMeters (const ossimMapProjection *proj, ossimDpt &dims) const |
Gets the projection dimensions in meters. More... | |
void | initializeProjectionRect (const ossimMapProjection *productProj) |
void | initializeRect (const ossimMapProjection *proj, const ossimIrect &aoi, ossimDrect &rect) |
void | getTileTableName (std::string &tileTableName) const |
Gets the tile table name. More... | |
bool | getFilename (ossimFilename &file) const |
void | initializeCodec () |
Initializes m_fullTileCodec and m_partialTileCodec. More... | |
bool | initializeGpkg () |
Initializes the output gpkg file. More... | |
bool | getWmsCutBox (ossimDrect &rect) const |
Get rectangle in projected space from key: cut_wms_bbox key:value form: cut_wms_bbox: <minx>,<miny>,<maxx>,<maxy> More... | |
bool | getClipExtents (ossimDrect &rect, bool &alignToGridFlag) const |
Get clip rectangle in projected space from key: clip_extents key:value form: clip_extents: <minx>,<miny>,<maxx>,<maxy> More... | |
bool | getRect (const std::string &key, ossimDrect &rect) const |
Gets rectangle. More... | |
void | checkLevels (const std::vector< ossim_int32 > ¤tZoomLevels, const std::vector< ossim_int32 > &newZoomLevels) const |
Checks for: new level lower then existing. More... | |
bool | isValidZoomLevelRowCol (ossim_int32 level, ossim_int32 row, ossim_int32 col) const |
Checks to see if level, row, column are within range of existing gpkg. More... | |
void | applyScaleToProjection (ossimMapProjection *proj, const ossimDpt &desiredGsd) const |
Get the current gsd from projection. More... | |
Private Attributes | |
sqlite3 * | m_db |
database connection More... | |
ossim_uint64 | m_batchCount |
Working variable for holding the current batch count. More... | |
ossim_uint64 | m_batchSize |
Number of transactions batched before being executed. More... | |
ossimDrect | m_projectionBoundingRect |
Holds the bounding rect of the output projection edges either in decimal degrees for geographic projection or Easting/Northings(meters) for map projection. More... | |
ossimDrect | m_sceneBoundingRect |
Holds the bounding rect of the scene edges either in decimal degrees for geographic projection or Easting/Northings(meters) for map projection. More... | |
ossimDrect | m_clipRect |
AOI clipped to projection rect. More... | |
ossimDrect | m_outputRect |
Expanded(final) AOI clipped to projection rect. More... | |
ossimIpt | m_tileSize |
std::string | m_tileTableName |
ossim_int32 | m_srs_id |
ossimRefPtr< ossimKeywordlist > | m_kwl |
Hold all options. More... | |
ossimRefPtr< ossimCodecBase > | m_fullTileCodec |
Will cache and hold the allocated codecs to use for the encoding. More... | |
ossimRefPtr< ossimCodecBase > | m_partialTileCodec |
bool | m_fullTileCodecAlpha |
true if codec requires alpha channel. More... | |
bool | m_partialTileCodecAlpha |
std::vector< ossim_int32 > | m_zoomLevels |
Holds zoom level indexes for connectionless write tile. More... | |
std::vector< ossimIpt > | m_zoomLevelMatrixSizes |
Hold zoom level matrix sizes for connectionless write tile. More... | |
sqlite3_stmt * | m_pStmt |
Holds Statement handle from sqlite3_prepare_v2(...) for connectionless write tile. More... | |
bool | m_writeBlanks |
Controlled by option key: "include_blank_tiles". More... | |
Definition at line 37 of file ossimGpkgWriter.h.
anonymous enum |
Enumerator | |
---|---|
OSSIM_GPGK_WRITER_MODE_UNKNOWN | |
OSSIM_GPGK_WRITER_MODE_JPEG | |
OSSIM_GPGK_WRITER_MODE_PNG | |
OSSIM_GPGK_WRITER_MODE_PNGA | |
OSSIM_GPGK_WRITER_MODE_MIXED |
Definition at line 48 of file ossimGpkgWriter.h.
ossimGpkgWriter::ossimGpkgWriter | ( | ) |
Definition at line 97 of file ossimGpkgWriter.cpp.
|
virtual |
Definition at line 148 of file ossimGpkgWriter.cpp.
References close(), and m_kwl.
|
private |
|
private |
Adds levels to an existing an gpkg.
Definition at line 849 of file ossimGpkgWriter.cpp.
References alignToGrid(), ossimRefPtr< T >::get(), ossimImageWriter::getAreaOfInterest(), ossimImageGeometry::getAsMapProjection(), ossimObject::getClassName(), getGsd(), ossimImageSource::getImageGeometry(), getNewOutputProjection(), ossimMapProjection::getPcsCode(), ossimGpkgTileEntry::getSrs(), ossim_gpkg::getTileEntry(), getTileTableName(), ossimIrect::hasNans(), m_db, ossimGpkgSpatialRefSysRecord::m_organization_coordsys_id, status, ossimImageFileWriter::theInputConnection, and ossimRefPtr< T >::valid().
|
private |
|
private |
Definition at line 1950 of file ossimGpkgWriter.cpp.
References keyIsTrue().
Referenced by addLevels(), getGsd(), getNewOutputProjection(), getZoomLevels(), setProjectionTie(), and writeEntry().
|
private |
Check if file is to be open new or appended.
Checks for keywords: add_entry, add_levels
Definition at line 1955 of file ossimGpkgWriter.cpp.
References keyIsTrue().
Referenced by open().
|
private |
Get the current gsd from projection.
Computes the scale, and calls proj->applyScale(...) recentering tie point.
proj | |
desiredGsd | Desired gsd after scale change. |
Please leave for debug. (drb)
Definition at line 3105 of file ossimGpkgWriter.cpp.
References ossimMapProjection::applyScale(), getGsd(), ossimDpt::hasNans(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Calls initial sqlite3_prepare_v2 statement.
Must be called prior to calling writeTile.
Implements ossimGpkgWriterInterface.
Definition at line 1415 of file ossimGpkgWriter.cpp.
References m_tileTableName.
|
private |
Checks for: new level lower then existing.
new level already present
Throws exception on error.
Definition at line 3026 of file ossimGpkgWriter.cpp.
|
virtual |
Generic interface to allow one to close a consumer. For displays this might minimize the window and free up internal pointers for file writers it will make sure the file stream is closed and flushed.
Implements ossimOutputSource.
Definition at line 520 of file ossimGpkgWriter.cpp.
References m_batchCount, m_db, m_fullTileCodec, m_partialTileCodec, and m_pStmt.
Referenced by open(), and ~ossimGpkgWriter().
|
private |
Definition at line 1521 of file ossimGpkgWriter.cpp.
References ossimGpkgTileRecord::createTable(), ossimGpkgNsgTileMatrixExtentRecord::createTable(), ossimGpkgContentsRecord::createTable(), ossimGpkgTileMatrixSetRecord::createTable(), ossimGpkgSpatialRefSysRecord::createTable(), ossimGpkgTileMatrixRecord::createTable(), getTileTableName(), m_tileTableName, and status.
|
virtual |
Calls sqlite3_finalize(pStmt) terminating tile processing.
Implements ossimGpkgWriterInterface.
Definition at line 1508 of file ossimGpkgWriter.cpp.
References m_batchCount, m_db, and m_pStmt.
|
private |
Get the view coordinates for edge to edge rect.
Definition at line 2449 of file ossimGpkgWriter.cpp.
Referenced by reInitializeCutters().
|
private |
This is the number of transactions batched before being executed.
Definition at line 2243 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::findKey(), m_kwl, and size.
|
virtual |
Reimplemented from ossimObject.
Definition at line 166 of file ossimGpkgWriter.cpp.
|
private |
Get clip rectangle in projected space from key: clip_extents key:value form: clip_extents: <minx>,<miny>,<maxx>,<maxy>
rect | Initialized by this. This is in output projection coordinate space. |
alignToGridFlag. | Indicates if the clip extents need to be aligned. The flag will be defaulted to true. |
Definition at line 2992 of file ossimGpkgWriter.cpp.
References getRect().
ossimString ossimGpkgWriter::getCompressionLevel | ( | ) | const |
Get the gpkg compression level as a string.
Definition at line 1785 of file ossimGpkgWriter.cpp.
ossim_uint32 ossimGpkgWriter::getCompressionQuality | ( | ) | const |
Gets the compression quality.
Result is pulled from options keyword list where key=compression_quality.
Definition at line 1774 of file ossimGpkgWriter.cpp.
References ossimKeywordNames::COMPRESSION_QUALITY_KW, ossimKeywordlist::findKey(), m_kwl, and ossimString::toUInt32().
Referenced by initializeCodec().
|
private |
Definition at line 2672 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
Referenced by getNewOutputProjection().
|
private |
Gets aoi expanded to tile boundaries.
This initializes expandedAoi with the aoi expanded to tile boundaries.
aoi | Area of interest. |
expandedAoi | Initialized by this. |
Definition at line 2518 of file ossimGpkgWriter.cpp.
References m_tileSize, and ossimIrect::stretchToTileBoundary().
|
virtual |
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for image file extensions.
imageType | string representing image type. |
Reimplemented from ossimImageFileWriter.
Definition at line 1694 of file ossimGpkgWriter.cpp.
|
private |
Definition at line 2916 of file ossimGpkgWriter.cpp.
References ossimKeywordNames::FILENAME_KW, ossimKeywordlist::findKey(), m_kwl, ossimString::size(), status, and ossimString::string().
|
private |
Definition at line 1851 of file ossimGpkgWriter.cpp.
References ossimDpt::hasNans().
Referenced by addLevels(), applyScaleToProjection(), getNewOutputProjection(), initializeRect(), setProjectionTie(), and writeEntry().
|
private |
Get the gsd.
Gets gsd in either meters or decimal degrees dependent on if the projection is "geographic" or not.
proj | |
gsd | Initialized by this. |
Definition at line 1874 of file ossimGpkgWriter.cpp.
References ossimMapProjection::getDecimalDegreesPerPixel(), ossimMapProjection::getMetersPerPixel(), and ossimMapProjection::isGeographic().
|
private |
Get the gsd.
Gets gsd in either meters or decimal degrees dependent on if the projection is "geographic" or not.
geom | |
gsd | Initialized by this. |
Definition at line 1890 of file ossimGpkgWriter.cpp.
References ossimImageGeometry::getAsMapProjection(), ossimImageGeometry::getDegreesPerPixel(), ossimImageGeometry::getMetersPerPixel(), and ossimMapProjection::isGeographic().
|
private |
Get the gsd.
Gets gsd in either meters or decimal degrees dependent on if the projection is "geographic" or not.
This method assumes zoom level are aligned to the projection grid. If align_to_grid==false gsd will be "nan"ed.
proj | Output projection. |
zoomLevel | |
gsd | Initialized by this. |
Definition at line 1910 of file ossimGpkgWriter.cpp.
References alignToGrid(), getProjectionDimensionsInMeters(), ossimMapProjection::isGeographic(), m_tileSize, ossimDpt::makeNan(), ossimIpt::x, ossimDpt::x, ossimIpt::y, and ossimDpt::y.
|
virtual |
void getImageTypeList(std::vector<ossimString>& imageTypeList)const
Appends this writer image types to list "imageTypeList".
This writer only has one type "gpkg".
imageTypeList | stl::vector<ossimString> list to append to. |
Implements ossimImageFileWriter.
Definition at line 1689 of file ossimGpkgWriter.cpp.
Referenced by ossimSqliteWriterFactory::getImageTypeList().
|
virtual |
Reimplemented from ossimObject.
Definition at line 161 of file ossimGpkgWriter.cpp.
|
private |
Definition at line 2525 of file ossimGpkgWriter.cpp.
References ossimIrect::height(), m_tileSize, ossimIrect::width(), ossimIpt::x, and ossimIpt::y.
|
private |
Definition at line 2206 of file ossimGpkgWriter.cpp.
References ossimDatumFactory::instance().
Referenced by getNewOutputProjection().
|
private |
Get the output projection.
Output projection type is determined in this order: 1) User set epsg code, e.g. "3395". 2) Input projection. 3) Default output (currently geographic.
Definition at line 2064 of file ossimGpkgWriter.cpp.
References alignToGrid(), ossimProjection::dup(), ossimImageGeometry::getAsMapProjection(), ossimObject::getClassName(), getGsd(), getNewGeographicProjection(), getNewOutputProjection(), getNewWorldMercatorProjection(), ossimMapProjection::isGeographic(), ossimMapProjection::setDecimalDegreesPerPixel(), ossimMapProjection::setMetersPerPixel(), ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
|
private |
Gets projection from "epsg" code if in options list.
Definition at line 2166 of file ossimGpkgWriter.cpp.
References ossimEpsgProjectionFactory::createProjection(), ossimRefPtr< T >::get(), getEpsgCode(), getNewGeographicProjection(), getNewWorldMercatorProjection(), ossimEpsgProjectionFactory::instance(), ossimString::toString(), and ossimRefPtr< T >::valid().
Referenced by addLevels(), getNewOutputProjection(), and writeEntry().
|
private |
Definition at line 2216 of file ossimGpkgWriter.cpp.
References ossimDatumFactory::instance(), and ossimMapProjection::setPcsCode().
Referenced by getNewOutputProjection().
|
private |
Zoom levels needed to get AOI down to one tile.
aoi | Area of Interest. |
Definition at line 2415 of file ossimGpkgWriter.cpp.
References ossimIrect::hasNans(), ossimIrect::height(), m_tileSize, ossimIrect::width(), ossimIpt::x, and ossimIpt::y.
Referenced by getZoomLevels().
|
private |
Gets the projection dimensions in meters.
proj | Projection |
dims | Initialized by this. |
Definition at line 2683 of file ossimGpkgWriter.cpp.
References ossimMapProjection::getOrigin(), ossimMapProjection::getPcsCode(), ossimGpt::lat, ossimDpt::x, and ossimDpt::y.
Referenced by getGsd(), and getZoomLevels().
|
virtual |
name | Name of property to return. |
Reimplemented from ossimImageFileWriter.
Definition at line 1741 of file ossimGpkgWriter.cpp.
References ossimImageFileWriter::getProperty().
|
virtual |
Pushes this's names onto the list of property names.
propertyNames | array to add this's property names to. |
Reimplemented from ossimImageFileWriter.
Definition at line 1748 of file ossimGpkgWriter.cpp.
|
private |
Gets rectangle.
Method assumes form of: key: <minx>,<miny>,<maxx>,<maxy> e.g. "clip_extents: <minx>,<miny>,<maxx>,<maxy>"
rect | Initialized by this. This is in output projection coordinate space. |
Definition at line 3002 of file ossimGpkgWriter.cpp.
References ossimString::downcase(), ossimKeywordlist::findKey(), m_kwl, ossimString::replaceAllThatMatch(), ossimString::size(), ossimString::split(), status, and ossimString::string().
Referenced by getClipExtents(), and getWmsCutBox().
|
virtual |
Reimplemented from ossimObject.
Definition at line 156 of file ossimGpkgWriter.cpp.
|
private |
Definition at line 2230 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
private |
Gets the tile table name.
Looks for "tile_table_name" and returns value if found; else, default="tiles".
Definition at line 2906 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
Referenced by addLevels(), and createTables().
|
private |
Get rectangle in projected space from key: cut_wms_bbox key:value form: cut_wms_bbox: <minx>,<miny>,<maxx>,<maxy>
rect | Initialized by this. This is in output projection coordinate space. |
Definition at line 2986 of file ossimGpkgWriter.cpp.
References getRect().
ossimGpkgWriter::ossimGpkgWriterMode ossimGpkgWriter::getWriterMode | ( | ) | const |
Gets the writer mode.
Default mode = jpeg.
Potential mode are: jpeg png pnga
Definition at line 2599 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::findKey(), m_kwl, and OSSIM_GPGK_WRITER_MODE_MIXED.
Referenced by initializeCodec(), requiresEightBit(), and writeTile().
std::string ossimGpkgWriter::getWriterModeString | ( | ossimGpkgWriterMode | mode | ) | const |
Gets the writer mode as string.
Default mode = jpeg.
Potential mode are: jpeg png pnga
Definition at line 2626 of file ossimGpkgWriter.cpp.
References OSSIM_GPGK_WRITER_MODE_JPEG, OSSIM_GPGK_WRITER_MODE_MIXED, OSSIM_GPGK_WRITER_MODE_PNG, OSSIM_GPGK_WRITER_MODE_PNGA, and OSSIM_GPGK_WRITER_MODE_UNKNOWN.
Referenced by initializeCodec().
|
private |
Gets zoom levels from options keyword list if set.
Keyword: "zoom_levels"
Splits comma separated list, e.g. "(8,9,10,11)"
If align to grid is on levels are based on projection grid; else, stop zoom level is 0, start is the full res level.
proj | |
aoi | |
zoomLevels | Intitialized by this. |
fullResGsd | Intitialized by this. |
Definition at line 2254 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
Referenced by getZoomLevels().
|
private |
Computes start and stop level.
If align to grid is on levels are based on projection grid; else, stop zoom level is 0, start is the full res level.
proj | |
aoi | |
sourceGsd | Full res gsd of input. |
zoomLevels | Intitialized by this. |
fullResGsd | Intitialized by this to the highest resolution of zoom levels. This may or may not be the same as the sourceGsd. |
Definition at line 2284 of file ossimGpkgWriter.cpp.
References alignToGrid(), getNumberOfZoomLevels(), getProjectionDimensionsInMeters(), getZoomLevels(), ossimDpt::hasNans(), ossimIrect::hasNans(), ossimMapProjection::isGeographic(), m_tileSize, ossimIpt::x, ossimDpt::x, ossimIpt::y, and ossimDpt::y.
|
virtual |
bool hasImageType(const ossimString& imageType) const
imageType | string representing image type. |
Reimplemented from ossimImageFileWriter.
Definition at line 1699 of file ossimGpkgWriter.cpp.
|
private |
Initializes m_fullTileCodec and m_partialTileCodec.
Definition at line 2927 of file ossimGpkgWriter.cpp.
References ossimCodecFactoryRegistry::createCodec(), DEFAULT_JPEG_QUALITY, ossimRefPtr< T >::get(), getCompressionQuality(), getWriterMode(), getWriterModeString(), ossimCodecFactoryRegistry::instance(), m_fullTileCodec, m_fullTileCodecAlpha, m_partialTileCodec, m_partialTileCodecAlpha, OSSIM_GPGK_WRITER_MODE_JPEG, OSSIM_GPGK_WRITER_MODE_MIXED, OSSIM_GPGK_WRITER_MODE_PNG, OSSIM_GPGK_WRITER_MODE_PNGA, ossimPropertyInterface::setProperty(), ossimString::toString(), and ossimRefPtr< T >::valid().
|
private |
Initializes the output gpkg file.
This method is used for non-connected writing, e.g. openFile(...), writeTile(...)
Assumes new gpkg with no input connection.
Definition at line 317 of file ossimGpkgWriter.cpp.
|
private |
Definition at line 2785 of file ossimGpkgWriter.cpp.
References ossimMapProjection::getOrigin(), ossimMapProjection::getPcsCode(), ossimGpt::lat, m_projectionBoundingRect, and OSSIM_RIGHT_HANDED.
|
private |
Definition at line 2848 of file ossimGpkgWriter.cpp.
References getGsd(), ossimMapProjection::isGeographic(), ossimGpt::lat, ossimMapProjection::lineSampleToEastingNorthing(), ossimMapProjection::lineSampleToWorld(), ossimGpt::lon, ossimIrect::lr(), ossim::max< ossim_float64 >(), ossim::min< ossim_float64 >(), OSSIM_RIGHT_HANDED, ossimIrect::ul(), ossimDpt::x, and ossimDpt::y.
|
virtual |
|
private |
Checks to see if level, row, column are within range of existing gpkg.
level | Zero base level. |
row | Zero based tile row index. |
col | Zero based tile column index. |
Definition at line 3074 of file ossimGpkgWriter.cpp.
References m_zoomLevelMatrixSizes, m_zoomLevels, and status.
Referenced by writeTile().
|
private |
Definition at line 1960 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::findKey(), m_kwl, and ossimString::toBool().
Referenced by alignToGrid(), and append().
|
virtual |
Method to the load (recreate) the state of an object from a keyword list.
Return true if ok or false on error.
Reimplemented from ossimImageFileWriter.
Definition at line 1666 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::extractKeysThatMatch(), ossimRefPtr< T >::get(), ossimImageFileWriter::loadState(), m_kwl, ossimKeywordlist::stripPrefixFromAll(), and ossimRefPtr< T >::valid().
|
virtual |
Allows a generic interface to open a consumer for writing. If you are a display writer then you would probably show the window or init the device context for writing.
Implements ossimOutputSource.
Definition at line 176 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::addPair(), append(), close(), ossimFilename::exists(), m_kwl, ossimFilename::remove(), ossimString::size(), status, and ossimImageFileWriter::theFilename.
|
virtual |
Opens file for writing, appending, merging without an input connection.
I.e. opening, then calling writeTile directly.
Option keywords: append: bool false=create_new, true=append_existing epsg: 4326, 3857 filename: output_file.gpkg tile_table_name: default="tiles" writer_mode: mixed(default), jpeg, png, pnga
options. | Keyword list containing all options. |
Implements ossimGpkgWriterInterface.
Definition at line 237 of file ossimGpkgWriter.cpp.
|
private |
Finds all combiners and calls initialize to reset the bounding box after a view change.
Definition at line 2009 of file ossimGpkgWriter.cpp.
References ossimConnectableObject::accept(), ossimCollectionVisitor::getObjectAs(), ossimCollectionVisitor::getObjects(), ossimImageCombiner::initialize(), ossimImageFileWriter::theInputConnection, ossimRefPtr< T >::valid(), ossimVisitor::VISIT_CHILDREN, and ossimVisitor::VISIT_INPUTS.
Referenced by setView().
|
private |
Finds all ossimRectangleCutter and calls setRectangle with a nan rect to reset the bounding box after a view change.
Definition at line 2033 of file ossimGpkgWriter.cpp.
References ossimConnectableObject::accept(), getAoiFromRect(), ossimCollectionVisitor::getObjectAs(), ossimCollectionVisitor::getObjects(), m_clipRect, ossimSource::setEnableFlag(), ossimRectangleCutFilter::setRectangle(), ossimImageFileWriter::theInputConnection, ossimRefPtr< T >::valid(), ossimVisitor::VISIT_CHILDREN, and ossimVisitor::VISIT_INPUTS.
Referenced by setView().
|
private |
Definition at line 2661 of file ossimGpkgWriter.cpp.
References getWriterMode(), and OSSIM_GPGK_WRITER_MODE_JPEG.
|
virtual |
saves the state of the object.
Reimplemented from ossimImageFileWriter.
Definition at line 1656 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::add(), ossimRefPtr< T >::get(), m_kwl, ossimImageFileWriter::saveState(), and ossimRefPtr< T >::valid().
bool ossimGpkgWriter::setCompressionLevel | ( | const ossimString & | level | ) |
Set the gpkg compression level from a string.
level | Should be one of: z_no_compression z_best_speed z_best_compression z_default_compression |
Definition at line 1810 of file ossimGpkgWriter.cpp.
References ossimString::downcase(), and status.
void ossimGpkgWriter::setCompressionQuality | ( | const std::string & | quality | ) |
Definition at line 1768 of file ossimGpkgWriter.cpp.
References ossimKeywordlist::addPair(), ossimKeywordNames::COMPRESSION_QUALITY_KW, and m_kwl.
|
private |
Definition at line 2540 of file ossimGpkgWriter.cpp.
References alignToGrid(), getGsd(), ossimMapProjection::isGeographic(), ossimGpt::lat, ossimGpt::lon, m_projectionBoundingRect, m_sceneBoundingRect, ossimMapProjection::setUlTiePoints(), ossimDrect::ul(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Will set the property whose name matches the argument "property->getName()".
property | Object containing property to set. |
Reimplemented from ossimImageFileWriter.
Definition at line 1709 of file ossimGpkgWriter.cpp.
References ossimRefPtr< T >::valid().
|
private |
Definition at line 1971 of file ossimGpkgWriter.cpp.
References ossimConnectableObject::accept(), ossimCollectionVisitor::getObjectAs(), ossimCollectionVisitor::getObjects(), ossimImageSourceSequencer::initialize(), reInitializeCombiners(), reInitializeCutters(), ossimViewInterface::setView(), ossimImageFileWriter::theInputConnection, ossimRefPtr< T >::valid(), ossimVisitor::VISIT_CHILDREN, and ossimVisitor::VISIT_INPUTS.
|
virtual |
Direct interface to writing a Codec tile to database.
codecTile | to write. |
codecTileSize | |
zoolLevel | |
row | |
col |
Implements ossimGpkgWriterInterface.
Definition at line 1482 of file ossimGpkgWriter.cpp.
References m_batchCount, m_batchSize, m_db, m_pStmt, and status.
|
private |
Definition at line 1373 of file ossimGpkgWriter.cpp.
References ossimNotify(), and ossimNotifyLevel_WARN.
|
private |
Writes an entry to gpkg.
This could be either a new file, or a new tile table.
Definition at line 658 of file ossimGpkgWriter.cpp.
References alignToGrid(), ossimRefPtr< T >::get(), ossimImageWriter::getAreaOfInterest(), ossimImageGeometry::getAsMapProjection(), ossimObject::getClassName(), getGsd(), ossimImageSource::getImageGeometry(), getNewOutputProjection(), ossimIrect::hasNans(), status, ossimImageFileWriter::theInputConnection, and ossimRefPtr< T >::valid().
|
privatevirtual |
Writes the file to disk or a stream.
Implements ossimImageFileWriter.
Definition at line 536 of file ossimGpkgWriter.cpp.
|
private |
Definition at line 1579 of file ossimGpkgWriter.cpp.
References ossimGpkgContentsRecord::init(), ossimGpkgContentsRecord::insert(), ossimDrect::lr(), m_srs_id, m_tileTableName, status, ossimDrect::ul(), ossimDpt::x, and ossimDpt::y.
|
private |
Definition at line 1632 of file ossimGpkgWriter.cpp.
References ossimIrect::lr(), m_clipRect, m_tileTableName, status, ossimIrect::ul(), ossimIpt::x, and ossimIpt::y.
|
private |
Definition at line 1544 of file ossimGpkgWriter.cpp.
References ossimGpkgSpatialRefSysRecord::ERROR, ossimGpkgSpatialRefSysRecord::init(), ossimGpkgSpatialRefSysRecord::insert(), ossimGpkgSpatialRefSysRecord::m_srs_id, ossimGpkgSpatialRefSysRecord::OK, ossimGpkgSpatialRefSysRecord::OK_EXISTS, ossimNotify(), and ossimNotifyLevel_WARN.
|
private |
Definition at line 1596 of file ossimGpkgWriter.cpp.
References ossimGpkgTileMatrixSetRecord::init(), ossimGpkgTileMatrixSetRecord::insert(), ossimDrect::lr(), m_srs_id, m_tileTableName, status, ossimDrect::ul(), ossimDpt::x, and ossimDpt::y.
|
private |
Initialize method.
db | |
zoom_level. | Zero being whole Earth... |
matrixSize | Size of tile matrix, i.e. number of horizontal vertical tiles. |
gsd | Size of one pixel either in meters or lat lon. |
Definition at line 1614 of file ossimGpkgWriter.cpp.
References ossimGpkgTileMatrixRecord::init(), ossimGpkgTileMatrixRecord::insert(), m_tileSize, m_tileTableName, and status.
|
virtual |
Direct interface to writing a tile to database.
tile | to write. |
zoolLevel | |
row | |
col |
Implements ossimGpkgWriterInterface.
Definition at line 1439 of file ossimGpkgWriter.cpp.
References ossimDataObject::getDataObjectStatus(), isValidZoomLevelRowCol(), m_batchCount, m_batchSize, m_db, m_pStmt, m_writeBlanks, OSSIM_EMPTY, OSSIM_NULL, status, and ossimRefPtr< T >::valid().
|
private |
Definition at line 1304 of file ossimGpkgWriter.cpp.
References ossimImageData::computeAlphaChannel(), ossimCodecBase::encode(), ossimDataObject::getDataObjectStatus(), getWriterMode(), m_fullTileCodec, m_fullTileCodecAlpha, m_partialTileCodec, m_partialTileCodecAlpha, OSSIM_FULL, OSSIM_GPGK_WRITER_MODE_JPEG, OSSIM_GPGK_WRITER_MODE_MIXED, ossimNotify(), ossimNotifyLevel_WARN, and ossimRefPtr< T >::valid().
|
private |
Definition at line 1195 of file ossimGpkgWriter.cpp.
References ossimImageSourceSequencer::getNumberOfTilesHorizontal(), ossimImageSourceSequencer::getNumberOfTilesVertical(), m_tileTableName, ossimImageSourceSequencer::setAreaOfInterest(), ossimImageSourceSequencer::setToStartOfSequence(), and ossimImageFileWriter::theInputConnection.
|
private |
Definition at line 1048 of file ossimGpkgWriter.cpp.
|
private |
Working variable for holding the current batch count.
Definition at line 647 of file ossimGpkgWriter.h.
Referenced by close(), finalizeTileProcessing(), writeCodecTile(), and writeTile().
|
private |
Number of transactions batched before being executed.
Definition at line 650 of file ossimGpkgWriter.h.
Referenced by writeCodecTile(), and writeTile().
|
private |
AOI clipped to projection rect.
This is "edge to edge" bounds.
Definition at line 667 of file ossimGpkgWriter.h.
Referenced by reInitializeCutters(), and writeGpkgNsgTileMatrixExtentTable().
|
private |
database connection
Definition at line 644 of file ossimGpkgWriter.h.
Referenced by addLevels(), close(), finalizeTileProcessing(), isOpen(), writeCodecTile(), and writeTile().
|
private |
Will cache and hold the allocated codecs to use for the encoding.
There is a full and partial as in mixed mode you could use jpeg for full tiles and png with alpha for partial (edge) tiles.
Definition at line 689 of file ossimGpkgWriter.h.
Referenced by close(), initializeCodec(), and writeTile().
|
private |
true if codec requires alpha channel.
Definition at line 693 of file ossimGpkgWriter.h.
Referenced by initializeCodec(), and writeTile().
|
private |
Hold all options.
Definition at line 682 of file ossimGpkgWriter.h.
Referenced by getBatchSize(), getCompressionQuality(), getEpsgCode(), getFilename(), getRect(), getTileSize(), getTileTableName(), getWriterMode(), getZoomLevels(), keyIsTrue(), loadState(), open(), saveState(), setCompressionQuality(), and ~ossimGpkgWriter().
|
private |
Expanded(final) AOI clipped to projection rect.
This is "edge to edge" bounds.
Definition at line 673 of file ossimGpkgWriter.h.
|
private |
Definition at line 690 of file ossimGpkgWriter.h.
Referenced by close(), initializeCodec(), and writeTile().
|
private |
Definition at line 694 of file ossimGpkgWriter.h.
Referenced by initializeCodec(), and writeTile().
|
private |
Holds the bounding rect of the output projection edges either in decimal degrees for geographic projection or Easting/Northings(meters) for map projection.
This is "edge to edge" bounds.
Definition at line 657 of file ossimGpkgWriter.h.
Referenced by initializeProjectionRect(), and setProjectionTie().
|
private |
Holds Statement handle from sqlite3_prepare_v2(...) for connectionless write tile.
Definition at line 706 of file ossimGpkgWriter.h.
Referenced by close(), finalizeTileProcessing(), writeCodecTile(), and writeTile().
|
private |
Holds the bounding rect of the scene edges either in decimal degrees for geographic projection or Easting/Northings(meters) for map projection.
or Easting/Northings(meters). This is "edge to edge" bounds.
Definition at line 664 of file ossimGpkgWriter.h.
Referenced by setProjectionTie().
|
private |
Definition at line 679 of file ossimGpkgWriter.h.
Referenced by writeGpkgContentsTable(), and writeGpkgTileMatrixSetTable().
|
private |
Definition at line 675 of file ossimGpkgWriter.h.
Referenced by getExpandedAoi(), getGsd(), getMatrixSize(), getNumberOfZoomLevels(), getZoomLevels(), and writeGpkgTileMatrixTable().
|
private |
Definition at line 677 of file ossimGpkgWriter.h.
Referenced by beginTileProcessing(), createTables(), writeGpkgContentsTable(), writeGpkgNsgTileMatrixExtentTable(), writeGpkgTileMatrixSetTable(), writeGpkgTileMatrixTable(), and writeTiles().
|
private |
Controlled by option key: "include_blank_tiles".
Definition at line 709 of file ossimGpkgWriter.h.
Referenced by writeTile().
|
private |
Hold zoom level matrix sizes for connectionless write tile.
Definition at line 700 of file ossimGpkgWriter.h.
Referenced by isValidZoomLevelRowCol().
|
private |
Holds zoom level indexes for connectionless write tile.
Definition at line 697 of file ossimGpkgWriter.h.
Referenced by isValidZoomLevelRowCol().