osgEarth 2.1.1
|
typedef std::map<std::string, AttributeValue> osgEarth::Features::AttributeTable |
typedef std::list< osg::ref_ptr<FeatureFilter> > osgEarth::Features::FeatureFilterList |
typedef unsigned long osgEarth::Features::FeatureID |
typedef std::list< osg::ref_ptr<Feature> > osgEarth::Features::FeatureList |
typedef std::map< std::string, AttributeType > osgEarth::Features::FeatureSchema |
typedef std::vector<FeatureSourceMapping> osgEarth::Features::FeatureSourceMappingVector |
Definition at line 49 of file VirtualFeatureSource.
std::string osgEarth::Features::geometryToGml | ( | osgEarth::Symbology::Geometry * | geometry | ) |
Definition at line 79 of file GeometryUtils.cpp.
{ OGRGeometryH g = OgrUtils::createOgrGeometry( geometry ); std::string result; if (g) { char* buf; buf = OGR_G_ExportToGML( g ); if (buf) { result = std::string(buf); OGRFree( buf ); } OGR_G_DestroyGeometry( g ); } return result; }
std::string osgEarth::Features::geometryToJson | ( | osgEarth::Symbology::Geometry * | geometry | ) |
Definition at line 43 of file GeometryUtils.cpp.
{ OGRGeometryH g = OgrUtils::createOgrGeometry( geometry ); std::string result; if (g) { char* buf; buf = OGR_G_ExportToJson( g ); if (buf) { result = std::string(buf); OGRFree( buf ); } OGR_G_DestroyGeometry( g ); } return result; }
std::string osgEarth::Features::geometryToKml | ( | osgEarth::Symbology::Geometry * | geometry | ) |
Definition at line 61 of file GeometryUtils.cpp.
{ OGRGeometryH g = OgrUtils::createOgrGeometry( geometry ); std::string result; if (g) { char* buf; buf = OGR_G_ExportToKML( g, 0); if (buf) { result = std::string(buf); OGRFree( buf ); } OGR_G_DestroyGeometry( g ); } return result; }
std::string osgEarth::Features::geometryToWkt | ( | osgEarth::Symbology::Geometry * | geometry | ) |
Definition at line 26 of file GeometryUtils.cpp.
{ OGRGeometryH g = OgrUtils::createOgrGeometry( geometry ); std::string result; if (g) { char* buf; if (OGR_G_ExportToWkt( g, &buf ) == OGRERR_NONE) { result = std::string(buf); OGRFree( buf ); } OGR_G_DestroyGeometry( g ); } return result; }