Open BrettFrahm opened 4 years ago
@mboeringa you have been very active in the scripting environment using the tools. Do you have a suggestion about what could cause the error message?
@ThomasEmge
Well, yes and no, although I have done an enormous amount of development work regarding OpenStreetMap data and the toolboxes output, I only call one tool directly from my Python scripting code, the "OSM Attribute Selector".
@BrettFrahm
I do see one potential issue though, in the ImportToolbox statement, it is recommended to set an alias for these kind of toolboxes, so like this:
arcpy.ImportToolbox(<TOOLBOX_PATH>,'osmtools')
Notice the comma separated 'osmtools' alias. However, if that is causing the issue I am not sure. It seems to fail on a dictionary lookup in the actual tool code.
This does work though with my usage of the "OSM Attribute Selector" tool.
I appreciate you 2 looking at this. I think it was failing due to in_conserveMemory="DO_NOT_CONSERVE_MEMORY"
. I switched it to conserve memory and it seems to be working now.
I am glad you found a workaround. There is only a small percentage of use cases where this parameter would actually make sense and it is more of a historical marker at this point in time. Depending on your OSM data usage, the newer read only version of tool might be another way to go. 'Read only' meaning that you are not planning to upload data back to the OSM servers.
@ThomasEmge
(What is the name/where can I find) this read-only version of the tool? I don't see information on this, but it would fit my use case since I am just trying to create a Network Dataset atm. Currently having trouble with the Load OSM tool with a large regional osm file and it would be nice to have another tool to try.
The tool is mentioned here
However, since you would like to create a network dataset, you still need to use the 'old' tool. Unfortunately, dropping turn directions was one of the optimization steps for the read only version.
@BrettFrahm ,
@ThomasEmge refers to the OSM File Loader (Load only) tool in the same toolbox.
It essentially does the same thing as the Load OSM File tool, but has a few distinct traits that set it apart from this other tool:
Using ArcMap 10.7.1's Python 2.7 exe and ran into this error when trying to Load a .osm file I generated using Download OSM Data (XAPI).The Load OSM File tool worked when I used it through ArcMap.
Code Used:
test_osm.zip
Error: