Documentation ¶
Index ¶
- func DeInterlacedString(in string) (string, string)
- func FloatToConstantLengthFloat(input float64) string
- func InterlacedString(a, b string) string
- func Store(index MapIndex) (string, []byte)
- type FeatureIDSlice
- type FeatureIDWithLocation
- type Map
- func (m *Map) ConstructIndex(path string) error
- func (m *Map) ConstructIndexSecondPass(path string, resolver interfacew.MapResolver) error
- func (m Map) GetFeatureByID(FeatureID string, file *os.File) *osm.Object
- func (m Map) GetMapIndexByName(name string) MapIndex
- func (m Map) GetRelationByFeature(FeatureID string) osm.FeatureIDs
- func (m Map) ScanRegion(Lat, Lon float64, mask int) (osm.ObjectIDs, osm.FeatureIDs, []FeatureIDWithLocation)
- func (m Map) SearchByName(Name string) (osm.FeatureIDs, uint32)
- func (m Map) SearchByNamePrefix(Name string) []string
- type MapFTS
- type MapFeatureID2CurrentObjectIDEntry
- type MapFeatureID2Refs
- type MapID2ItemEntry
- type MapIndex
- type MapRegion2IDEntry
- type ObjectIDSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeInterlacedString ¶
func InterlacedString ¶
Types ¶
type FeatureIDSlice ¶
func (FeatureIDSlice) Len ¶
func (p FeatureIDSlice) Len() int
func (FeatureIDSlice) Less ¶
func (p FeatureIDSlice) Less(i, j int) bool
func (FeatureIDSlice) Swap ¶
func (p FeatureIDSlice) Swap(i, j int)
type FeatureIDWithLocation ¶
type FeatureIDWithLocation struct { osm.FeatureIDs Lat float64 Lon float64 SignificantRelations osm.FeatureIDs }
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) ConstructIndex ¶
func (*Map) ConstructIndexSecondPass ¶
func (m *Map) ConstructIndexSecondPass(path string, resolver interfacew.MapResolver) error
func (Map) GetFeatureByID ¶
func (Map) GetMapIndexByName ¶
func (Map) GetRelationByFeature ¶
func (m Map) GetRelationByFeature(FeatureID string) osm.FeatureIDs
func (Map) ScanRegion ¶
func (m Map) ScanRegion(Lat, Lon float64, mask int) (osm.ObjectIDs, osm.FeatureIDs, []FeatureIDWithLocation)
func (Map) SearchByName ¶
func (m Map) SearchByName(Name string) (osm.FeatureIDs, uint32)
func (Map) SearchByNamePrefix ¶
type MapFTS ¶
type MapFTS struct { Name string Refs osm.FeatureIDs Count uint32 }
func (MapFTS) ToIndexKey ¶
type MapFeatureID2CurrentObjectIDEntry ¶
type MapFeatureID2CurrentObjectIDEntry struct { ID osm.ObjectID SkipLength int64 CachedData []byte IDFeat osm.FeatureID }
func (MapFeatureID2CurrentObjectIDEntry) Install ¶
func (m MapFeatureID2CurrentObjectIDEntry) Install(oldVal MapIndex) MapIndex
func (MapFeatureID2CurrentObjectIDEntry) ToIndexKey ¶
func (m MapFeatureID2CurrentObjectIDEntry) ToIndexKey() string
type MapFeatureID2Refs ¶
type MapFeatureID2Refs struct { IDElem osm.FeatureID Refs osm.FeatureIDs }
func (MapFeatureID2Refs) Install ¶
func (m MapFeatureID2Refs) Install(oldVal MapIndex) MapIndex
func (MapFeatureID2Refs) ToIndexKey ¶
func (m MapFeatureID2Refs) ToIndexKey() string
type MapID2ItemEntry ¶
func (MapID2ItemEntry) Install ¶
func (m MapID2ItemEntry) Install(oldVal MapIndex) MapIndex
func (MapID2ItemEntry) ToIndexKey ¶
func (m MapID2ItemEntry) ToIndexKey() string
type MapIndex ¶
type MapIndex interface { //returned value should be prefixed with type ToIndexKey() string Install(oldVal MapIndex) MapIndex }
func ConstructIndexForObject ¶
func ConstructIndexForObjectSecondPass ¶
func ConstructIndexForObjectSecondPass(object osm.Object, skipLen int64, m interfacew.MapResolver) []MapIndex
type MapRegion2IDEntry ¶
type MapRegion2IDEntry struct { IDs osm.ObjectIDs FIDs osm.FeatureIDs Lat float64 Lon float64 Significant osm.FeatureIDs }
func (MapRegion2IDEntry) Install ¶
func (m MapRegion2IDEntry) Install(oldVal MapIndex) MapIndex
func (MapRegion2IDEntry) ToIndexKey ¶
func (m MapRegion2IDEntry) ToIndexKey() string
type ObjectIDSlice ¶
func (ObjectIDSlice) Len ¶
func (p ObjectIDSlice) Len() int
func (ObjectIDSlice) Less ¶
func (p ObjectIDSlice) Less(i, j int) bool
func (ObjectIDSlice) Swap ¶
func (p ObjectIDSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.