osgEarth 2.1.1
Classes | Typedefs | Enumerations | Functions

osgEarth::Features Namespace Reference

Classes

class  AltitudeFilter
class  BufferFilter
class  BuildGeometryFilter
class  BuildTextFilter
class  BuildTextOperator
class  CentroidFilter
class  ConvertTypeFilter
class  CropFilter
class  ExtrudeGeometryFilter
class  FeatureProfile
struct  AttributeValueUnion
struct  AttributeValue
class  Feature
class  FeatureCursor
class  FeatureListCursor
class  GeometryFeatureCursor
class  FeatureLevel
class  FeatureDisplayLayout
struct  FeatureGeometryRecord
class  FeatureGeometryQuery
class  FeatureGeometryIndex
class  FeatureGeometryIndexBuilder
class  GriddingPolicy
class  FeatureGridder
class  FeatureListSource
class  FeatureModelGraph
class  FeatureModelSourceOptions
class  FeatureNodeFactory
class  GeomFeatureNodeFactory
class  FeatureModelSource
class  FeatureNode
class  FeatureRasterizer
class  FeatureRasterizerFactory
class  FeatureSourceOptions
class  FeatureSource
class  FeatureSourceDriver
class  FeatureSourceFactory
class  FeatureTileSourceOptions
class  FeatureTileSource
class  Filter
class  FeatureFilter
class  FeaturesToNodeFilter
class  FilterContext
class  GeometryCompilerOptions
class  GeometryCompiler
class  LabelSourceOptions
class  LabelSource
class  LabelSourceDriver
class  LabelSourceFactory
class  OptimizerHints
class  ResampleFilter
class  ScaleFilter
class  ScatterFilter
class  Session
class  StencilVolumeNode
class  StencilVolumeFactory
class  SubstituteModelFilter
class  TransformFilter
struct  FeaturePredicate
struct  FeatureSourceMapping
class  VirtualFeatureSource

Typedefs

typedef std::map< std::string,
AttributeValue
AttributeTable
typedef unsigned long FeatureID
typedef std::map< std::string,
AttributeType
FeatureSchema
typedef std::list
< osg::ref_ptr< Feature > > 
FeatureList
typedef std::list
< osg::ref_ptr< FeatureFilter > > 
FeatureFilterList
typedef std::vector
< FeatureSourceMapping
FeatureSourceMappingVector

Enumerations

enum  AttributeType {
  ATTRTYPE_UNSPECIFIED, ATTRTYPE_STRING, ATTRTYPE_INT, ATTRTYPE_DOUBLE,
  ATTRTYPE_BOOL
}

Functions

OSGEARTHFEATURES_EXPORT std::string geometryToWkt (osgEarth::Symbology::Geometry *geometry)
OSGEARTHFEATURES_EXPORT std::string geometryToJson (osgEarth::Symbology::Geometry *geometry)
OSGEARTHFEATURES_EXPORT std::string geometryToKml (osgEarth::Symbology::Geometry *geometry)
OSGEARTHFEATURES_EXPORT std::string geometryToGml (osgEarth::Symbology::Geometry *geometry)

Typedef Documentation

typedef std::map<std::string, AttributeValue> osgEarth::Features::AttributeTable

Definition at line 97 of file Feature.

typedef std::list< osg::ref_ptr<FeatureFilter> > osgEarth::Features::FeatureFilterList

Definition at line 49 of file Filter.

typedef unsigned long osgEarth::Features::FeatureID

Definition at line 99 of file Feature.

typedef std::list< osg::ref_ptr<Feature> > osgEarth::Features::FeatureList

Definition at line 164 of file Feature.

typedef std::map< std::string, AttributeType > osgEarth::Features::FeatureSchema

Definition at line 101 of file Feature.

Definition at line 49 of file VirtualFeatureSource.


Enumeration Type Documentation

Enumerator:
ATTRTYPE_UNSPECIFIED 
ATTRTYPE_STRING 
ATTRTYPE_INT 
ATTRTYPE_DOUBLE 
ATTRTYPE_BOOL 

Definition at line 80 of file Feature.


Function Documentation

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;
}

Here is the call graph for this function:

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;
}

Here is the call graph for this function:

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;
}

Here is the call graph for this function:

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;
}

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines