32 "ossimOgrVectorTileSource",
36 static ossimTrace traceDebug(
"ossimOgrVectorTileSource:debug");
57 double maxX,
double maxY)
const 95 const char* MODULE =
"ossimOgrVectorTileSource::open";
122 for(
int i = 0; i < layerCount; ++i)
127 OGRSpatialReference* spatialReference = layer->GetSpatialRef();
129 if(!spatialReference)
135 <<
" No spatial reference given, assuming geographic" 147 <<
" layer " << i <<
" is null." << endl;
157 bool isDefaultProjection =
false;
164 if(imageGeometry.valid())
172 isDefaultProjection =
true;
183 std::vector<ossimGpt> points;
191 points.push_back(g1);
192 points.push_back(g2);
193 points.push_back(g3);
194 points.push_back(g4);
203 points.push_back(g1);
204 points.push_back(g2);
205 points.push_back(g3);
206 points.push_back(g4);
209 std::vector<ossimDpt> rectTmp;
212 for(std::vector<ossimGpt>::size_type index=0; index < 4; ++index)
214 imageGeometry->worldToLocal(points[(
int)index], rectTmp[(
int)index]);
250 const char* prefix)
const 447 entryList.push_back(i);
472 reference->exportToWkt(&wktString);
499 ossimGpt origin(centerLat, centerLon, 0.0);
ossimRefPtr< ossimImageGeometry > theGeoImage
virtual ossim_uint32 getNumberOfOutputBands() const
bool isOgrVectorDataSource() const
ossimString before(const ossimString &str, std::string::size_type pos=0) const
METHOD: before(str, pos) Returns string beginning at pos and ending one before the token str If strin...
virtual bool setCurrentEntry(ossim_uint32 entryIdx)
virtual ossimScalarType getOutputScalarType() const
static ossimString upcase(const ossimString &aString)
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 reduced_res_level=0) const
virtual void close()
Deletes the overview and clears the valid image vertices.
virtual double getNullPixelValue(ossim_uint32 band=0) const
Each band has a null pixel associated with it.
ossimFilename theImageFile
ossim_float64 width() const
ossimMapProjection * createDefaultProj()
void setGeoImage(ossimRefPtr< ossimImageGeometry > image)
Represents serializable keyword/value map.
virtual ossim_uint32 getImageTileHeight() const
ossimRefPtr< ossimImageGeometry > theImageGeometry
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Attempts to initialize a transform and a projection given the KWL.
virtual ossim_uint32 getNumberOfEntries() const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
const ossimDpt & ul() const
virtual bool isGeographic() const
ossimProjection * createProjFromReference(OGRSpatialReference *reference) const
virtual void setDecimalDegreesPerPixel(const ossimDpt &gsd)
std::vector< ossimOgrVectorLayerNode * > theLayerVector
ossimOgrVectorLayerNode(const ossimDrect &bounds)
virtual ossimGpt inverse(const ossimDpt &projectedPoint) const =0
Will take a point in meters and convert it to ground.
virtual void setUlGpt(const ossimGpt &ulGpt)
ossimOgrVectorTileSource()
ossimProjection * createProjection(const ossimFilename &filename, ossim_uint32 entryIdx) const
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &tileRect, ossim_uint32 resLevel=0)
virtual ossim_uint32 getTileHeight() const
unsigned int ossim_uint32
virtual ossim_uint32 getImageTileWidth() const
OGREnvelope theBoundingExtent
virtual double getMinPixelValue(ossim_uint32 band=0) const
Retuns the min pixel value.
virtual void setOrigin(const ossimGpt &origin)
static ossimString downcase(const ossimString &aString)
virtual void getEntryList(std::vector< ossim_uint32 > &entryList) const
bool intersects(const ossimDrect &rect) const
ossim_float64 height() const
virtual ossim_uint32 getNumberOfLines(ossim_uint32 reduced_res_level=0) const
virtual ossim_uint32 getTileWidth() const
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
~ossimOgrVectorLayerNode()
static ossimProjectionFactoryRegistry * instance()
bool intersects(double minX, double minY, double maxX, double maxY) const
virtual ~ossimOgrVectorTileSource()
This class defines an abstract Handler which all image handlers(loaders) should derive from...
OGRDataSource * theDataSource
virtual ossim_uint32 getNumberOfInputBands() const
const ossimDpt & ur() const
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
RTTI_DEF1(ossimOgrVectorTileSource, "ossimOgrVectorTileSource", ossimImageHandler)
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Saves the transform (if any) and projection (if any) states to the KWL.
ossimDrect theBoundingRect
const ossimDpt & ll() const
bool toOssimKwl(const ossimString &wktString, ossimKeywordlist &kwl, const char *prefix=NULL) const
virtual bool isOpen() const
Derived classes must implement this method to be concrete.
bool intersects(const ossimDrect &rect) const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
virtual ossimRefPtr< ossimImageGeometry > getInternalImageGeometry() const
Returns the image geometry object associated with this tile source or NULL if non defined...
virtual void getEntryList(std::vector< ossim_uint32 > &entryList) const
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
const ossimDpt & lr() const
virtual ossim_uint32 getNumberOfDecimationLevels() const
virtual ossimIrect getImageRectangle(ossim_uint32 reduced_res_level=0) const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.