Rogue Wave Views Maps Package API Reference Guide |
Rogue Wave Views Documentation Home |
This class implements a tile loader to read tiles from an ESRI Shapefile whose spatial index has been created. More...
#include <ilviews/maps/format/shapefile/shptloader.h>
Public Member Functions | |
IlvShapeFileTileLoader (const char *shpFilename, const char *dbfFilename, const char *shxFilename, const char *indexFilename, const IlvMapAdapter *adapter) | |
Constructs a new .shp file tile loader. More... | |
const char * | getDBFFilename () const |
Returns the file from which this tile loader loads attributes. More... | |
virtual IlvFeatureRenderer * | getDefaultFeatureRenderer (IlvDisplay *display) |
Returns the default feature renderer for this tile loader. More... | |
virtual IlvMapFeatureIterator * | getFeatureIterator (IlvTile *tile) |
Returns the feature iterator to load features from the specified tile. More... | |
virtual IlBoolean | getLowerRightCorner (IlvCoordinate &c) const |
Returns the lower right corner of data read by this tile loader. More... | |
virtual IlvMapInfo * | getMapInfo () |
Returns the IlvMapInfo used to generate the IlvGraphic objects. More... | |
const char * | getSHPFilename () const |
Returns the file from which this tile loader loads geometries. More... | |
const char * | getSHXFilename () const |
Returns the file used as the shape index file. More... | |
const char * | getSpatialIndexFilename () const |
Returns the spatial index file used by this tile loader to index geometries by tile. More... | |
virtual IlvRect & | getTileOrigin () |
Returns the tile origin. More... | |
virtual IlBoolean | getUpperLeftCorner (IlvCoordinate &c) const |
Returns the upper left corner of the data read by this tile loader. More... | |
virtual IlBoolean | isPersistent () const |
Indicates if this tile loader must be saved by a tile controller. More... | |
Public Member Functions inherited from IlvMapTileLoader | |
virtual IlvFeatureRenderer * | getFeatureRenderer (IlvDisplay *display) |
Returns the renderer to use with this tile loader. More... | |
IlvMapsError | getInitStatus () const |
Checks the initialization status of this tile loader. More... | |
virtual IlBoolean | isAttachingAttributes () const |
Test if this tile loader is attaching attributes. More... | |
IlBoolean | isOwnerOfRenderer () const |
Returns whether the tile loader is owner of its feature renderer or not. More... | |
virtual IlvMapsError | load (IlvTile *tile) |
Method called when a tile has to be loaded. More... | |
virtual void | release (IlvTile *tile) |
Releases the specified tile. More... | |
virtual void | setAttachingAttributes (IlBoolean set) |
Specifies whether this tile loader is attaching attributes to the graphic objects it loads. More... | |
virtual void | setFeatureRenderer (IlvFeatureRenderer *renderer, IlBoolean owner=IlFalse) |
Sets the renderer to use with this tile loader. More... | |
Public Member Functions inherited from IlvTileLoader | |
virtual void | controllerDeleted (IlvTileController *controller) |
Called when the controller is deleted. More... | |
virtual void | tileDeleted (IlvTile *tile) |
Called when a tile is deleted during the controller destruction. More... | |
Protected Member Functions | |
virtual IlvShapeFileReader * | getReader (const char *shpFilename, const char *dbfFilename, const char *shxFilename) |
Creates the IlvShapeFileReader to read from specified files. More... | |
Protected Member Functions inherited from IlvMapTileLoader | |
IlvMapTileLoader () | |
Constructor. More... | |
void | setInitStatus (IlvMapsError status) |
Sets the error status of the tile loader. More... | |
This class implements a tile loader to read tiles from an ESRI Shapefile whose spatial index has been created.
Library: ilvmaps
An ESRI Shapefile can be opened in load-on-demand mode if:
.shp
file). .shx
file). .idx
files). If an attribute table (.dbf
file) is available, the attributes can be attached to objects.
IlvShapeFileTileLoader::IlvShapeFileTileLoader | ( | const char * | shpFilename, |
const char * | dbfFilename, | ||
const char * | shxFilename, | ||
const char * | indexFilename, | ||
const IlvMapAdapter * | adapter | ||
) |
Constructs a new .shp
file tile loader.
shpFilename | The name of the .shp filename. |
dbfFilename | The name of the .dbf filename. |
shxFilename | The name of the .shx filename. |
indexFilename | The name of the Rogue Wave Views spatial index filename. |
adapter | The adapter to be used for this .shp file. |
const char* IlvShapeFileTileLoader::getDBFFilename | ( | ) | const |
Returns the file from which this tile loader loads attributes.
.dbf
file from which this tile loader loads attributes.
|
virtual |
Returns the default feature renderer for this tile loader.
display | The display instance that the renderer is using. |
Implements IlvMapTileLoader.
|
virtual |
Returns the feature iterator to load features from the specified tile.
This implementation returns an IlvLookAheadFeatureIterator
to read features for the specified tile.
tile | The tile. |
Implements IlvMapTileLoader.
|
virtual |
Returns the lower right corner of data read by this tile loader.
c | Set to the lower right coordinate of the data read by this tile loader. |
IlFalse
if the lower right corner is unknown.
|
virtual |
Returns the IlvMapInfo
used to generate the IlvGraphic
objects.
IlvMapInfo
used to generate the IlvGraphic
objects. Implements IlvMapTileLoader.
|
protectedvirtual |
Creates the IlvShapeFileReader
to read from specified files.
Subclasses of IlvShapeFileTileLoader
can override this method to produce a reader with the customized parameters for specific applications.
shpFilename | The name of the .shp filename. |
dbfFilename | The name of the .dbf filename. |
shxFilename | The name of the .shx filename. |
IlvShapeFileReader
with the specified files. const char* IlvShapeFileTileLoader::getSHPFilename | ( | ) | const |
Returns the file from which this tile loader loads geometries.
.shp
file from which this tile loader loads geometries. const char* IlvShapeFileTileLoader::getSHXFilename | ( | ) | const |
Returns the file used as the shape index file.
.shx
file used as the shape index file. const char* IlvShapeFileTileLoader::getSpatialIndexFilename | ( | ) | const |
Returns the spatial index file used by this tile loader to index geometries by tile.
|
virtual |
Returns the tile origin.
|
virtual |
Returns the upper left corner of the data read by this tile loader.
c | Set to the upper left coordinate of the data read by this tile loader. |
IlFalse
if the upper left corner is unknown.
|
virtual |
Indicates if this tile loader must be saved by a tile controller.
IlTrue
since this tile loader is to be saved by a tile controller. Implements IlvMapTileLoader.
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.