Open Street Map layers import
Brief Description
Download vector data from OSM and store it to file
Tags
Miscellaneous, Image MetaData, Vector Data Manipulation
Long Description
The application connects to Open Street Map server, downloads the data corresponding to the spatial extent of the support image, and filters the geometries based on OSM tags to produce a vector data file.
This application can be used to download reference data to perform the training of a machine learning model (see for instance [1]).
By default, the entire layer is downloaded. The application has a special mode to provide the list of available classes in the layers. The downloaded features are filtered by giving an OSM tag 'key'. In addition, the user can also choose what 'value' this key should have. More information about the OSM project at [2].
Parameters
Output vector data (out): Vector data file to store downloaded features
Support image (support): Image used to derive the spatial extent to be requested from OSM server (the bounding box of the extent is used). Be aware that a request with a large extent may be rejected by the server.
OSM tag key (key): OSM tag key to extract (highway, building...). It defines a category to select features.
OSM tag value (value): OSM tag value to extract (motorway, footway...). It defines the type of feature to select inside a category.
Elevation management (elev): This group of parameters allows managing elevation values. Supported formats are SRTM, DTED or any geotiff. DownloadSRTMTiles application could be a useful tool to list/download tiles related to a product.
DEM directory (elev.dem): This parameter allows selecting a directory containing Digital Elevation Model files. Note that this directory should contain only DEM files. Unexpected behaviour might occurs if other images are found in this directory.
Geoid File (elev.geoid): Use a geoid grid to get the height above the ellipsoid in case there is no DEM available, no coverage for some points or pixels with no_data in the DEM tiles. A version of the geoid can be found on the OTB website(https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb-data/blob/master/Input/DEM/egm96.grd).
Default elevation (elev.default): This parameter allows setting the default height above ellipsoid when there is no DEM available, no coverage for some points or pixels with no_data in the DEM tiles, and no geoid file has been set. This is also used by some application as an average elevation value.
Displays available key/value classes (printclasses): Print the key/value classes available for the selected support image. If enabled, the OSM tag Key (-key) and the output (-out) become optional
Load otb application from xml file (inxml): Load otb application from xml file
Save otb application to xml file (outxml): Save otb application to xml file
Limitations
This application requires an Internet access.
Authors
OTB-Team
See also
[1] TrainImagesClassifier
[2] http://www.openstreetmap.fr/
Example of use
support: qb_RoadExtract.tif
key: highway
out: apTvUtOSMDownloader.shp
otbcli_OSMDownloader -support qb_RoadExtract.tif -key highway -out apTvUtOSMDownloader.shp