since a while I am trying to use OSM-Data to create Line-Features that I can watch and edit in ArgGIS (I am using ArgGIS 10 - full licence).
The target is to export Power lines (visible in OSM).
My first idea was to use the OSM-Export-Tool but it seems that the resulting XML-File is not really usefull/compartible with ArgGIS.
Also the XML-File contains all objects (such as buildings, streets etc.) but I only need power lines and power towers. Is there a way to make a selection before exporting?
I was trying and serching a lot and yet I sill dont have a clue how to porceed. So I’d be very
happy if somebody did something like this before or knows how to use OSM-Data in ArcGIS.
You can use GDAL v. 1.10 with the OSM driver http://www.gdal.org/ogr/drv_osm.html
Edit first the driver configuration file “osmconf.ini” so that it includes attribute “power” for the layer “lines” as in this snippet
ogr2ogr -f "ESRI Shapefile" power_line.shp -sql "select * from lines where power is not null" your_data.osm.pbf
The command found 4655 features with some power tag from the 400 MB finland.osm.pbf file in couple of minutes. Rerun with “select * from points where power is not null” for writing the poles into a point shapefile. The points section in the osmconf.ini must be edited to include the power tag first.
thanks for your answer. As I am not very experienced in OSM I was hoping that
you could give me some more details about GDAL. How is it working, does it have a
user interface? As there exist a lot of downloads at the homepage of GDAL it is
a bit confusing what to use especially if you are new to it. Is it to use like a tool,
that has to be importet to ArcGis (just as tools from the ArcToolbox). Or is it
a independent Tool that produces Outputfiles which can be opened in ArcGis afterwards?
Hope you can give me some more help. Thanks