Mar 2, 2012 at 4:15 PM
Edited Mar 2, 2012 at 4:20 PM
I call several OSMEditorfunctions via python in an application. Until Version 2Beta2 I used those calls successfully:
I just installed 2beta4 and it doesn't work anymore:
Traceback (most recent call last): File "C:\testfolder\test\beta4\osm2use\start_osm2use.py", line 3053, in <module> arcpy.OSMGPAddExtension_osmtools(nameOfPointFeatureClass)TypeError: OSMGPAddExtension() takes no arguments (1 given)
Changing it to
crashes as well with:
Traceback (most recent call last): File "C:\testfolder\test\beta4\osm2use\start_osm2use.py", line 3058, in <module> arcpy.OSMGPAddExtension_osmtools() File "C:\Program Files (x86)\ESRI\OSMEditor\data\OpenStreetMap Toolbox.tbx",
line 110, in OSMGPAddExtension R AttributeError: Error in getting tool information
Even calling the AddTool within the ArcGIS10-GUI in the OSMToolbox doesnt work anymore.
I let the user decide which version of the OSMEditor should be installed. If the user installs 2beta4 I have to disable Adding and removing the OSM Extension to the fcs. It seems, that the output (geomerties, Attributes) is identical with and without Extension.
For which tools adding the OSM extension is necessary?
I use after loading: OSMGPAddExtension_osmtools, OSMGPAttributeSelector_osmtools, OSMSymbolizer_osmtools, OSMGPRemoveExtension_osmtools
After having loaded an OSM file, I copy fcs and put them in an new dataset under other names to make them more accessible. Might this be the reason the Extensiontool fails or might there be a bug somewhere? Do I need to Add the Extension for the needed Tools at
I'm currently not posting changes back to osm, but might want to do that in future. Does using the Extensiontool have an effect on being able to post back?