-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
given key was not present in the dictionary - OSMGPFileLoader_osmtools #215
Comments
@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? |
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". 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:
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 |
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. |
(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. |
@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:
The text was updated successfully, but these errors were encountered: