package
0.2.13
Repository: https://github.com/paulstuart/geom.git
Documentation: pkg.go.dev

# Functions

CountTags returns the different tags in the database and the number of instances of each one.
DominantType returns the most frequently occurring type among the given features.
ExtractFile extracts OpenStreetMap data from the given file path, determining whether it is an XML or PBF file from the extension (.osm or .pbf, respectively).
ExtractPBF extracts OpenStreetMap data from osm.pbf file rs.
ExtractTag extracts OpenStreetMap data with the given tag set to one of the given values.
ExtractXML extracts OpenStreetMap data from osm file rs.
KeepAll specifies that all objects should be kept.
KeepBounds keeps OSM objects that overlap with b.
KeepTags keeps OSM objects that contain the given tag key with at least one of the given tag values, where the keys and values correspond to the keys and values of the 'tags' input.

# Constants

ClosedWayType is an OpenStreetMap way that is closed (i.e., a polygon).
Line is a linear geometry.
NodeType is an OpenStreetMap node.
OpenWayType is an OpenStreetMap way that is open (i.e., a line string).
Point is a point geometry.
Poly is a polygonal geometry.
RelationType is an OpenStreetMap relation.
WayType can be either open or closed.

# Structs

Data holds OpenStreetMap data and relationships.
GeomTags holds a geometry object and the tags that apply to it.
Member is a member of a relation.
Node holds a subset of the information specifying an OpenStreetMap node.
Relation holds a subset of the information specifying an OpenStreetMap way.
TagCount hold information about the number of instances of the specified tag in a database.
Way holds a subset of the information specifying an OpenStreetMap way.

# Type aliases

GeomType specifies the valid geometry types.
KeepFunc is a function that determines whether an OSM object should be included in the output.
ObjectType specifies the valid OpenStreetMap types.
Tags holds information about the tags that are in a database.