libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups

Representation of an (complex/multipolygon) area. More...

#include <StyleDescription.h>

+ Inheritance diagram for osmscout::CLASS_FINAL:

Classes

struct  Coord
 A Coordinate for a point in a ground tile path. More...
 
class  Ring
 
struct  TypeCondition
 A type can have a number of conditions that allow to identify the type of an object based on its tag values. More...
 

Public Types

enum  Type {
  unknown = 0, land = 1, water = 2, coast = 3,
  Allow = 0, Forbit = 1
}
 
enum  Type {
  unknown = 0, land = 1, water = 2, coast = 3,
  Allow = 0, Forbit = 1
}
 
- Public Types inherited from osmscout::StyleEnumAttributeDescriptor
typedef std::unordered_map
< std::string, int > 
EnumNameValueMap
 

Public Member Functions

void Adapt (const TypeConfig &typeConfig)
 
GeoCoord Add (double bearing, double distance)
 Get coordinate of position + course and distance. More...
 
void Add (const TypeInfoSet &types)
 
TypeInfo & AddCondition (unsigned char types, const TagConditionRef &condition)
 
TypeInfo & AddDescription (const std::string &languageCode, const std::string &description)
 
TypeInfo & AddFeature (const FeatureRef &feature)
 Add a feature to this type. More...
 
TypeInfo & AddGroup (const std::string &groupName)
 Add a categorizing group name to the type. More...
 
FeatureValueAllocateValue (size_t idx)
 
 Area ()
 
 BasemapDatabase (const BasemapDatabaseParameter &parameter)
 
 BasemapDatabaseParameter ()
 
OSMTileIdBoxConstIterator begin () const
 
TypeInfoSetConstIterator begin () const
 
 BorderStyleDescriptor ()
 
TypeInfo & CanBeArea (bool canBeArea)
 If set to 'true', an area can be of this type. More...
 
bool CanBeArea () const
 
TypeInfo & CanBeNode (bool canBeNode)
 If set to 'true', a node can be of this type. More...
 
bool CanBeNode () const
 
TypeInfo & CanBeRelation (bool canBeRelation)
 If set to 'true', a relation can be of this type. More...
 
bool CanBeRelation () const
 
TypeInfo & CanBeWay (bool canBeWay)
 If set to 'true', a way can be of this type. More...
 
bool CanBeWay () const
 
bool CanRoute () const
 
bool CanRoute (Vehicle vehicle) const
 If set to 'true', an object of this type can be traveled by the given vehicle by default. More...
 
TypeInfo & CanRouteBicycle (bool canBeRoute)
 
bool CanRouteBicycle () const
 
TypeInfo & CanRouteCar (bool canBeRoute)
 If set to 'true', an object of this type can be traveled by car by default. More...
 
bool CanRouteCar () const
 
TypeInfo & CanRouteFoot (bool canBeRoute)
 If set to 'true', an object of this type can be traveled by feet by default. More...
 
bool CanRouteFoot () const
 
 CapStyleEnumAttributeDescriptor (const std::string &name, int attribute)
 
void Clear ()
 
void ClearDBData ()
 
void ClearFeatureValues ()
 Clears all feature buffer values. More...
 
void ClearSerial ()
 
void Close ()
 
void Close ()
 
 Coord ()
 The default constructor. More...
 
 Coord (uint8_t serial, const GeoCoord &coord)
 
void CopyMissingValues (const FeatureValueBuffer &other)
 Maintains the current values and types and copies over all not already set feature values of the passed instance to the current instance. More...
 
 Database (const DatabaseParameter &parameter)
 
 DatabaseParameter ()
 
void DecodeFromBuffer (const unsigned char buffer[])
 Decode the coordinate value from a buffer (with at least a size of coordByteSize). More...
 
void DumpStatistics ()
 
 DynamicFeatureReader (const TypeConfig &typeConfig, const Feature &feature)
 
bool Empty () const
 
void EncodeToBuffer (unsigned char buffer[]) const
 Encode the coordinate value into a buffer (with at least a size of coordByteSize). More...
 
OSMTileIdBoxConstIterator end () const
 
TypeInfoSetConstIterator end () const
 
 FeatureInstance ()
 
 FeatureInstance (const FeatureRef &feature, const TypeInfo *type, size_t featureBit, size_t index, size_t offset)
 
 FeatureValueBuffer ()
 
 FeatureValueBuffer (const FeatureValueBuffer &other)
 
 FillStyleDescriptor ()
 
template<class T >
const T * findValue () const
 
void FreeValue (size_t idx)
 
 GeoBox ()
 The default constructor creates an invalid instance. More...
 
 GeoBox (const GeoBox &other)
 Copy-Constructor. More...
 
 GeoBox (const GeoCoord &coordA, const GeoCoord &coordB)
 Initialize the GeoBox based on the given coordinates. More...
 
 GeoCoord ()
 The default constructor creates an uninitialized instance (for performance reasons). More...
 
 GeoCoord (double lat, double lon)
 Initialize the coordinate with the given latitude and longitude values. More...
 
AreaAreaIndexRef GetAreaAreaIndex () const
 
unsigned long GetAreaAreaIndexCacheSize () const
 
bool GetAreaByOffset (const FileOffset &offset, AreaRef &area) const
 
unsigned long GetAreaDataCacheSize () const
 
AreaDataFileRef GetAreaDataFile () const
 
TypeId GetAreaId () const
 Returns the unique id of this type. More...
 
AreaNodeIndexRef GetAreaNodeIndex () const
 
bool GetAreasByBlockSpan (const DataBlockSpan &span, std::vector< AreaRef > &area) const
 
bool GetAreasByBlockSpans (const std::vector< DataBlockSpan > &spans, std::vector< AreaRef > &areas) const
 
bool GetAreasByOffset (const std::vector< FileOffset > &offsets, std::vector< AreaRef > &areas) const
 
bool GetAreasByOffset (const std::set< FileOffset > &offsets, std::vector< AreaRef > &areas) const
 
bool GetAreasByOffset (const std::list< FileOffset > &offsets, std::vector< AreaRef > &areas) const
 
bool GetAreasByOffset (const std::set< FileOffset > &offsets, std::unordered_map< FileOffset, AreaRef > &dataMap) const
 
bool GetAreasDataMMap () const
 
AreaWayIndexRef GetAreaWayIndex () const
 
Id GetBackId () const
 
GeoBox GetBoundingBox (const Magnification &magnification) const
 
void GetBoundingBox (GeoBox &boundingBox) const
 
bool GetBoundingBox (GeoBox &boundingBox) const
 
void GetBoundingBox (GeoBox &boundingBox) const
 
GeoBox GetBoundingBox (const Magnification &magnification) const
 
BoundingBoxDataFileRef GetBoundingBoxDataFile () const
 
BreakerRef GetBreaker () const
 
bool GetCenter (GeoCoord &center) const
 
GeoCoord GetCenter () const
 
bool GetCenter (GeoCoord &center) const
 
const std::list< TypeCondition > & GetConditions () const
 Returns the list of conditions for the given type. More...
 
const GeoCoordGetCoord () const
 
const GeoCoordGetCoord () const
 
const GeoCoordGetCoord (size_t index) const
 
const GeoCoordGetCoords () const
 
uint32_t GetCount () const
 
double GetCurrentMaxDistance () const
 
uint8_t GetDefaultAccess () const
 
std::string GetDescription (const std::string &languageCode) const
 
const std::unordered_map
< std::string, std::string > & 
GetDescriptions () const
 
std::string GetDisplayText () const
 
std::string GetDisplayText () const
 Return a string representation of the coordinate value in a human readable format. More...
 
std::string GetDisplayText () const
 
std::string GetDisplayText () const
 Return a string representation of the coordinate value in a human readable format. More...
 
double GetDistance (GeoCoord target) const
 Get distance between two coordinates. More...
 
const FeatureInstanceGetFeature (size_t idx) const
 
const FeatureInstanceGetFeature (size_t idx) const
 
FeatureRef GetFeature () const
 Return the feature itself. More...
 
bool GetFeature (const std::string &name, size_t &index) const
 Return the feature with the given name. More...
 
const FeatureInstanceGetFeature (size_t idx) const
 Return the feature at the given index. More...
 
