GRASS logo

Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.

Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.

NAME

v.in.osm - Imports OpenStreetMap data into GRASS GIS.

KEYWORDS

osm, vector, import

SYNOPSIS

v.in.osm
v.in.osm --help
v.in.osm [-ol] input=name [output=name] [where=sql_query] [type=string[,string,...]] [table=name] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

-o
Override projection check (use current location's projection)
Assume that the dataset has the same projection as the current location
-l
List available OGR layers in data source and exit
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

input=name [required]
Table file to be imported or DB connection string
output=name
Name for output vector map
where=sql_query
WHERE conditions of SQL statement without 'where' keyword
Example: income < 1000 and population >= 10000
type=string[,string,...]
Name for output vector map
Options: point, line, boundary, centroid
Default: point,line,boundary,centroid
table=name
Name of attribute table

Table of contents

DESCRIPTION

v.in.osm imports OpenStreetMap data.

EXAMPLES

Import from PostgreSQL DB:
v.in.osm input="PG:host=localhost dbname=gis user=ostepok" table=planet_osm_line \
         type=point,line output=roads where="highway is not null" 

Import from OSM PBF file:

v.in.osm input=saarland-latest.osm.pbf table=lines type=point,line output=roads \
         where="highway is not null"

REQUIREMENTS

PostgreSQL, PostGIS, osm2pgsql

SEE ALSO

v.in.ogr

AUTHORS

Stepan Turek

SOURCE CODE

Available at: v.in.osm source code (history)

Latest change: Monday Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55


Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.

Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.

Main index | Vector index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 7.8.9dev Reference Manual