The Esri Community
GeoNet Resource Hub
to create and rate content, and to follow, bookmark, and share content with other members.
Import OSM - layer per layer
Discussion created by
on Jan 30, 2012
on Jan 30, 2012 by AUlmer-esristaff
Show 0 Likes
I'd like to import my OSM layer by layer. Doing this by hand is tedious to say the least! Is there a way to do it via python? OSMImportSettings don't seem to actually contain anything!
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Jan 30, 2012 10:31 PM
There are currently no ways to control what layers to import using python.
The only (not so elegant) way I see atm to do that would be to:
for all layers to be imported:
delete unwanted objects
as an alternative: probably there are ways to export OSM data by layer? I am not fully familiar with the functionality of the OSM api, but I think such a thing is possible. Not via the gui export, but using direct calls to the osm db (URL calls, or via one of the osm apis)
another alternative: preprocess your osm file with python, or another xml parser, and create different files with only the desired objects in.
Show 0 Likes
Retrieving data ...
Does getting real map data always need specific osm?
Make Portal for ArcGIS public accessible using IIS reverse proxy server in DMZ
My Python Window in ArcGIS Pro is not working
New! ArcGIS 10 User Forum