FeatureInstance GetFeature (size_t idx) const
 Get a feature description for the feature with the given index ([0..featureCount[) More...
 
size_t GetFeatureBit () const
 return the index of this feature within the list of features of the type. More...
 
size_t GetFeatureCount () const
 
size_t GetFeatureCount () const
 
size_t GetFeatureCount () const
 Returns the number of features of the asisgned type. More...
 
size_t GetFeatureCount () const
 Return the numbe rof features defined for this type. More...
 
size_t GetFeatureMaskBytes () const
 Returns the (rounded) number of bytes required for storing the feature mask. More...
 
std::string GetFeatureName () const
 
const std::vector
< FeatureInstance > & 
GetFeatures () const
 Return the list of features assigned to this type. More...
 
FeatureValueGetFeatureValue (size_t idx) const
 
FeatureValueGetFeatureValue (size_t idx) const
 
const FeatureValueBufferGetFeatureValueBuffer () const
 
const FeatureValueBufferGetFeatureValueBuffer () const
 
const FeatureValueBufferGetFeatureValueBuffer () const
 
size_t GetFeatureValueBufferSize () const
 Returns the size of the buffer required to store all FeatureValues of this type into. More...
 
FileOffset GetFileOffset () const
 
FileOffset GetFileOffset () const
 
const FileOffsetGetFileOffset () const
 
FileOffset GetFileOffset () const
 
OSMId GetFrom () const
 
Id GetFrontId () const
 
const std::unordered_set
< std::string > & 
GetGroups () const
 Return the set of groups the type is in. More...
 
Id GetHash () const
 Encode the coordinate value into a number (the number has hash character). More...
 
Id GetHash () const
 Encode the coordinate value into a number (the number has hash character). More...
 
uint32_t GetHeight () const
 
double GetHeight () const
 Returns the height of the bounding box (maxLat-minLat). More...
 
Id GetId () const
 
uint64_t GetId () const
 Returns a unique number based on the coordinates of the pixel. More...
 
const IdGetId () const
 
Id GetId () const
 Returns a fast calculable unique id for the coordinate under consideration that different OSM nodes with the same coordinate will have different ids if the identity of the node is important - else the serial id will be 0. More...
 
Id GetId (size_t index) const
 
Id GetId () const
 Returns a fast calculable unique id for the coordinate. More...
 
bool GetIgnore () const
 
bool GetIgnoreSeaLand () const
 
size_t GetIndex () const
 return the index of this feature within the list of features of the type. More...
 
size_t GetIndex () const
 Returns the index of this type. More...
 
bool GetIndexAsAddress () const
 
bool GetIndexAsLocation () const
 
bool GetIndexAsPOI () const
 
bool GetIndexAsRegion () const
 
double GetLat () const
 Return the latitude value of the coordinate. More...
 
double GetLat () const
 
LocationIndexRef GetLocationIndex () const
 
double GetLon () const
 
double GetLon () const
 Return the latitude value of the coordinate. More...
 
OSMTileId GetMax () const
 
GeoCoord GetMaxCoord () const
 Return the coordinate with the maximum value for the lat/lon values of the area. More...
 
double GetMaxLat () const
 Return the maximum latitude of the GeBox. More...
 
double GetMaxLon () const
 Return the maximum longitude of the GeBox. More...
 
uint32_t GetMaxX () const
 
uint32_t GetMaxY () const
 
bool GetMergeAreas () const
 
double GetMilliseconds () const
 
OSMTileId GetMin () const
 
GeoCoord GetMinCoord () const
 Return the coordinate with the minimum value for the lat/lon values of the area. More...
 
double GetMinLat () const
 Return the minimum latitude of the GeBox. More...
 
double GetMinLon () const
 Return the minimum longitude of the GeBox. More...
 
uint32_t GetMinX () const
 
uint32_t GetMinY () const
 
bool GetMultipolygon () const
 
std::string GetName () const
 
std::string GetName () const
 
std::string GetName () const
 The name of the given type. More...
 
double GetNanoseconds () const
 
FileOffset GetNextFileOffset () const
 
FileOffset GetNextFileOffset () const
 
FileOffset GetNextFileOffset () const
 
bool GetNodeByOffset (const FileOffset &offset, NodeRef &node) const
 
unsigned long GetNodeDataCacheSize () const
 
NodeDataFileRef GetNodeDataFile () const
 
TypeId GetNodeId () const
 Returns the unique id of this type. More...
 
size_t GetNodeIndex () const
 
bool GetNodeIndexByNodeId (Id id, size_t &index) const
 
bool GetNodesByOffset (const std::vector< FileOffset > &offsets, std::vector< NodeRef > &nodes) const
 
bool GetNodesByOffset (const std::vector< FileOffset > &offsets, const GeoBox &boundingBox, std::vector< NodeRef > &nodes) const
 
bool GetNodesByOffset (const std::set< FileOffset > &offsets, std::vector< NodeRef > &nodes) const
 
bool GetNodesByOffset (const std::list< FileOffset > &offsets, std::vector< NodeRef > &nodes) const
 
bool GetNodesByOffset (const std::set< FileOffset > &offsets, std::unordered_map< FileOffset, NodeRef > &dataMap) const
 
bool GetNodesDataMMap () const
 
ObjectFileRef GetObjectFileRef () const
 
ObjectFileRef GetObjectFileRef () const
 
ObjectFileRef GetObjectFileRef () const
 
ObjectFileRef GetObjectFileRef () const
 
const std::vector
< ObjectFileRef > & 
GetObjects () const
 
size_t GetOffset () const
 Return the file offset within the feature value buffer for the value of this feature. More...
 
OptimizeAreasLowZoomRef GetOptimizeAreasLowZoom () const
 
bool GetOptimizeLowZoom () const
 
OptimizeWaysLowZoomRef GetOptimizeWaysLowZoom () const
 
Id GetOSMScoutId () const
 Returns a fast calculable unique id for the coordinate. More...
 
double GetOverallDistance () const
 
std::string GetPath () const
 
std::string GetPath () const
 
bool GetPinWay () const
 
const PointGetPoint (size_t index) const
 
RoutingProgressRef GetProgress () const
 
RouteDataGetRoute ()
 
const RouteDataGetRoute () const
 
bool GetRouterDataMMap () const
 
bool GetRouterDataMMap () const
 
uint8_t GetSerial () const
 
uint8_t GetSerial () const
 
Id GetSerial (size_t index) const
 
double GetSize () const
 Returns the size of the bounding box (width*height). More...
 
size_t GetSpecialFeatureMaskBytes () const
 Returns the (rounded) number of bytes required for storing the feature mask and one additional general purpose signal byte. More...
 
OSMId GetTo () const
 
GeoCoord GetTopLeftCoord (const Magnification &magnification) const
 
Type GetType () const
 
TypeInfoRef GetType () const
 
TypeInfoRef GetType () const
 
const OSMRefTypeGetType () const
 
const RefTypeGetType () const
 
TypeInfoRef GetType () const
 
const TypeInfo * GetType () const
 Return a pointer back tot he type we are assigned to. More...
 
TypeInfoRef GetType () const
 
TypeConfigRef GetTypeConfig () const
 
const char * GetTypeName () const
 
const char * GetTypeName () const
 
FeatureValueGetValue (size_t idx) const
 Return a raw pointer to the value (as reserved in the internal featureValueBuffer) More...
 
OSMId GetVia () const
 
WaterIndexRef GetWaterIndex () const
 
WaterIndexRef GetWaterIndex () const
 
bool GetWayByOffset (const FileOffset &offset, WayRef &way) const
 
unsigned long GetWayDataCacheSize () const
 
WayDataFileRef GetWayDataFile () const
 
TypeId GetWayId () const
 Returns the unique id of this type. More...
 
bool GetWaysByOffset (const std::vector< FileOffset > &offsets, std::vector< WayRef > &ways) const
 
bool GetWaysByOffset (const std::set< FileOffset > &offsets, std::vector< WayRef > &ways) const
 
bool GetWaysByOffset (const std::list< FileOffset > &offsets, std::vector< WayRef > &ways) const
 
bool GetWaysByOffset (const std::set< FileOffset > &offsets, std::unordered_map< FileOffset, WayRef > &dataMap) const
 
bool GetWaysDataMMap () const
 
uint32_t GetWidth () const
 
double GetWidth () const
 Returns the width of the bounding box (maxLon-minLon). More...
 
uint32_t GetX () const
 
double GetX () const
 
double GetX () const
 
uint32_t GetY () const
 
double GetY () const
 
double GetY () const
 
double GetZ () const
 
 GroundTile ()
 
 GroundTile (Type type)
 
bool HasConditions () const
 Returns true, if there are any conditions bound to the type. More...
 
bool HasFeature (size_t idx) const
 
bool HasFeature (size_t idx) const
 
bool HasFeature (const std::string &featureName) const
 Returns true, if the feature with the given name has already been assigned to this type. More...
 
bool HasFeature (size_t idx) const
 Return true, if the given feature is set (available), else false. More...
 
bool HasFeatures ()
 
 IconStyleDescriptor ()
 
void Include (const GeoBox &other)
 Resize the bounding box to include the original bounding box and the given bounding box. More...
 
template<typename P >
bool Includes (const P &coord, bool openInterval=true) const
 Returns 'true' if coordinate is within the bounding box. More...
 
 Intersection ()
 
GeoBox Intersection (const GeoBox &other) const
 Create new GeoBox from intersection of this with other If not Intersects, invalid GeoBox is returned. More...
 
void Intersection (const TypeInfoSet &otherTypes)
 
bool Intersects (const GeoBox &boundingBox) const
 Returns true if the nodes is in the given bounding box. More...
 
bool Intersects (const GeoBox &other, bool openInterval=true) const
 Returns true, if both GeoBox instances intersect with each other. More...
 
bool Intersects (const GeoBox &boundingBox) const
 Returns true if the bounding box of the object intersects the given bounding box. More...
 
bool Intersects (const GeoBox &boundingBox) const
 Returns true if the bounding box of the object intersects the given bounding box. More...
 
bool Intersects (const TypeInfoSet &otherTypes) const
 
bool Invalid () const
 
bool Invalid () const
 
void Invalidate ()
 
void Invalidate ()
 Invalidate the bounding Box. More...
 
void Invalidate ()
 
bool IsCircular () const
 
bool IsDebugPerformance () const
 
bool IsEqual (const Point &other) const
 Same semantics as IsSame(), implement for template compability with GeoCoord. More...
 
bool IsEqual (const GeoCoord &other) const
 Return true if both coordinates are equal (using == operator) More...
 
bool IsIdentical (const Point &other) const
 Compare this and the other point for identity. More...
 
bool IsInGroup (const std::string &groupName) const
 
bool IsInternal () const
 Return true, if this is a internal type, else false. More...
 
bool IsOpen () const
 
bool IsOpen () const
 
bool IsPath () const
 
bool IsRelevant () const
 
bool IsSame (const Point &other) const
 Compare this and the other point for "sameness". More...
 
bool IsSet (const TypeInfoRef &type) const
 
bool IsSet (const FeatureValueBuffer &buffer) const
 
bool IsSimple () const
 
bool IsValid () const
 
bool IsValid () const
 Returns true, if the GeoBox instance is valid. More...
 
 LineStyleDescriptor ()
 
 Node ()
 
 ObjectFileRef ()
 
 ObjectFileRef (FileOffset offset, RefType type)
 
 ObjectOSMRef ()
 
 ObjectOSMRef (Id id, OSMRefType type)
 
bool Open (const std::string &path)
 
bool Open (const std::string &path)
 
bool operator!= (const OSMTileId &other) const
 
bool operator!= (const ObjectOSMRef &reference) const
 
bool operator!= (const OSMTileIdBoxConstIterator &other)
 
bool operator!= (const ObjectFileRef &reference) const
 
bool operator!= (const GeoCoord &other) const
 Return true if coordinates are not equal. More...
 
bool operator!= (const TypeInfoSetConstIterator &other)
 
bool operator!= (const TypeInfoSet &other) const
 
bool operator!= (const FeatureValueBuffer &other) const
 
bool operator() (const ObjectFileRef &a, const ObjectFileRef &b) const
 
const OSMTileIdoperator* ()
 
const TypeInfoRefoperator* ()
 
OSMTileIdBoxConstIteratoroperator++ ()
 
OSMTileIdBoxConstIterator operator++ (int)
 
TypeInfoSetConstIteratoroperator++ ()
 
TypeInfoSetConstIterator operator++ (int)
 
double operator- (const GeoCoord &other)
 
bool operator< (const Pixel &other) const
 
bool operator< (const Coord &other) const
 
bool operator< (const ObjectOSMRef &reference) const
 
bool operator< (const Vertex2D &other) const
 
bool operator< (const Point &other) const
 While we do not want to compare using operator== we at least want to manage points in containers. More...
 
bool operator< (const ObjectFileRef &reference) const
 
bool operator< (const Vertex3D &other) const
 
bool operator< (const GeoCoord &other) const
 
std::ostream & operator<< (std::ostream &stream)
 
void operator= (const GeoCoord &other)
 Assign the value of other. More...
 
TypeInfoSetoperator= (const TypeInfoSet &other)
 
FeatureValueBufferoperator= (const FeatureValueBuffer &other)
 
bool operator== (const Pixel &other) const
 
bool operator== (const OSMTileId &other) const
 
bool operator== (const Coord &other) const
 
bool operator== (const ObjectOSMRef &reference) const
 
bool operator== (const Vertex2D &other) const
 
bool operator== (const OSMTileIdBoxConstIterator &other)
 
bool operator== (const ObjectFileRef &reference) const
 
bool operator== (const Vertex3D &other) const
 
bool operator== (const GeoCoord &other) const
 Return true if both coordinates are equals (using == operator) More...
 
bool operator== (const TypeInfoSetConstIterator &other)
 
bool operator== (const TypeInfoSet &other) const
 
bool operator== (const FeatureValueBuffer &other) const
 
 OSMTileId (uint32_t x, uint32_t y)
 
 OSMTileIdBox (const OSMTileId &a, const OSMTileId &b)
 
 OSMTileIdBoxConstIterator (const OSMTileId &currentTile, const OSMTileId &minTile, const OSMTileId &maxTile)
 
 OSMTileIdBoxConstIterator (const OSMTileIdBoxConstIterator &other)
 
void Parse (TagErrorReporter &errorReporter, const TypeConfig &typeConfig, const ObjectOSMRef &object, const TagMap &tags)
 
 PathShieldStyleDescriptor ()
 
 PathSymbolStyleDescriptor ()
 
 PathTextStyleDescriptor ()
 
 Pixel ()
 The default constructor creates an uninitialized instance (for performance reasons). More...
 
 Pixel (uint32_t x, uint32_t y)
 
 Point ()
 
 Point (uint8_t serial, const GeoCoord &coords)
 
bool Read (FileScanner &scanner)
 
bool Read (const TypeConfig &typeConfig, FileScanner &scanner)
 
void Read (FileScanner &scanner)
 
void Read (const TypeConfig &typeConfig, FileScanner &scanner)
 
void Read (const TypeConfig &typeConfig, FileScanner &scanner)
 
void Read (const TypeConfig &typeConfig, FileScanner &scanner)
 Read the area as written by Write(). More...
 
void Read (FileScanner &scanner)
 
void Read (FileScanner &scanner, bool &specialFlag)
 
void Read (FileScanner &scanner, bool &specialFlag1, bool &specialFlag2)
 
void ReadImport (const TypeConfig &typeConfig, FileScanner &scanner)
 Read the area as written by WriteImport(). More...
 
void ReadOptimized (const TypeConfig &typeConfig, FileScanner &scanner)
 
void ReadOptimized (const TypeConfig &typeConfig, FileScanner &scanner)
 Read the area as stored by WriteOptimized(). More...
 
void Remove (const TypeInfoRef &type)
 
void Remove (const TypeInfoSet &otherTypes)
 
std::string ResultString () const
 
std::string ResultString () const
 
 RoutePosition ()
 
 RoutePosition (const ObjectFileRef &object, size_t nodeIndex)
 
 RouterParameter ()
 
 RoutingResult ()
 
void Set (uint8_t serial, const GeoCoord &coords)
 
void Set (const Id &id, const OSMRefType &type)
 
void Set (const GeoCoord &coordA, const GeoCoord &coordB)
 Assign a new rectangular area bases an two coordinates defining the bounds. More...
 
void Set (double lat, double lon)
 Assign a new latitude and longitude value to the coordinate. More...
 
void Set (double x, double y)
 
void Set (const FileOffset &offset, const RefType &type)
 
void Set (double x, double y)
 
void Set (double x, double y, double z)
 
void Set (const TypeInfoRef &type)
 
void Set (const std::vector< TypeInfoRef > &types)
 
void Set (const TypeInfoSet &other)
 
void Set (const FeatureValueBuffer &other)
 Deletes the current feature values and assign the type and values of the passed featur evalue buffer. More...
 
void SetAreaAreaIndexCacheSize (unsigned long areaAreaIndexCacheSize)
 
void SetAreaDataCacheSize (unsigned long size)
 
TypeInfo & SetAreaId (TypeId id)
 Set the id of this type. More...
 
void SetAreasDataMMap (bool mmap)
 
void SetBreaker (const BreakerRef &breaker)
 
void SetCoord (const GeoCoord &coords)
 
void SetCoord (const GeoCoord &coord)
 
void SetCoords (const GeoCoord &coords)
 
void SetCurrentMaxDistance (double currentMaxDistance)
 
void SetDebugPerformance (bool debug)
 
void SetFeatures (const FeatureValueBuffer &buffer)
 
void SetFeatures (const FeatureValueBuffer &buffer)
 
void SetFrom (Id from)
 
TypeInfo & SetIgnore (bool ignore)
 If set to true, an object of this typoe should be ignored (not exported for renderng, routing, location indexing or other services). More...
 
TypeInfo & SetIgnoreSeaLand (bool ignoreSeaLand)
 Set, if an object of this type should be ignored for land/sea calculation. More...
 
TypeInfo & SetIndex (size_t index)
 Set the index of this type. More...
 
TypeInfo & SetIndexAsAddress (bool indexAsAddress)
 Set, if an object of this type should be indexed as an address. More...
 
TypeInfo & SetIndexAsLocation (bool indexAsLocation)
 Set, if an object of this type should be indexed as a location. More...
 
TypeInfo & SetIndexAsPOI (bool indexAsPOI)
 Set, if an object of this type should be indexed as a POI. More...
 
TypeInfo & SetIndexAsRegion (bool indexAsRegion)
 Set, if an object of this type should be indexed as a region. More...
 
TypeInfo & SetInternal ()
 Mark this type as internal. More...
 
TypeInfo & SetIsPath (bool isPath)
 If set to 'true', a node can be of this type. More...
 
void SetLayerToMax ()
 
TypeInfo & SetMergeAreas (bool mergeAreas)
 Set to true, if "touching" areas of this type should get merged. More...
 
TypeInfo & SetMultipolygon (bool multipolygon)
 If set to 'true', an object is handled as multipolygon even though it may not have type=multipolygon set explicitly. More...
 
void SetNodeDataCacheSize (unsigned long size)
 
TypeInfo & SetNodeId (TypeId id)
 Set the id of this type. More...
 
void SetNodesDataMMap (bool mmap)
 
TypeInfo & SetOptimizeLowZoom (bool optimize)
 Set, if an object of this type should be optimized for low zoom. More...
 
void SetOverallDistance (double overallDistance)
 
TypeInfo & SetPinWay (bool pinWay)
 
void SetProgress (const RoutingProgressRef &progress)
 
void SetRouterDataMMap (bool mmap)
 
void SetSerial (uint8_t serial)
 
void SetTo (OSMId to)
 
void SetType (const TypeInfoRef &type)
 
void SetType (const TypeInfoRef &type)
 
TypeInfo & SetType (const std::string &name)
 The the name of this type. More...
 
void SetType (const TypeInfoRef &type)
 
void SetWayDataCacheSize (unsigned long size)
 
TypeInfo & SetWayId (TypeId id)
 Set the id of this type. More...
 
void SetWaysDataMMap (bool mmap)
 
void SetX (double x)
 
void SetX (double x)
 
void SetY (double y)
 
void SetY (double y)
 
void SetZ (double z)
 
size_t Size () const
 
void Stop ()
 
void Stop ()
 
 StopClock ()
 
 StopClockNano ()
 
 StyleBoolAttributeDescriptor (const std::string &name, int attribute)
 
 StyleColorAttributeDescriptor (const std::string &name, int attribute)
 
 StyleDisplayAttributeDescriptor (const std::string &name, int attribute)
 
 StyleDoubleAttributeDescriptor (const std::string &name, int attribute)
 
 StyleIntAttributeDescriptor (const std::string &name, int attribute)
 
 StyleLabelAttributeDescriptor (const std::string &name, int attribute)
 
 StyleMagnificationAttributeDescriptor (const std::string &name, int attribute)
 
 StyleMapAttributeDescriptor (const std::string &name, int attribute)
 
 StyleStringAttributeDescriptor (const std::string &name, int attribute)
 
 StyleSymbolAttributeDescriptor (const std::string &name, int attribute)
 
 StyleUDisplayAttributeDescriptor (const std::string &name, int attribute)
 
 StyleUDoubleArrayAttributeDescriptor (const std::string &name, int attribute)
 
 StyleUDoubleAttributeDescriptor (const std::string &name, int attribute)
 
 StyleUIntAttributeDescriptor (const std::string &name, int attribute)
 
 StyleUMapAttributeDescriptor (const std::string &name, int attribute)
 
 StyleVoidAttributeDescriptor ()
 
bool Success () const
 
 TextStyleDescriptor ()
 
 TextStyleEnumAttributeDescriptor (const std::string &name, int attribute)
 
 TurnRestriction ()
 
 TurnRestriction (Type type, OSMId from, OSMId via, OSMId to)
 
 TypeConfig ()
 
 TypeInfo (const std::string &name)
 
 TypeInfoSet ()
 
 TypeInfoSet (const TypeConfig &typeConfig)
 
 TypeInfoSet (const TypeInfoSet &other)
 
 TypeInfoSet (TypeInfoSet &&other)
 
 TypeInfoSet (const std::vector< TypeInfoRef > &types)
 
 TypeInfoSetConstIterator (const std::vector< TypeInfoRef >::const_iterator &iterCurrent, const std::vector< TypeInfoRef >::const_iterator &iterEnd)
 
 TypeInfoSetConstIterator (const TypeInfoSetConstIterator &other)
 
void UnsetFeature (size_t idx)
 
void UnsetFeature (size_t idx)
 
bool Valid () const
 
bool Valid () const
 
 Vertex2D ()
 The default constructor creates an uninitialized instance (for performance reasons). More...
 
 Vertex2D (const Vertex2D &other)
 
 Vertex2D (double x, double y)
 
 Vertex3D ()
 The default constructor creates an uninitialized instance (for performance reasons). More...
 
 Vertex3D (const Vertex3D &other)
 
 Vertex3D (double x, double y)
 
 Way ()
 
void Write (FileWriter &writer) const
 
void Write (const TypeConfig &typeConfig, FileWriter &writer) const
 
void Write (const TypeConfig &typeConfig, FileWriter &writer) const
 
void Write (const TypeConfig &typeConfig, FileWriter &writer) const
 Write the area with all data required in the standard database. More...
 
void Write (FileWriter &writer) const
 
void Write (FileWriter &writer, bool specialFlag) const
 
void Write (FileWriter &writer, bool specialFlag1, bool specialFlag2) const
 
void WriteImport (const TypeConfig &typeConfig, FileWriter &writer) const
 Write the area with all data required during import, certain optimizations done on the final data are not done here to not loose information. More...
 
void WriteOptimized (const TypeConfig &typeConfig, FileWriter &writer) const
 
void WriteOptimized (const TypeConfig &typeConfig, FileWriter &writer) const
 Write the area with all data required by the OptimizeLowZoom index, dropping all ids. More...
 
virtual ~BasemapDatabase ()
 
virtual ~Database ()
 
virtual ~FeatureValueBuffer ()
 
virtual ~Intersection ()
 
virtual ~TypeConfig ()
 
virtual ~TypeInfo ()
 
TagId RegisterTag (const std::string &tagName)
 Methods for dealing with tags. More...
 
TagId RegisterNameTag (const std::string &tagName, uint32_t priority)
 
TagId RegisterNameAltTag (const std::string &tagName, uint32_t priority)
 
TagId GetTagId (const char *name) const
 
TagId GetTagId (const std::string &name) const
 
bool IsNameTag (TagId tag, uint32_t &priority) const
 
bool IsNameAltTag (TagId tag, uint32_t &priority) const
 
TypeInfoRef RegisterType (const TypeInfoRef &typeInfo)
 Methods for dealing with types. More...
 
const std::vector< TypeInfoRef > & GetTypes () const
 Return an array of the types available. More...
 
const std::vector< TypeInfoRef > & GetNodeTypes () const
 Returns an array of the (ignore=false) node types available. More...
 
uint8_t GetNodeTypeIdBytes () const
 
const std::vector< TypeInfoRef > & GetWayTypes () const
 Returns an array of (ignore=false) the way types available. More...
 
uint8_t GetWayTypeIdBytes () const
 
const std::vector< TypeInfoRef > & GetAreaTypes () const
 Returns an array of the (ignore=false) area types available. More...
 
uint8_t GetAreaTypeIdBits () const
 
uint8_t GetAreaTypeIdBytes () const
 
size_t GetTypeCount () const
 Returns the number of types available. More...
 
TypeId GetMaxTypeId () const
 Return the highest used type id. More...
 
const TypeInfoRef GetTypeInfo (size_t index) const
 Returns the type definition for the given type id. More...
 
const TypeInfoRef GetNodeTypeInfo (TypeId id) const
 Returns the type definition for the given type id. More...
 
const TypeInfoRef GetWayTypeInfo (TypeId id) const
 Returns the type definition for the given type id. More...
 
const TypeInfoRef GetAreaTypeInfo (TypeId id) const
 Returns the type definition for the given type id. More...
 
const TypeInfoRef GetTypeInfo (const std::string &name) const
 Returns the type definition for the given type name. More...
 
TypeInfoRef GetNodeType (const TagMap &tagMap) const
 Return a node type (or an invalid reference if no type got detected) based on the given map of tag and tag values. More...
 
bool GetWayAreaType (const TagMap &tagMap, TypeInfoRef &wayType, TypeInfoRef &areaType) const
 Return a way/area type (or an invalid reference if no type got detected) based on the given map of tag and tag values. More...
 
TypeInfoRef GetRelationType (const TagMap &tagMap) const
 Return a relation type (or an invalid reference if no type got detected) based on the given map of tag and tag values. More...
 
void RegisterFeature (const FeatureRef &feature)
 Methods for dealing with features. More...
 
FeatureRef GetFeature (const std::string &name) const
 Return the feature with the given name or an invalid reference if no feature with the given name is registered. More...
 
const std::vector< FeatureRef > & GetFeatures () const
 Return all features registered. More...
 
void RegisterSurfaceToGradeMapping (const std::string &surface, size_t grade)
 Methods for dealing with mappings for surfaces and surface grades. More...
 
bool GetGradeForSurface (const std::string &surface, size_t &grade) const
 
void RegisterMaxSpeedAlias (const std::string &alias, uint8_t maxSpeed)
 Methods for dealing with mappings for surfaces and surface grades. More...
 
bool GetMaxSpeedFromAlias (const std::string &alias, uint8_t &maxSpeed) const
 
bool LoadFromOSTFile (const std::string &filename)
 Methods for loading/storing of type information from/to files. More...
 
bool LoadFromDataFile (const std::string &directory)
 
bool StoreToDataFile (const std::string &directory) const
 
- Public Member Functions inherited from osmscout::StyleDescriptor
StyleAttributeDescriptorRef GetAttribute (const std::string &name) const
 
- Public Member Functions inherited from osmscout::StyleAttributeDescriptor
int GetAttribute () const
 
std::string GetName () const
 
StyleAttributeType GetType () const
 
virtual ~StyleAttributeDescriptor ()
 
- Public Member Functions inherited from osmscout::StyleEnumAttributeDescriptor
void AddEnumValue (const std::string &name, int value)
 
int GetEnumValue (const std::string &name) const
 

Static Public Member Functions

static GeoBox BoxByCenterAndRadius (const GeoCoord &center, double radius)
 
static OSMTileId GetOSMTile (const GeoCoord &coord, const Magnification &magnification)
 
static bool Parse (const std::string &text, GeoCoord &coord)
 Parse a textual representation of a geo coordinate from a string to an GeoCoord instance. More...
 

Public Attributes

std::vector< AreaRefareas
 Areas as retrieved from database. More...
 
double cellHeight
 Height of cell. More...
 
double cellWidth
 Width of cell. More...
 
std::vector< Coordcoords
 Optional coordinates for coastline. More...
 
std::list< GroundTilegroundTiles
 List of ground tiles (optional) More...
 
Id id
 
std::vector< Pointnodes
 List of nodes. More...
 
std::vector< NodeRefnodes
 Nodes as retrieved from database. More...
 
FileOffset offset
 
std::list< AreaRefpoiAreas
 List of manually added areas (not managed or changed by the database) More...
 
std::list< NodeRefpoiNodes
 List of manually added nodes (not managed or changed by the database) More...
 
std::list< WayRefpoiWays
 List of manually added ways (not managed or changed by the database) More...
 
std::vector< Ringrings
 
TagId tagArea
 
TagId tagDataPolygon
 
TagId tagJunction
 
TagId tagNatural
 
TagId tagRestriction
 
TagId tagType
 
OSMRefType type
 
Type type
 The type of the cell. More...
 
RefType type
 
TypeInfoRef typeInfoCoastline
 Internal type for coastlines. More...
 
TypeInfoRef typeInfoIgnore
 
TypeInfoRef typeInfoOSMSubTileBorder
 Internal type for OSM tile borders. More...
 
TypeInfoRef typeInfoOSMTileBorder
 Internal type for OSM tile borders. More...
 
TypeInfoRef typeInfoTileCoast
 Internal type for ground tiles of type "coast". More...
 
TypeInfoRef typeInfoTileLand
 Internal type for ground tiles of type "land". More...
 
TypeInfoRef typeInfoTileSea
 Internal type for ground tiles of type "sea". More...
 
TypeInfoRef typeInfoTileUnknown
 Internal type for ground tiles of type "unknown". More...
 
std::vector< WayRefways
 Ways as retrieved from database. More...
 
uint32_t x
 
size_t xAbs
 Absolute x coordinate of the cell in relation to level and cell size. More...
 
size_t xRel
 X coordinate of cell in relation to cell index of this level. More...
 
uint32_t y
 
size_t yAbs
 Absolute y coordinate of the cell in relation to level and cell size. More...
 
size_t yRel
 Y coordinate of cell in relation to cell index of this level. More...
 

Static Public Attributes

static const char * FILE_TYPES_DAT
 
static const uint8_t masterRingId
 
static const uint32_t MAX_FORMAT_VERSION = FILE_FORMAT_VERSION
 
static const uint32_t MIN_FORMAT_VERSION = FILE_FORMAT_VERSION
 
static const uint8_t outerRingId
 
static const unsigned char typeArea = 1 << 2
 Condition applies to areas. More...
 
static const unsigned char typeNode = 1 << 0
 Condition applies to nodes. More...
 
static const unsigned char typeRelation = 1 << 3
 Condition applies to releations. More...
 
static const unsigned char typeWay = 1 << 1
 Condition applies to ways. More...
 

Friends

OSMSCOUT_API std::ostream & operator<< (std::ostream &stream, const StopClock &clock)
 
OSMSCOUT_API std::ostream & operator<< (std::ostream &stream, const StopClockNano &clock)
 

Additional Inherited Members

- Protected Member Functions inherited from osmscout::StyleDescriptor
void AddAttribute (const StyleAttributeDescriptorRef &attribute)
 
- Protected Member Functions inherited from osmscout::StyleAttributeDescriptor
 StyleAttributeDescriptor (StyleAttributeType type, const std::string &name, int attribute)
 
- Protected Member Functions inherited from osmscout::StyleEnumAttributeDescriptor
 StyleEnumAttributeDescriptor (const std::string &name, int attribute)
 

Detailed Description

Representation of an (complex/multipolygon) area.

Describes a symbol attribute value.

Describes a label attribute value.

Describes a unitless unsigned int attribute value.

Describes a unitless int attribute value.

Describes a unitless array of unsigned double attribute value.

Describes a unitless unsigned double attribute value.

Describes a unitless double attribute value.

Describes a unsigned map size (using 'm' unit) attribute value.

Describes a map size (using 'm' unit) attribute value.

Describes a unsigned display size (using 'mm' unit) attribute value.

Describes a display size (using 'mm' unit) attribute value.

Describes a magnification attribute value.

Describes a color attribute value.

Describes a string attribute value.

Describes a bool attribute value.

Describes a 'VOID' attribute.

This is the data structure holding all to be rendered data.

A bounding box defined by two tile ids that span a rectangular region (in tile coordinate system)

Representation of the x and y coordinate of a OSM tile.

Copy of the StopClock implementation but using a high_resolution timer and by default return nano seconds.

Simple stop clock implementation.

Anonymous geographic rectangular bounding box.

Variant of FeatureReader that is not type set and thus can easier get used in cases where runtime dynamics are required and features are referenced by name and not by type.

The TypeConfig class holds information about object types defined by a database instance.

A FeatureValueBuffer is instantiated by an object and holds information about the type of the object, the features and feature values available for the given object.

Custom data structure to efficiently handle a set of TypeInfoRef.

Detailed information about one object type.

An instantiation of a feature for a certain type.

Result of a routing calculation.

Parameter object for routing calculations.

Start or end position of a rout calculation.

A point is a identifiable (has an id) geo-coordinate.

Three dimensional coordinate (floating point values, negative coordinates possible).

Two dimensional coordinate (floating point values, negative coordinates possible).

Representation of a pixel on a display or a plane.

Comparator to sort ObjectFileRefs strictly by increasing file offset.

Reference to an libosmscout internal object by its type (area, way, node) and by its file offset within its data file.

Reference to an OSM object by its type (Node, Way, Relation) and its OSM object id.

A Intersection is a node, where multiple routeable ways or areas meet.

A single ground tile cell.

Anonymous geographic coordinate.

Central access class to all the individual data files and indexes.

Database instance initialization parameter to influence the behavior of the database instance.

Resolved and enhanced OSM geo coordinate.

Central access class to all the individual data files and indexes of the basemap.

BasemapDatabase instance initialization parameter to influence the behavior of the database instance.

The basemap is a special database holding world-wide information.

A database is mainly initialized with a number of optional but performance relevant parameters.

The Database is opened by passing the directory that contains all database files.

Different OSM nodes with the same coordinate will get a serial number. The serial number normally start with 1 (the next node with the same coordinate will get 2,...).

This way we can 0 as a special flag for nodes without any identity.

The following attributes are currently available: cache sizes.

A database is mainly initialized with a number of optional but performance relevant parameters.

The Database is opened by passing the directory that contains all database files.

The ground tile defines an area of the given type.

If the coords array is empty, the area is the complete cell. If the coords array is not empty it is defining a polygon which is of the given type.

A cell can either have no GroundTile, one GroundTile that fills the complete cell area or multiple GroundTiles that only fill parts of the cell area.

The polygon can consist (partly) of a coastline (Coord.coast=true) or of cell boundary lines (Coord.cell=false).

Coordinates are non-negative, values are decimal.

The following groups attributes are currently available:

  • Switch for showing debug information

    Holds all optional flags and callback objects that can be passed to the router

    This object is always returned. In case of an routing error it however may not contain a valid route (route is empty).

: Make setter private and class friend to the RoutingService

See Also
TypeConfig

All operations on the set are O(1) using the fact, that TypeInfo internally have a continuously running index variable (Set may be slower if the internal array was not preinitialized to it maximum size by passing a TypeConfig or another TypeInfoSet in the constructor.

The bounding box is defined by two coordinates (type GeoCoord) that span a (in coordinate space) rectangular area.

Note
that OSM tile coordinates are only unique in content fo the zoom level of the tile. Because in most cases the zoom level beeing redundant we have defined OSMTile without the zoom level to save in memory space.

This attribute type is only used internally.

Member Enumeration Documentation

Enumerator
unknown 
land 
water 
coast 
Allow 
Forbit 
Enumerator
unknown 
land 
water 
coast 
Allow 
Forbit 

Constructor & Destructor Documentation

virtual osmscout::CLASS_FINAL::~BasemapDatabase ( )
virtual
virtual osmscout::CLASS_FINAL::~Database ( )
virtual
virtual osmscout::CLASS_FINAL::~Intersection ( )
virtual
virtual osmscout::CLASS_FINAL::~TypeInfo ( )
virtual
virtual osmscout::CLASS_FINAL::~FeatureValueBuffer ( )
virtual
virtual osmscout::CLASS_FINAL::~TypeConfig ( )
virtual

Member Function Documentation

void osmscout::CLASS_FINAL::Adapt ( const TypeConfig typeConfig)
GeoCoord osmscout::CLASS_FINAL::Add ( double  bearing,
double  distance 
)

Get coordinate of position + course and distance.

Parameters
bearingTarget course in degree
distanceTarget distance in meters
Returns
Target coordinates
Note
The difference in height between the two points is neglected.
void osmscout::CLASS_FINAL::Add ( const TypeInfoSet types)
TypeInfo& osmscout::CLASS_FINAL::AddCondition ( unsigned char  types,
const TagConditionRef condition 
)
TypeInfo& osmscout::CLASS_FINAL::AddDescription ( const std::string &  languageCode,
const std::string &  description 
)
TypeInfo& osmscout::CLASS_FINAL::AddFeature ( const FeatureRef feature)

Add a feature to this type.

TypeInfo& osmscout::CLASS_FINAL::AddGroup ( const std::string &  groupName)

Add a categorizing group name to the type.

FeatureValue* osmscout::CLASS_FINAL::AllocateValue ( size_t  idx)
osmscout::CLASS_FINAL::Area ( )
inline
osmscout::CLASS_FINAL::BasemapDatabase ( const BasemapDatabaseParameter parameter)
osmscout::CLASS_FINAL::BasemapDatabaseParameter ( )
OSMTileIdBoxConstIterator osmscout::CLASS_FINAL::begin ( ) const
inline
TypeInfoSetConstIterator osmscout::CLASS_FINAL::begin ( ) const
inline
static GeoBox osmscout::CLASS_FINAL::BoxByCenterAndRadius ( const GeoCoord center,
double  radius 
)
static
TypeInfo& osmscout::CLASS_FINAL::CanBeArea ( bool  canBeArea)
inline

If set to 'true', an area can be of this type.

bool osmscout::CLASS_FINAL::CanBeArea ( ) const
inline
TypeInfo& osmscout::CLASS_FINAL::CanBeNode ( bool  canBeNode)
inline

If set to 'true', a node can be of this type.

bool osmscout::CLASS_FINAL::CanBeNode ( ) const
inline
TypeInfo& osmscout::CLASS_FINAL::CanBeRelation ( bool  canBeRelation)
inline

If set to 'true', a relation can be of this type.

bool osmscout::CLASS_FINAL::CanBeRelation ( ) const
inline
TypeInfo& osmscout::CLASS_FINAL::CanBeWay ( bool  canBeWay)
inline

If set to 'true', a way can be of this type.

bool osmscout::CLASS_FINAL::CanBeWay ( ) const
inline
bool osmscout::CLASS_FINAL::CanRoute ( ) const
inline
bool osmscout::CLASS_FINAL::CanRoute ( Vehicle  vehicle) const
inline

If set to 'true', an object of this type can be traveled by the given vehicle by default.

References osmscout::vehicleBicycle, osmscout::vehicleCar, and osmscout::vehicleFoot.

TypeInfo& osmscout::CLASS_FINAL::CanRouteBicycle ( bool  canBeRoute)
inline
bool osmscout::CLASS_FINAL::CanRouteBicycle ( ) const
inline
TypeInfo& osmscout::CLASS_FINAL::CanRouteCar ( bool  canBeRoute)
inline

If set to 'true', an object of this type can be traveled by car by default.

bool osmscout::CLASS_FINAL::CanRouteCar ( ) const
inline
TypeInfo& osmscout::CLASS_FINAL::CanRouteFoot ( bool  canBeRoute)
inline

If set to 'true', an object of this type can be traveled by feet by default.

bool osmscout::CLASS_FINAL::CanRouteFoot ( ) const
inline
osmscout::CLASS_FINAL::CapStyleEnumAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
void osmscout::CLASS_FINAL::Clear ( )
inline
void osmscout::CLASS_FINAL::ClearDBData ( )
void osmscout::CLASS_FINAL::ClearFeatureValues ( )

Clears all feature buffer values.

void osmscout::CLASS_FINAL::ClearSerial ( )
inline
void osmscout::CLASS_FINAL::Close ( )
void osmscout::CLASS_FINAL::Close ( )

The default constructor.

osmscout::CLASS_FINAL::Coord ( uint8_t  serial,
const GeoCoord coord 
)
inline
void osmscout::CLASS_FINAL::CopyMissingValues ( const FeatureValueBuffer other)

Maintains the current values and types and copies over all not already set feature values of the passed instance to the current instance.

Both FeatureValueBuffers do not have to have the same type. Copying is a based on best effort. The copy opperation is expensive.

Parameters
otherinstance to copy missing values from.
Note
Untested!
osmscout::CLASS_FINAL::Database ( const DatabaseParameter parameter)
osmscout::CLASS_FINAL::DatabaseParameter ( )
void osmscout::CLASS_FINAL::DecodeFromBuffer ( const unsigned char  buffer[])
inline

Decode the coordinate value from a buffer (with at least a size of coordByteSize).

References osmscout::latConversionFactor, and osmscout::lonConversionFactor.

void osmscout::CLASS_FINAL::DumpStatistics ( )
osmscout::CLASS_FINAL::DynamicFeatureReader ( const TypeConfig typeConfig,
const Feature feature 
)
bool osmscout::CLASS_FINAL::Empty ( ) const
inline
void osmscout::CLASS_FINAL::EncodeToBuffer ( unsigned char  buffer[]) const
inline

Encode the coordinate value into a buffer (with at least a size of coordByteSize).

References osmscout::latConversionFactor, and osmscout::lonConversionFactor.

OSMTileIdBoxConstIterator osmscout::CLASS_FINAL::end ( ) const
inline
TypeInfoSetConstIterator osmscout::CLASS_FINAL::end ( ) const
inline
osmscout::CLASS_FINAL::FeatureInstance ( )
osmscout::CLASS_FINAL::FeatureInstance ( const FeatureRef feature,
const TypeInfo *  type,
size_t  featureBit,
size_t  index,
size_t  offset 
)
osmscout::CLASS_FINAL::FeatureValueBuffer ( )
osmscout::CLASS_FINAL::FeatureValueBuffer ( const FeatureValueBuffer &  other)
osmscout::CLASS_FINAL::FillStyleDescriptor ( )
inline
template<class T >
const T* osmscout::CLASS_FINAL::findValue ( ) const
inline
void osmscout::CLASS_FINAL::FreeValue ( size_t  idx)
osmscout::CLASS_FINAL::GeoBox ( )

The default constructor creates an invalid instance.

osmscout::CLASS_FINAL::GeoBox ( const GeoBox &  other)
inline

Copy-Constructor.

osmscout::CLASS_FINAL::GeoBox ( const GeoCoord coordA,
const GeoCoord coordB 
)

Initialize the GeoBox based on the given coordinates.

The two Coordinates together span a rectangular (in coordinates, not on the sphere) area.

osmscout::CLASS_FINAL::GeoCoord ( )
inline

The default constructor creates an uninitialized instance (for performance reasons).

osmscout::CLASS_FINAL::GeoCoord ( double  lat,
double  lon 
)
inline

Initialize the coordinate with the given latitude and longitude values.

AreaAreaIndexRef osmscout::CLASS_FINAL::GetAreaAreaIndex ( ) const
unsigned long osmscout::CLASS_FINAL::GetAreaAreaIndexCacheSize ( ) const
bool osmscout::CLASS_FINAL::GetAreaByOffset ( const FileOffset offset,
AreaRef area 
) const
unsigned long osmscout::CLASS_FINAL::GetAreaDataCacheSize ( ) const
AreaDataFileRef osmscout::CLASS_FINAL::GetAreaDataFile ( ) const
TypeId osmscout::CLASS_FINAL::GetAreaId ( ) const
inline

Returns the unique id of this type.

You should not use the type id as an index.

AreaNodeIndexRef osmscout::CLASS_FINAL::GetAreaNodeIndex ( ) const
bool osmscout::CLASS_FINAL::GetAreasByBlockSpan ( const DataBlockSpan span,
std::vector< AreaRef > &  area 
) const
bool osmscout::CLASS_FINAL::GetAreasByBlockSpans ( const std::vector< DataBlockSpan > &  spans,
std::vector< AreaRef > &  areas 
) const
bool osmscout::CLASS_FINAL::GetAreasByOffset ( const std::vector< FileOffset > &  offsets,
std::vector< AreaRef > &  areas 
) const
bool osmscout::CLASS_FINAL::GetAreasByOffset ( const std::set< FileOffset > &  offsets,
std::vector< AreaRef > &  areas 
) const
bool osmscout::CLASS_FINAL::GetAreasByOffset ( const std::list< FileOffset > &  offsets,
std::vector< AreaRef > &  areas 
) const
bool osmscout::CLASS_FINAL::GetAreasByOffset ( const std::set< FileOffset > &  offsets,
std::unordered_map< FileOffset, AreaRef > &  dataMap 
) const
bool osmscout::CLASS_FINAL::GetAreasDataMMap ( ) const
uint8_t osmscout::CLASS_FINAL::GetAreaTypeIdBits ( ) const
inline
uint8_t osmscout::CLASS_FINAL::GetAreaTypeIdBytes ( ) const
inline
const TypeInfoRef osmscout::CLASS_FINAL::GetAreaTypeInfo ( TypeId  id) const
inline

Returns the type definition for the given type id.

References osmscout::typeIgnore.

const std::vector<TypeInfoRef>& osmscout::CLASS_FINAL::GetAreaTypes ( ) const
inline

Returns an array of the (ignore=false) area types available.

AreaWayIndexRef osmscout::CLASS_FINAL::GetAreaWayIndex ( ) const
Id osmscout::CLASS_FINAL::GetBackId ( ) const
inline
GeoBox osmscout::CLASS_FINAL::GetBoundingBox ( const Magnification magnification) const
void osmscout::CLASS_FINAL::GetBoundingBox ( GeoBox boundingBox) const
inline
bool osmscout::CLASS_FINAL::GetBoundingBox ( GeoBox boundingBox) const
void osmscout::CLASS_FINAL::GetBoundingBox ( GeoBox boundingBox) const
GeoBox osmscout::CLASS_FINAL::GetBoundingBox ( const Magnification magnification) const
BoundingBoxDataFileRef osmscout::CLASS_FINAL::GetBoundingBoxDataFile ( ) const
BreakerRef osmscout::CLASS_FINAL::GetBreaker ( ) const
inline
bool osmscout::CLASS_FINAL::GetCenter ( GeoCoord center) const
GeoCoord osmscout::CLASS_FINAL::GetCenter ( ) const
bool osmscout::CLASS_FINAL::GetCenter ( GeoCoord center) const
const std::list<TypeCondition>& osmscout::CLASS_FINAL::GetConditions ( ) const
inline

Returns the list of conditions for the given type.

const GeoCoord& osmscout::CLASS_FINAL::GetCoord ( ) const
inline
const GeoCoord& osmscout::CLASS_FINAL::GetCoord ( ) const
inline
const GeoCoord& osmscout::CLASS_FINAL::GetCoord ( size_t  index) const
inline
const GeoCoord& osmscout::CLASS_FINAL::GetCoords ( ) const
inline
uint32_t osmscout::CLASS_FINAL::GetCount ( ) const
inline
double osmscout::CLASS_FINAL::GetCurrentMaxDistance ( ) const
inline
uint8_t osmscout::CLASS_FINAL::GetDefaultAccess ( ) const
std::string osmscout::CLASS_FINAL::GetDescription ( const std::string &  languageCode) const
const std::unordered_map<std::string,std::string>& osmscout::CLASS_FINAL::GetDescriptions ( ) const
inline
std::string osmscout::CLASS_FINAL::GetDisplayText ( ) const
inline
std::string osmscout::CLASS_FINAL::GetDisplayText ( ) const

Return a string representation of the coordinate value in a human readable format.

std::string osmscout::CLASS_FINAL::GetDisplayText ( ) const
inline
std::string osmscout::CLASS_FINAL::GetDisplayText ( ) const

Return a string representation of the coordinate value in a human readable format.

double osmscout::CLASS_FINAL::GetDistance ( GeoCoord  target) const

Get distance between two coordinates.

Parameters
targetTarget coordinate to measure distance
Returns
Point to point distance to target coordinates in kilometers
Note
The difference in height between the two points is neglected.
const FeatureInstance& osmscout::CLASS_FINAL::GetFeature ( size_t  idx) const
inline
const FeatureInstance& osmscout::CLASS_FINAL::GetFeature ( size_t  idx) const
inline
FeatureRef osmscout::CLASS_FINAL::GetFeature ( ) const
inline

Return the feature itself.

bool osmscout::CLASS_FINAL::GetFeature ( const std::string &  name,
size_t &  index 
) const

Return the feature with the given name.

const FeatureInstance& osmscout::CLASS_FINAL::GetFeature ( size_t  idx) const
inline

Return the feature at the given index.

FeatureInstance osmscout::CLASS_FINAL::GetFeature ( size_t  idx) const
inline

Get a feature description for the feature with the given index ([0..featureCount[)

FeatureRef osmscout::CLASS_FINAL::GetFeature ( const std::string &  name) const

Return the feature with the given name or an invalid reference if no feature with the given name is registered.

size_t osmscout::CLASS_FINAL::GetFeatureBit ( ) const
inline

return the index of this feature within the list of features of the type.

size_t osmscout::CLASS_FINAL::GetFeatureCount ( ) const
inline
size_t osmscout::CLASS_FINAL::GetFeatureCount ( ) const
inline
size_t osmscout::CLASS_FINAL::GetFeatureCount ( ) const
inline

Returns the number of features of the asisgned type.

size_t osmscout::CLASS_FINAL::GetFeatureCount ( ) const
inline

Return the numbe rof features defined for this type.

size_t osmscout::CLASS_FINAL::GetFeatureMaskBytes ( ) const
inline

Returns the (rounded) number of bytes required for storing the feature mask.

std::string osmscout::CLASS_FINAL::GetFeatureName ( ) const
inline
const std::vector<FeatureInstance>& osmscout::CLASS_FINAL::GetFeatures ( ) const
inline

Return the list of features assigned to this type.

const std::vector<FeatureRef>& osmscout::CLASS_FINAL::GetFeatures ( ) const
inline

Return all features registered.

FeatureValue* osmscout::CLASS_FINAL::GetFeatureValue ( size_t  idx) const
inline
FeatureValue* osmscout::CLASS_FINAL::GetFeatureValue ( size_t  idx) const
inline
const FeatureValueBuffer& osmscout::CLASS_FINAL::GetFeatureValueBuffer ( ) const
inline
const FeatureValueBuffer& osmscout::CLASS_FINAL::GetFeatureValueBuffer ( ) const
inline
const FeatureValueBuffer& osmscout::CLASS_FINAL::GetFeatureValueBuffer ( ) const
inline
size_t osmscout::CLASS_FINAL::GetFeatureValueBufferSize ( ) const
inline

Returns the size of the buffer required to store all FeatureValues of this type into.

FileOffset osmscout::CLASS_FINAL::GetFileOffset ( ) const
inline
FileOffset osmscout::CLASS_FINAL::GetFileOffset ( ) const
inline
const FileOffset& osmscout::CLASS_FINAL::GetFileOffset ( ) const
inline
FileOffset osmscout::CLASS_FINAL::GetFileOffset ( ) const
inline
OSMId osmscout::CLASS_FINAL::GetFrom ( ) const
inline
Id osmscout::CLASS_FINAL::GetFrontId ( ) const
inline
bool osmscout::CLASS_FINAL::GetGradeForSurface ( const std::string &  surface,
size_t &  grade 
) const
const std::unordered_set<std::string>& osmscout::CLASS_FINAL::GetGroups ( ) const
inline

Return the set of groups the type is in.

Id osmscout::CLASS_FINAL::GetHash ( ) const

Encode the coordinate value into a number (the number has hash character).

Id osmscout::CLASS_FINAL::GetHash ( ) const
inline

Encode the coordinate value into a number (the number has hash character).

References osmscout::latConversionFactor, and osmscout::lonConversionFactor.

uint32_t osmscout::CLASS_FINAL::GetHeight ( ) const
inline
double osmscout::CLASS_FINAL::GetHeight ( ) const
inline

Returns the height of the bounding box (maxLat-minLat).

Id osmscout::CLASS_FINAL::GetId ( ) const
inline
uint64_t osmscout::CLASS_FINAL::GetId ( ) const
inline

Returns a unique number based on the coordinates of the pixel.

The bits of the coordinates are projected onto one number by interleaving the bits of the coordinates. Coordinates close in 2D space are thus likely clos ein one dimensional space, too.

References osmscout::InterleaveNumbers().

const Id& osmscout::CLASS_FINAL::GetId ( ) const
inline
Id osmscout::CLASS_FINAL::GetId ( ) const

Returns a fast calculable unique id for the coordinate under consideration that different OSM nodes with the same coordinate will have different ids if the identity of the node is important - else the serial id will be 0.

The id does not have any semantics regarding sorting. Coordinates with close ids do not need to be close in location.

Id osmscout::CLASS_FINAL::GetId ( size_t  index) const
inline
Id osmscout::CLASS_FINAL::GetId ( ) const

Returns a fast calculable unique id for the coordinate.

Coordinates with have the same latitude and longitude value in the supported resolution wil have the same id.

The id does not have any semantics regarding sorting. Coordinates with close ids do not need to be close in location.

bool osmscout::CLASS_FINAL::GetIgnore ( ) const
inline
bool osmscout::CLASS_FINAL::GetIgnoreSeaLand ( ) const
inline
size_t osmscout::CLASS_FINAL::GetIndex ( ) const
inline

return the index of this feature within the list of features of the type.

size_t osmscout::CLASS_FINAL::GetIndex ( ) const
inline

Returns the index of this type.

The index is assured to in the interval [0..GetTypeCount()[

bool osmscout::CLASS_FINAL::GetIndexAsAddress ( ) const
inline
bool osmscout::CLASS_FINAL::GetIndexAsLocation ( ) const
inline
bool osmscout::CLASS_FINAL::GetIndexAsPOI ( ) const
inline
bool osmscout::CLASS_FINAL::GetIndexAsRegion ( ) const
inline
double osmscout::CLASS_FINAL::GetLat ( ) const
inline

Return the latitude value of the coordinate.

double osmscout::CLASS_FINAL::GetLat ( ) const
inline
LocationIndexRef osmscout::CLASS_FINAL::GetLocationIndex ( ) const
double osmscout::CLASS_FINAL::GetLon ( ) const
inline
double osmscout::CLASS_FINAL::GetLon ( ) const
inline

Return the latitude value of the coordinate.

OSMTileId osmscout::CLASS_FINAL::GetMax ( ) const
inline
GeoCoord osmscout::CLASS_FINAL::GetMaxCoord ( ) const
inline

Return the coordinate with the maximum value for the lat/lon values of the area.

double osmscout::CLASS_FINAL::GetMaxLat ( ) const
inline

Return the maximum latitude of the GeBox.

double osmscout::CLASS_FINAL::GetMaxLon ( ) const
inline

Return the maximum longitude of the GeBox.

bool osmscout::CLASS_FINAL::GetMaxSpeedFromAlias ( const std::string &  alias,
uint8_t &  maxSpeed 
) const
TypeId osmscout::CLASS_FINAL::GetMaxTypeId ( ) const

Return the highest used type id.

uint32_t osmscout::CLASS_FINAL::GetMaxX ( ) const
inline
uint32_t osmscout::CLASS_FINAL::GetMaxY ( ) const
inline
bool osmscout::CLASS_FINAL::GetMergeAreas ( ) const
inline
double osmscout::CLASS_FINAL::GetMilliseconds ( ) const
OSMTileId osmscout::CLASS_FINAL::GetMin ( ) const
inline
GeoCoord osmscout::CLASS_FINAL::GetMinCoord ( ) const
inline

Return the coordinate with the minimum value for the lat/lon values of the area.

double osmscout::CLASS_FINAL::GetMinLat ( ) const
inline

Return the minimum latitude of the GeBox.

double osmscout::CLASS_FINAL::GetMinLon ( ) const
inline

Return the minimum longitude of the GeBox.

uint32_t osmscout::CLASS_FINAL::GetMinX ( ) const
inline
uint32_t osmscout::CLASS_FINAL::GetMinY ( ) const
inline
bool osmscout::CLASS_FINAL::GetMultipolygon ( ) const
inline
std::string osmscout::CLASS_FINAL::GetName ( ) const
std::string osmscout::CLASS_FINAL::GetName ( ) const
std::string osmscout::CLASS_FINAL::GetName ( ) const
inline

The name of the given type.

double osmscout::CLASS_FINAL::GetNanoseconds ( ) const
FileOffset osmscout::CLASS_FINAL::GetNextFileOffset ( ) const
inline
FileOffset osmscout::CLASS_FINAL::GetNextFileOffset ( ) const
inline
FileOffset osmscout::CLASS_FINAL::GetNextFileOffset ( ) const
inline
bool osmscout::CLASS_FINAL::GetNodeByOffset ( const FileOffset offset,
NodeRef node 
) const
unsigned long osmscout::CLASS_FINAL::GetNodeDataCacheSize ( ) const
NodeDataFileRef osmscout::CLASS_FINAL::GetNodeDataFile ( ) const
TypeId osmscout::CLASS_FINAL::GetNodeId ( ) const
inline

Returns the unique id of this type.

You should not use the type id as an index.

size_t osmscout::CLASS_FINAL::GetNodeIndex ( ) const
inline
bool osmscout::CLASS_FINAL::GetNodeIndexByNodeId ( Id  id,
size_t &  index 
) const
bool osmscout::CLASS_FINAL::GetNodesByOffset ( const std::vector< FileOffset > &  offsets,
std::vector< NodeRef > &  nodes 
) const
bool osmscout::CLASS_FINAL::GetNodesByOffset ( const std::vector< FileOffset > &  offsets,
const GeoBox boundingBox,
std::vector< NodeRef > &  nodes 
) const
bool osmscout::CLASS_FINAL::GetNodesByOffset ( const std::set< FileOffset > &  offsets,
std::vector< NodeRef > &  nodes 
) const
bool osmscout::CLASS_FINAL::GetNodesByOffset ( const std::list< FileOffset > &  offsets,
std::vector< NodeRef > &  nodes 
) const
bool osmscout::CLASS_FINAL::GetNodesByOffset ( const std::set< FileOffset > &  offsets,
std::unordered_map< FileOffset, NodeRef > &  dataMap 
) const
bool osmscout::CLASS_FINAL::GetNodesDataMMap ( ) const
TypeInfoRef osmscout::CLASS_FINAL::GetNodeType ( const TagMap tagMap) const

Return a node type (or an invalid reference if no type got detected) based on the given map of tag and tag values.

The method iterates over all node type definitions, evaluates their conditions and returns the first matching type.

uint8_t osmscout::CLASS_FINAL::GetNodeTypeIdBytes ( ) const
inline
const TypeInfoRef osmscout::CLASS_FINAL::GetNodeTypeInfo ( TypeId  id) const
inline

Returns the type definition for the given type id.

References osmscout::typeIgnore.

const std::vector<TypeInfoRef>& osmscout::CLASS_FINAL::GetNodeTypes ( ) const
inline

Returns an array of the (ignore=false) node types available.

ObjectFileRef osmscout::CLASS_FINAL::GetObjectFileRef ( ) const
inline

References osmscout::refNode.

ObjectFileRef osmscout::CLASS_FINAL::GetObjectFileRef ( ) const
inline

References osmscout::refWay.

ObjectFileRef osmscout::CLASS_FINAL::GetObjectFileRef ( ) const
inline
ObjectFileRef osmscout::CLASS_FINAL::GetObjectFileRef ( ) const
inline

References osmscout::refArea.

const std::vector<ObjectFileRef>& osmscout::CLASS_FINAL::GetObjects ( ) const
inline
size_t osmscout::CLASS_FINAL::GetOffset ( ) const
inline

Return the file offset within the feature value buffer for the value of this feature.

OptimizeAreasLowZoomRef osmscout::CLASS_FINAL::GetOptimizeAreasLowZoom ( ) const
bool osmscout::CLASS_FINAL::GetOptimizeLowZoom ( ) const
inline
OptimizeWaysLowZoomRef osmscout::CLASS_FINAL::GetOptimizeWaysLowZoom ( ) const
Id osmscout::CLASS_FINAL::GetOSMScoutId ( ) const

Returns a fast calculable unique id for the coordinate.

Coordinates with have the same latitude and longitude value in the supported resolution wil have the same id.

The id does not have any semantics regarding sorting. Coordinates with close ids do not need to be close in location.

static OSMTileId osmscout::CLASS_FINAL::GetOSMTile ( const GeoCoord coord,
const Magnification magnification 
)
static
double osmscout::CLASS_FINAL::GetOverallDistance ( ) const
inline
std::string osmscout::CLASS_FINAL::GetPath ( ) const
std::string osmscout::CLASS_FINAL::GetPath ( ) const
bool osmscout::CLASS_FINAL::GetPinWay ( ) const
inline
const Point& osmscout::CLASS_FINAL::GetPoint ( size_t  index) const
inline
RoutingProgressRef osmscout::CLASS_FINAL::GetProgress ( ) const
inline
TypeInfoRef osmscout::CLASS_FINAL::GetRelationType ( const TagMap tagMap) const

Return a relation type (or an invalid reference if no type got detected) based on the given map of tag and tag values.

The method iterates over all relation type definitions, evaluates their conditions and returns the first matching type.

RouteData& osmscout::CLASS_FINAL::GetRoute ( )
inline
const RouteData& osmscout::CLASS_FINAL::GetRoute ( ) const
inline
bool osmscout::CLASS_FINAL::GetRouterDataMMap ( ) const
bool osmscout::CLASS_FINAL::GetRouterDataMMap ( ) const
inline
uint8_t osmscout::CLASS_FINAL::GetSerial ( ) const
inline
uint8_t osmscout::CLASS_FINAL::GetSerial ( ) const
inline
Id osmscout::CLASS_FINAL::GetSerial ( size_t  index) const
inline
double osmscout::CLASS_FINAL::GetSize ( ) const
inline

Returns the size of the bounding box (width*height).

Returns
GetWidth()*GetHeight()
size_t osmscout::CLASS_FINAL::GetSpecialFeatureMaskBytes ( ) const
inline

Returns the (rounded) number of bytes required for storing the feature mask and one additional general purpose signal byte.

TagId osmscout::CLASS_FINAL::GetTagId ( const char *  name) const
TagId osmscout::CLASS_FINAL::GetTagId ( const std::string &  name) const
OSMId osmscout::CLASS_FINAL::GetTo ( ) const
inline
GeoCoord osmscout::CLASS_FINAL::GetTopLeftCoord ( const Magnification magnification) const
Type osmscout::CLASS_FINAL::GetType ( ) const
inline
TypeInfoRef osmscout::CLASS_FINAL::GetType ( ) const
inline
TypeInfoRef osmscout::CLASS_FINAL::GetType ( ) const
inline
const OSMRefType& osmscout::CLASS_FINAL::GetType ( ) const
inline
const RefType& osmscout::CLASS_FINAL::GetType ( ) const
inline
TypeInfoRef osmscout::CLASS_FINAL::GetType ( ) const
inline
const TypeInfo* osmscout::CLASS_FINAL::GetType ( ) const
inline

Return a pointer back tot he type we are assigned to.

TypeInfoRef osmscout::CLASS_FINAL::GetType ( ) const
inline
TypeConfigRef osmscout::CLASS_FINAL::GetTypeConfig ( ) const
size_t osmscout::CLASS_FINAL::GetTypeCount ( ) const
inline

Returns the number of types available.

The index of a type is guaranteed to be in the interval [0..GetTypeCount()[

const TypeInfoRef osmscout::CLASS_FINAL::GetTypeInfo ( size_t  index) const
inline

Returns the type definition for the given type id.

const TypeInfoRef osmscout::CLASS_FINAL::GetTypeInfo ( const std::string &  name) const

Returns the type definition for the given type name.

If there is no type definition for the given name and invalid reference is returned.

const char* osmscout::CLASS_FINAL::GetTypeName ( ) const
const char* osmscout::CLASS_FINAL::GetTypeName ( ) const
const std::vector<TypeInfoRef>& osmscout::CLASS_FINAL::GetTypes ( ) const
inline

Return an array of the types available.

FeatureValue* osmscout::CLASS_FINAL::GetValue ( size_t  idx) const
inline

Return a raw pointer to the value (as reserved in the internal featureValueBuffer)

Note: Can return NULL value! HasFeature(idx) && GetFeature(idx).GetFeature()->HasValue() should be called before accessing the value.

OSMId osmscout::CLASS_FINAL::GetVia ( ) const
inline
WaterIndexRef osmscout::CLASS_FINAL::GetWaterIndex ( ) const
WaterIndexRef osmscout::CLASS_FINAL::GetWaterIndex ( ) const
bool osmscout::CLASS_FINAL::GetWayAreaType ( const TagMap tagMap,
TypeInfoRef wayType,
TypeInfoRef areaType 
) const

Return a way/area type (or an invalid reference if no type got detected) based on the given map of tag and tag values.

The method iterates over all way/area type definitions, evaluates their conditions and returns the first matching type.

bool osmscout::CLASS_FINAL::GetWayByOffset ( const FileOffset offset,
WayRef way 
) const
unsigned long osmscout::CLASS_FINAL::GetWayDataCacheSize ( ) const
WayDataFileRef osmscout::CLASS_FINAL::GetWayDataFile ( ) const
TypeId osmscout::CLASS_FINAL::GetWayId ( ) const
inline

Returns the unique id of this type.

You should not use the type id as an index.

bool osmscout::CLASS_FINAL::GetWaysByOffset ( const std::vector< FileOffset > &  offsets,
std::vector< WayRef > &  ways 
) const
bool osmscout::CLASS_FINAL::GetWaysByOffset ( const std::set< FileOffset > &  offsets,
std::vector< WayRef > &  ways 
) const
bool osmscout::CLASS_FINAL::GetWaysByOffset ( const std::list< FileOffset > &  offsets,
std::vector< WayRef > &  ways 
) const
bool osmscout::CLASS_FINAL::GetWaysByOffset ( const std::set< FileOffset > &  offsets,
std::unordered_map< FileOffset, WayRef > &  dataMap 
) const
bool osmscout::CLASS_FINAL::GetWaysDataMMap ( ) const
uint8_t osmscout::CLASS_FINAL::GetWayTypeIdBytes ( ) const
inline
const TypeInfoRef osmscout::CLASS_FINAL::GetWayTypeInfo ( TypeId  id) const
inline

Returns the type definition for the given type id.

References osmscout::typeIgnore.

const std::vector<TypeInfoRef>& osmscout::CLASS_FINAL::GetWayTypes ( ) const
inline

Returns an array of (ignore=false) the way types available.

uint32_t osmscout::CLASS_FINAL::GetWidth ( ) const
inline
double osmscout::CLASS_FINAL::GetWidth ( ) const
inline

Returns the width of the bounding box (maxLon-minLon).

uint32_t osmscout::CLASS_FINAL::GetX ( ) const
inline
double osmscout::CLASS_FINAL::GetX ( ) const
inline
double osmscout::CLASS_FINAL::GetX ( ) const
inline
uint32_t osmscout::CLASS_FINAL::GetY ( ) const
inline
double osmscout::CLASS_FINAL::GetY ( ) const
inline
double osmscout::CLASS_FINAL::GetY ( ) const
inline
double osmscout::CLASS_FINAL::GetZ ( ) const
inline
osmscout::CLASS_FINAL::GroundTile ( )
inline
osmscout::CLASS_FINAL::GroundTile ( Type  type)
inline
bool osmscout::CLASS_FINAL::HasConditions ( ) const
inline

Returns true, if there are any conditions bound to the type.

If the conditions are met for a given object, the object is in turn of the given type. to

bool osmscout::CLASS_FINAL::HasFeature ( size_t  idx) const
inline
bool osmscout::CLASS_FINAL::HasFeature ( size_t  idx) const
inline
bool osmscout::CLASS_FINAL::HasFeature ( const std::string &  featureName) const

Returns true, if the feature with the given name has already been assigned to this type.

bool osmscout::CLASS_FINAL::HasFeature ( size_t  idx) const
inline

Return true, if the given feature is set (available), else false.

bool osmscout::CLASS_FINAL::HasFeatures ( )
inline
osmscout::CLASS_FINAL::IconStyleDescriptor ( )
inline
void osmscout::CLASS_FINAL::Include ( const GeoBox other)

Resize the bounding box to include the original bounding box and the given bounding box.

template<typename P >
bool osmscout::CLASS_FINAL::Includes ( const P &  coord,
bool  openInterval = true 
) const
inline

Returns 'true' if coordinate is within the bounding box.

Parameters
otherGeoCoord to check for inclusion
openIntervalIf true, an open interval for the GeoBox is assumed else a closed interval.
Returns
True, if there is intersection, else false.
osmscout::CLASS_FINAL::Intersection ( )
GeoBox osmscout::CLASS_FINAL::Intersection ( const GeoBox other) const

Create new GeoBox from intersection of this with other If not Intersects, invalid GeoBox is returned.

Parameters
other
void osmscout::CLASS_FINAL::Intersection ( const TypeInfoSet otherTypes)
bool osmscout::CLASS_FINAL::Intersects ( const GeoBox boundingBox) const
inline

Returns true if the nodes is in the given bounding box.

Parameters
boundingBoxbounding box to test for intersection
Returns
true on intersection, else false
bool osmscout::CLASS_FINAL::Intersects ( const GeoBox other,
bool  openInterval = true 
) const
inline

Returns true, if both GeoBox instances intersect with each other.

Parameters
otherOther instance to compare against
openIntervalIf true, an open interval for this GeoBox is assumed else a closed interval.
Returns
True, if there is intersection, else false.
bool osmscout::CLASS_FINAL::Intersects ( const GeoBox boundingBox) const
inline

Returns true if the bounding box of the object intersects the given bounding box.

Parameters
boundingBoxbounding box to test for intersection
Returns
true on intersection, else false

References osmscout::GetBoundingBox().

bool osmscout::CLASS_FINAL::Intersects ( const GeoBox boundingBox) const
inline

Returns true if the bounding box of the object intersects the given bounding box.

Parameters
boundingBoxbounding box to test for intersection
Returns
true on intersection, else false

References osmscout::GetBoundingBox().

bool osmscout::CLASS_FINAL::Intersects ( const TypeInfoSet otherTypes) const
bool osmscout::CLASS_FINAL::Invalid ( ) const
inline

References osmscout::osmRefNone.

bool osmscout::CLASS_FINAL::Invalid ( ) const
inline

References osmscout::refNone.

void osmscout::CLASS_FINAL::Invalidate ( )
inline

References osmscout::osmRefNone.

void osmscout::CLASS_FINAL::Invalidate ( )
inline

Invalidate the bounding Box.

void osmscout::CLASS_FINAL::Invalidate ( )
inline

References osmscout::refNone.

bool osmscout::CLASS_FINAL::IsCircular ( ) const
inline
bool osmscout::CLASS_FINAL::IsDebugPerformance ( ) const
bool osmscout::CLASS_FINAL::IsEqual ( const Point other) const
inline

Same semantics as IsSame(), implement for template compability with GeoCoord.

Parameters
otherOther point to compare against
Returns
true if same location, else false
bool osmscout::CLASS_FINAL::IsEqual ( const GeoCoord other) const
inline

Return true if both coordinates are equal (using == operator)

bool osmscout::CLASS_FINAL::IsIdentical ( const Point other) const
inline

Compare this and the other point for identity.

Identity is defined as have the same coordinates and the same serial id per coordinate.

Parameters
otherOther point to compare against
Returns
true if identical, else false
bool osmscout::CLASS_FINAL::IsInGroup ( const std::string &  groupName) const
inline
bool osmscout::CLASS_FINAL::IsInternal ( ) const
inline

Return true, if this is a internal type, else false.

bool osmscout::CLASS_FINAL::IsNameAltTag ( TagId  tag,
uint32_t &  priority 
) const
bool osmscout::CLASS_FINAL::IsNameTag ( TagId  tag,
uint32_t &  priority 
) const
bool osmscout::CLASS_FINAL::IsOpen ( ) const
bool osmscout::CLASS_FINAL::IsOpen ( ) const
bool osmscout::CLASS_FINAL::IsPath ( ) const
inline
bool osmscout::CLASS_FINAL::IsRelevant ( ) const
inline
bool osmscout::CLASS_FINAL::IsSame ( const Point other) const
inline

Compare this and the other point for "sameness".

Sameness is defined as having the same coordinate but not necessarily the same serial id. This means, that both points have the same location but are not necessarily identical.

Parameters
otherOther point to compare against
Returns
true if same location, else false
bool osmscout::CLASS_FINAL::IsSet ( const TypeInfoRef type) const
inline
bool osmscout::CLASS_FINAL::IsSet ( const FeatureValueBuffer buffer) const
bool osmscout::CLASS_FINAL::IsSimple ( ) const
inline
bool osmscout::CLASS_FINAL::IsValid ( ) const
inline
bool osmscout::CLASS_FINAL::IsValid ( ) const
inline

Returns true, if the GeoBox instance is valid.

This means there were values assigned to the box. While being valid, the rectangle spanned by the coordinate might still be degraded.

bool osmscout::CLASS_FINAL::LoadFromDataFile ( const std::string &  directory)
bool osmscout::CLASS_FINAL::LoadFromOSTFile ( const std::string &  filename)

Methods for loading/storing of type information from/to files.

osmscout::CLASS_FINAL::Node ( )
inline
osmscout::CLASS_FINAL::ObjectFileRef ( )
inline
osmscout::CLASS_FINAL::ObjectFileRef ( FileOffset  offset,
RefType  type 
)
inline
osmscout::CLASS_FINAL::ObjectOSMRef ( )
inline
osmscout::CLASS_FINAL::ObjectOSMRef ( Id  id,
OSMRefType  type 
)
inline
bool osmscout::CLASS_FINAL::Open ( const std::string &  path)
bool osmscout::CLASS_FINAL::Open ( const std::string &  path)
bool osmscout::CLASS_FINAL::operator!= ( const OSMTileId other) const
inline
bool osmscout::CLASS_FINAL::operator!= ( const ObjectOSMRef reference) const
inline
bool osmscout::CLASS_FINAL::operator!= ( const OSMTileIdBoxConstIterator other)
inline
bool osmscout::CLASS_FINAL::operator!= ( const ObjectFileRef reference) const
inline
bool osmscout::CLASS_FINAL::operator!= ( const GeoCoord other) const
inline

Return true if coordinates are not equal.

bool osmscout::CLASS_FINAL::operator!= ( const TypeInfoSetConstIterator other)
inline
bool osmscout::CLASS_FINAL::operator!= ( const TypeInfoSet other) const
bool osmscout::CLASS_FINAL::operator!= ( const FeatureValueBuffer other) const
bool osmscout::CLASS_FINAL::operator() ( const ObjectFileRef a,
const ObjectFileRef b 
) const
inline
const OSMTileId& osmscout::CLASS_FINAL::operator* ( )
inline
const TypeInfoRef& osmscout::CLASS_FINAL::operator* ( )
inline
OSMTileIdBoxConstIterator& osmscout::CLASS_FINAL::operator++ ( )
inline
OSMTileIdBoxConstIterator osmscout::CLASS_FINAL::operator++ ( int  )
inline
TypeInfoSetConstIterator& osmscout::CLASS_FINAL::operator++ ( )
inline
TypeInfoSetConstIterator osmscout::CLASS_FINAL::operator++ ( int  )
inline
double osmscout::CLASS_FINAL::operator- ( const GeoCoord other)
inline
bool osmscout::CLASS_FINAL::operator< ( const Pixel other) const
inline
bool osmscout::CLASS_FINAL::operator< ( const ObjectOSMRef reference) const
inline
bool osmscout::CLASS_FINAL::operator< ( const Coord other) const
inline
bool osmscout::CLASS_FINAL::operator< ( const Vertex2D other) const
inline
bool osmscout::CLASS_FINAL::operator< ( const Point other) const
inline

While we do not want to compare using operator== we at least want to manage points in containers.

So we need to implement operator<.

Parameters
otherOther point to compare to
Returns
true or false
bool osmscout::CLASS_FINAL::operator< ( const ObjectFileRef reference) const
inline
bool osmscout::CLASS_FINAL::operator< ( const Vertex3D other) const
inline
bool osmscout::CLASS_FINAL::operator< ( const GeoCoord other) const
inline
std::ostream& osmscout::CLASS_FINAL::operator<< ( std::ostream &  stream)
inline
void osmscout::CLASS_FINAL::operator= ( const GeoCoord other)
inline

Assign the value of other.

TypeInfoSet& osmscout::CLASS_FINAL::operator= ( const TypeInfoSet other)
inline
FeatureValueBuffer& osmscout::CLASS_FINAL::operator= ( const FeatureValueBuffer other)
bool osmscout::CLASS_FINAL::operator== ( const Pixel other) const
inline
bool osmscout::CLASS_FINAL::operator== ( const OSMTileId other) const
inline
bool osmscout::CLASS_FINAL::operator== ( const Coord other) const
inline
bool osmscout::CLASS_FINAL::operator== ( const ObjectOSMRef reference) const
inline
bool osmscout::CLASS_FINAL::operator== ( const Vertex2D other) const
inline
bool osmscout::CLASS_FINAL::operator== ( const OSMTileIdBoxConstIterator other)
inline
bool osmscout::CLASS_FINAL::operator== ( const ObjectFileRef reference) const
inline
bool osmscout::CLASS_FINAL::operator== ( const Vertex3D other) const
inline
bool osmscout::CLASS_FINAL::operator== ( const GeoCoord other) const
inline

Return true if both coordinates are equals (using == operator)

bool osmscout::CLASS_FINAL::operator== ( const TypeInfoSetConstIterator other)
inline
bool osmscout::CLASS_FINAL::operator== ( const TypeInfoSet other) const
bool osmscout::CLASS_FINAL::operator== ( const FeatureValueBuffer other) const
osmscout::CLASS_FINAL::OSMTileId ( uint32_t  x,
uint32_t  y 
)
osmscout::CLASS_FINAL::OSMTileIdBox ( const OSMTileId a,
const OSMTileId b 
)
osmscout::CLASS_FINAL::OSMTileIdBoxConstIterator ( const OSMTileId currentTile,
const OSMTileId minTile,
const OSMTileId maxTile 
)
inline
osmscout::CLASS_FINAL::OSMTileIdBoxConstIterator ( const OSMTileIdBoxConstIterator &  other)
inline
static bool osmscout::CLASS_FINAL::Parse ( const std::string &  text,
GeoCoord coord 
)
static

Parse a textual representation of a geo coordinate from a string to an GeoCoord instance.

The text should follow the following expression:

[+|-|N|S] DD[.DDDDD] [N|S] [+|-|W|E] DDD[.DDDDD] [W|E]

The means:

  • You first define the latitude, then the longitude value
  • You can define with half you mean by either prefixing or postfixing the actual number with a hint
  • The hint can either be a sign ('-' or '+') or a direction ('N' and 'S' for latitude, 'E' or 'W' for longitude).

Possibly in future more variants will be supported. It is guaranteed that the result of GetDisplayText() is successfully parsed.

Parameters
textText containing the textual representation
coordThe resulting coordinate, if the text was correctly parsed
Returns
true, if the text was correctly parsed, else false
void osmscout::CLASS_FINAL::Parse ( TagErrorReporter errorReporter,
const TypeConfig typeConfig,
const ObjectOSMRef object,
const TagMap tags 
)
osmscout::CLASS_FINAL::Pixel ( )
inline

The default constructor creates an uninitialized instance (for performance reasons).

osmscout::CLASS_FINAL::Pixel ( uint32_t  x,
uint32_t  y 
)
inline
osmscout::CLASS_FINAL::Point ( )
inline
osmscout::CLASS_FINAL::Point ( uint8_t  serial,
const GeoCoord coords 
)
inline
bool osmscout::CLASS_FINAL::Read ( FileScanner scanner)
bool osmscout::CLASS_FINAL::Read ( const TypeConfig typeConfig,
FileScanner scanner 
)
void osmscout::CLASS_FINAL::Read ( FileScanner scanner)
void osmscout::CLASS_FINAL::Read ( const TypeConfig typeConfig,
FileScanner scanner 
)
void osmscout::CLASS_FINAL::Read ( const TypeConfig typeConfig,
FileScanner scanner 
)
void osmscout::CLASS_FINAL::Read ( const TypeConfig typeConfig,
FileScanner scanner 
)

Read the area as written by Write().

void osmscout::CLASS_FINAL::Read ( FileScanner scanner)
void osmscout::CLASS_FINAL::Read ( FileScanner scanner,
bool &  specialFlag 
)
void osmscout::CLASS_FINAL::Read ( FileScanner scanner,
bool &  specialFlag1,
bool &  specialFlag2 
)
void osmscout::CLASS_FINAL::ReadImport ( const TypeConfig typeConfig,
FileScanner scanner 
)

Read the area as written by WriteImport().

void osmscout::CLASS_FINAL::ReadOptimized ( const TypeConfig typeConfig,
FileScanner scanner 
)
void osmscout::CLASS_FINAL::ReadOptimized ( const TypeConfig typeConfig,
FileScanner scanner 
)

Read the area as stored by WriteOptimized().

void osmscout::CLASS_FINAL::RegisterFeature ( const FeatureRef feature)

Methods for dealing with features.

A feature is a attribute set based on parsed tags. Features can get assigned to a type.

void osmscout::CLASS_FINAL::RegisterMaxSpeedAlias ( const std::string &  alias,
uint8_t  maxSpeed 
)

Methods for dealing with mappings for surfaces and surface grades.

TagId osmscout::CLASS_FINAL::RegisterNameAltTag ( const std::string &  tagName,
uint32_t  priority 
)
TagId osmscout::CLASS_FINAL::RegisterNameTag ( const std::string &  tagName,
uint32_t  priority 
)
void osmscout::CLASS_FINAL::RegisterSurfaceToGradeMapping ( const std::string &  surface,
size_t  grade 
)

Methods for dealing with mappings for surfaces and surface grades.

TagId osmscout::CLASS_FINAL::RegisterTag ( const std::string &  tagName)

Methods for dealing with tags.

TypeInfoRef osmscout::CLASS_FINAL::RegisterType ( const TypeInfoRef typeInfo)

Methods for dealing with types.

void osmscout::CLASS_FINAL::Remove ( const TypeInfoRef type)
void osmscout::CLASS_FINAL::Remove ( const TypeInfoSet otherTypes)
std::string osmscout::CLASS_FINAL::ResultString ( ) const
std::string osmscout::CLASS_FINAL::ResultString ( ) const
osmscout::CLASS_FINAL::RoutePosition ( )
osmscout::CLASS_FINAL::RoutePosition ( const ObjectFileRef object,
size_t  nodeIndex 
)
osmscout::CLASS_FINAL::RouterParameter ( )
osmscout::CLASS_FINAL::RoutingResult ( )
void osmscout::CLASS_FINAL::Set ( uint8_t  serial,
const GeoCoord coords 
)
inline
void osmscout::CLASS_FINAL::Set ( const Id id,
const OSMRefType type 
)
inline
void osmscout::CLASS_FINAL::Set ( const GeoCoord coordA,
const GeoCoord coordB 
)

Assign a new rectangular area bases an two coordinates defining the bounds.

void osmscout::CLASS_FINAL::Set ( double  lat,
double  lon 
)
inline

Assign a new latitude and longitude value to the coordinate.

void osmscout::CLASS_FINAL::Set ( double  x,
double  y 
)
inline
void osmscout::CLASS_FINAL::Set ( const FileOffset offset,
const RefType type 
)
inline
void osmscout::CLASS_FINAL::Set ( double  x,
double  y 
)
inline
void osmscout::CLASS_FINAL::Set ( double  x,
double  y,
double  z 
)
inline
void osmscout::CLASS_FINAL::Set ( const TypeInfoRef type)
void osmscout::CLASS_FINAL::Set ( const std::vector< TypeInfoRef > &  types)
void osmscout::CLASS_FINAL::Set ( const TypeInfoSet other)
void osmscout::CLASS_FINAL::Set ( const FeatureValueBuffer other)

Deletes the current feature values and assign the type and values of the passed featur evalue buffer.

Parameters
otherOther FeatureValueBuffer to make a copy of
void osmscout::CLASS_FINAL::SetAreaAreaIndexCacheSize ( unsigned long  areaAreaIndexCacheSize)
void osmscout::CLASS_FINAL::SetAreaDataCacheSize ( unsigned long  size)
TypeInfo& osmscout::CLASS_FINAL::SetAreaId ( TypeId  id)

Set the id of this type.

void osmscout::CLASS_FINAL::SetAreasDataMMap ( bool  mmap)
void osmscout::CLASS_FINAL::SetBreaker ( const BreakerRef breaker)
void osmscout::CLASS_FINAL::SetCoord ( const GeoCoord coords)
inline
void osmscout::CLASS_FINAL::SetCoord ( const GeoCoord coord)
inline
void osmscout::CLASS_FINAL::SetCoords ( const GeoCoord coords)
void osmscout::CLASS_FINAL::SetCurrentMaxDistance ( double  currentMaxDistance)
inline
void osmscout::CLASS_FINAL::SetDebugPerformance ( bool  debug)
void osmscout::CLASS_FINAL::SetFeatures ( const FeatureValueBuffer buffer)
void osmscout::CLASS_FINAL::SetFeatures ( const FeatureValueBuffer buffer)
inline
void osmscout::CLASS_FINAL::SetFrom ( Id  from)
inline
TypeInfo& osmscout::CLASS_FINAL::SetIgnore ( bool  ignore)
inline

If set to true, an object of this typoe should be ignored (not exported for renderng, routing, location indexing or other services).

TypeInfo& osmscout::CLASS_FINAL::SetIgnoreSeaLand ( bool  ignoreSeaLand)
inline

Set, if an object of this type should be ignored for land/sea calculation.

TypeInfo& osmscout::CLASS_FINAL::SetIndex ( size_t  index)

Set the index of this type.

The index is assured to in the interval [0..GetTypeCount()[

TypeInfo& osmscout::CLASS_FINAL::SetIndexAsAddress ( bool  indexAsAddress)
inline

Set, if an object of this type should be indexed as an address.

TypeInfo& osmscout::CLASS_FINAL::SetIndexAsLocation ( bool  indexAsLocation)
inline

Set, if an object of this type should be indexed as a location.

TypeInfo& osmscout::CLASS_FINAL::SetIndexAsPOI ( bool  indexAsPOI)
inline

Set, if an object of this type should be indexed as a POI.

TypeInfo& osmscout::CLASS_FINAL::SetIndexAsRegion ( bool  indexAsRegion)
inline

Set, if an object of this type should be indexed as a region.

TypeInfo& osmscout::CLASS_FINAL::SetInternal ( )

Mark this type as internal.

TypeInfo& osmscout::CLASS_FINAL::SetIsPath ( bool  isPath)
inline

If set to 'true', a node can be of this type.

void osmscout::CLASS_FINAL::SetLayerToMax ( )
TypeInfo& osmscout::CLASS_FINAL::SetMergeAreas ( bool  mergeAreas)
inline

Set to true, if "touching" areas of this type should get merged.

TypeInfo& osmscout::CLASS_FINAL::SetMultipolygon ( bool  multipolygon)
inline

If set to 'true', an object is handled as multipolygon even though it may not have type=multipolygon set explicitly.

void osmscout::CLASS_FINAL::SetNodeDataCacheSize ( unsigned long  size)
TypeInfo& osmscout::CLASS_FINAL::SetNodeId ( TypeId  id)

Set the id of this type.

void osmscout::CLASS_FINAL::SetNodesDataMMap ( bool  mmap)
TypeInfo& osmscout::CLASS_FINAL::SetOptimizeLowZoom ( bool  optimize)
inline

Set, if an object of this type should be optimized for low zoom.

void osmscout::CLASS_FINAL::SetOverallDistance ( double  overallDistance)
inline
TypeInfo& osmscout::CLASS_FINAL::SetPinWay ( bool  pinWay)
inline
void osmscout::CLASS_FINAL::SetProgress ( const RoutingProgressRef progress)
void osmscout::CLASS_FINAL::SetRouterDataMMap ( bool  mmap)
void osmscout::CLASS_FINAL::SetSerial ( uint8_t  serial)
inline
void osmscout::CLASS_FINAL::SetTo ( OSMId  to)
inline
void osmscout::CLASS_FINAL::SetType ( const TypeInfoRef type)
void osmscout::CLASS_FINAL::SetType ( const TypeInfoRef type)
inline
TypeInfo& osmscout::CLASS_FINAL::SetType ( const std::string &  name)

The the name of this type.

void osmscout::CLASS_FINAL::SetType ( const TypeInfoRef type)
void osmscout::CLASS_FINAL::SetWayDataCacheSize ( unsigned long  size)
TypeInfo& osmscout::CLASS_FINAL::SetWayId ( TypeId  id)

Set the id of this type.

void osmscout::CLASS_FINAL::SetWaysDataMMap ( bool  mmap)
void osmscout::CLASS_FINAL::SetX ( double  x)
inline
void osmscout::CLASS_FINAL::SetX ( double  x)
inline
void osmscout::CLASS_FINAL::SetY ( double  y)
inline
void osmscout::CLASS_FINAL::SetY ( double  y)
inline
void osmscout::CLASS_FINAL::SetZ ( double  z)
inline
size_t osmscout::CLASS_FINAL::Size ( ) const
inline
void osmscout::CLASS_FINAL::Stop ( )
void osmscout::CLASS_FINAL::Stop ( )
osmscout::CLASS_FINAL::StopClock ( )
osmscout::CLASS_FINAL::StopClockNano ( )
bool osmscout::CLASS_FINAL::StoreToDataFile ( const std::string &  directory) const
osmscout::CLASS_FINAL::StyleBoolAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleColorAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleDisplayAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleDoubleAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleIntAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleLabelAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleMagnificationAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleMapAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleStringAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleSymbolAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleUDisplayAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleUDoubleArrayAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleUDoubleAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleUIntAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleUMapAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::StyleVoidAttributeDescriptor ( )
inline
bool osmscout::CLASS_FINAL::Success ( ) const
inline
osmscout::CLASS_FINAL::TextStyleEnumAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inline
osmscout::CLASS_FINAL::TurnRestriction ( )
inline
osmscout::CLASS_FINAL::TurnRestriction ( Type  type,
OSMId  from,
OSMId  via,
OSMId  to 
)
inline
osmscout::CLASS_FINAL::TypeConfig ( )
osmscout::CLASS_FINAL::TypeInfo ( const std::string &  name)
osmscout::CLASS_FINAL::TypeInfoSet ( )
osmscout::CLASS_FINAL::TypeInfoSet ( const TypeConfig typeConfig)
osmscout::CLASS_FINAL::TypeInfoSet ( const TypeInfoSet &  other)
osmscout::CLASS_FINAL::TypeInfoSet ( TypeInfoSet &&  other)
osmscout::CLASS_FINAL::TypeInfoSet ( const std::vector< TypeInfoRef > &  types)
osmscout::CLASS_FINAL::TypeInfoSetConstIterator ( const std::vector< TypeInfoRef >::const_iterator &  iterCurrent,
const std::vector< TypeInfoRef >::const_iterator &  iterEnd 
)
inline
osmscout::CLASS_FINAL::TypeInfoSetConstIterator ( const TypeInfoSetConstIterator &  other)
inline
void osmscout::CLASS_FINAL::UnsetFeature ( size_t  idx)
inline
void osmscout::CLASS_FINAL::UnsetFeature ( size_t  idx)
inline
bool osmscout::CLASS_FINAL::Valid ( ) const
inline

References osmscout::osmRefNone.

bool osmscout::CLASS_FINAL::Valid ( ) const
inline

References osmscout::refNone.

osmscout::CLASS_FINAL::Vertex2D ( )
inline

The default constructor creates an uninitialized instance (for performance reasons).

osmscout::CLASS_FINAL::Vertex2D ( const Vertex2D &  other)
inline
osmscout::CLASS_FINAL::Vertex2D ( double  x,
double  y 
)
inline
osmscout::CLASS_FINAL::Vertex3D ( )
inline

The default constructor creates an uninitialized instance (for performance reasons).

osmscout::CLASS_FINAL::Vertex3D ( const Vertex3D &  other)
inline
osmscout::CLASS_FINAL::Vertex3D ( double  x,
double  y 
)
inline
osmscout::CLASS_FINAL::Way ( )
inline
void osmscout::CLASS_FINAL::Write ( FileWriter writer) const
void osmscout::CLASS_FINAL::Write ( const TypeConfig typeConfig,
FileWriter writer 
) const
void osmscout::CLASS_FINAL::Write ( const TypeConfig typeConfig,
FileWriter writer 
) const
void osmscout::CLASS_FINAL::Write ( const TypeConfig typeConfig,
FileWriter writer 
) const

Write the area with all data required in the standard database.

void osmscout::CLASS_FINAL::Write ( FileWriter writer) const
void osmscout::CLASS_FINAL::Write ( FileWriter writer,
bool  specialFlag 
) const
void osmscout::CLASS_FINAL::Write ( FileWriter writer,
bool  specialFlag1,
bool  specialFlag2 
) const
void osmscout::CLASS_FINAL::WriteImport ( const TypeConfig typeConfig,
FileWriter writer 
) const

Write the area with all data required during import, certain optimizations done on the final data are not done here to not loose information.

void osmscout::CLASS_FINAL::WriteOptimized ( const TypeConfig typeConfig,
FileWriter writer 
) const
void osmscout::CLASS_FINAL::WriteOptimized ( const TypeConfig typeConfig,
FileWriter writer 
) const

Write the area with all data required by the OptimizeLowZoom index, dropping all ids.

Friends And Related Function Documentation

OSMSCOUT_API std::ostream& operator<< ( std::ostream &  stream,
const StopClock &  clock 
)
friend
OSMSCOUT_API std::ostream& operator<< ( std::ostream &  stream,
const StopClockNano &  clock 
)
friend

Member Data Documentation

std::vector<AreaRef> osmscout::CLASS_FINAL::areas

Areas as retrieved from database.

double osmscout::CLASS_FINAL::cellHeight

Height of cell.

double osmscout::CLASS_FINAL::cellWidth

Width of cell.

std::vector<Coord> osmscout::CLASS_FINAL::coords

Optional coordinates for coastline.

const char* osmscout::CLASS_FINAL::FILE_TYPES_DAT
static
std::list<GroundTile> osmscout::CLASS_FINAL::groundTiles

List of ground tiles (optional)

Id osmscout::CLASS_FINAL::id
const uint8_t osmscout::CLASS_FINAL::masterRingId
static
const uint32_t osmscout::CLASS_FINAL::MAX_FORMAT_VERSION = FILE_FORMAT_VERSION
static
const uint32_t osmscout::CLASS_FINAL::MIN_FORMAT_VERSION = FILE_FORMAT_VERSION
static
std::vector<Point> osmscout::CLASS_FINAL::nodes

List of nodes.

std::vector<NodeRef> osmscout::CLASS_FINAL::nodes

Nodes as retrieved from database.

FileOffset osmscout::CLASS_FINAL::offset
const uint8_t osmscout::CLASS_FINAL::outerRingId
static
std::list<AreaRef> osmscout::CLASS_FINAL::poiAreas

List of manually added areas (not managed or changed by the database)

std::list<NodeRef> osmscout::CLASS_FINAL::poiNodes

List of manually added nodes (not managed or changed by the database)

std::list<WayRef> osmscout::CLASS_FINAL::poiWays

List of manually added ways (not managed or changed by the database)

std::vector<Ring> osmscout::CLASS_FINAL::rings
TagId osmscout::CLASS_FINAL::tagArea
TagId osmscout::CLASS_FINAL::tagDataPolygon
TagId osmscout::CLASS_FINAL::tagJunction
TagId osmscout::CLASS_FINAL::tagNatural
TagId osmscout::CLASS_FINAL::tagRestriction
TagId osmscout::CLASS_FINAL::tagType
OSMRefType osmscout::CLASS_FINAL::type
Type osmscout::CLASS_FINAL::type

The type of the cell.

RefType osmscout::CLASS_FINAL::type
const unsigned char osmscout::CLASS_FINAL::typeArea = 1 << 2
static

Condition applies to areas.

TypeInfoRef osmscout::CLASS_FINAL::typeInfoCoastline

Internal type for coastlines.

TypeInfoRef osmscout::CLASS_FINAL::typeInfoIgnore
TypeInfoRef osmscout::CLASS_FINAL::typeInfoOSMSubTileBorder

Internal type for OSM tile borders.

TypeInfoRef osmscout::CLASS_FINAL::typeInfoOSMTileBorder

Internal type for OSM tile borders.

TypeInfoRef osmscout::CLASS_FINAL::typeInfoTileCoast

Internal type for ground tiles of type "coast".

TypeInfoRef osmscout::CLASS_FINAL::typeInfoTileLand

Internal type for ground tiles of type "land".

TypeInfoRef osmscout::CLASS_FINAL::typeInfoTileSea

Internal type for ground tiles of type "sea".

TypeInfoRef osmscout::CLASS_FINAL::typeInfoTileUnknown

Internal type for ground tiles of type "unknown".

const unsigned char osmscout::CLASS_FINAL::typeNode = 1 << 0
static

Condition applies to nodes.

const unsigned char osmscout::CLASS_FINAL::typeRelation = 1 << 3
static

Condition applies to releations.

const unsigned char osmscout::CLASS_FINAL::typeWay = 1 << 1
static

Condition applies to ways.

std::vector<WayRef> osmscout::CLASS_FINAL::ways

Ways as retrieved from database.

uint32_t osmscout::CLASS_FINAL::x
size_t osmscout::CLASS_FINAL::xAbs

Absolute x coordinate of the cell in relation to level and cell size.

size_t osmscout::CLASS_FINAL::xRel

X coordinate of cell in relation to cell index of this level.

uint32_t osmscout::CLASS_FINAL::y
size_t osmscout::CLASS_FINAL::yAbs

Absolute y coordinate of the cell in relation to level and cell size.

size_t osmscout::CLASS_FINAL::yRel

Y coordinate of cell in relation to cell index of this level.


The documentation for this class was generated from the following files: