Esri / arcgis-osm-editor

ArcGIS Editor for OpenStreetMap is a toolset for GIS users to access and contribute to OpenStreetMap through their Desktop or Server environment.
Apache License 2.0
395 stars 129 forks source link

Failed to execute (OSMGPCreateNetworkDataset). #182

Closed rgardnercook closed 5 years ago

rgardnercook commented 6 years ago

Hello, I am trying to create a network dataset from OSM data for New York City. I've followed the instructions from the wiki and used the Load OSM File tool. When I move on to the Create OSM Dataset tool (with the DriveGeneric network config file) I get the following messages:

Messages Executing: OSMGPCreateNetworkDataset "J:\new-york_new-york.osm\New File Geodatabase.gdb\NYC_OSM_features" "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcToolbox\Toolboxes\ND_ConfigFiles\DriveGeneric.xml" "J:\new-york_new-york.osm\New File Geodatabase.gdb\NYC_OSM_features\NYC_OSM_features_nd" Start Time: Wed Dec 20 09:50:18 2017

Extracting Edge Features

Select_analysis

Extracting Junction Features

Select_analysis

Assigning Network Connectivity Groups

Extracting Turn Restrictions

CreateTurnFeatureClass_na

AddField_management

Populating Turn Features from OSM Relations

The row contains a bad value. [RestrictionType] at ESRI.ArcGIS.Geodatabase.IFeature.Store()

at ESRI.ArcGIS.OSM.GeoProcessing.NetworkTurns.CreateTurnFeature_NO(TurnFeatureClassWrapper turnFCW, OSMTurnInfo osmTurn)

at ESRI.ArcGIS.OSM.GeoProcessing.NetworkTurns.PopulateTurnsFromRelations()

at ESRI.ArcGIS.OSM.GeoProcessing.RunTaskManager.ExecuteTask(String messageName, Action task)

at ESRI.ArcGIS.OSM.GeoProcessing.NetworkTurns.ExtractTurnRestrictions()

at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.ExtractTurnRestrictions()

at ESRI.ArcGIS.OSM.GeoProcessing.RunTaskManager.ExecuteTask(String messageName, Action task)

at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateNetworkDataset()

at ESRI.ArcGIS.OSM.GeoProcessing.OSMGPCreateNetworkDataset.Execute(IArray paramvalues, ITrackCancel TrackCancel, IGPEnvironmentManager envMgr, IGPMessages message) Failed to execute (OSMGPCreateNetworkDataset). Failed at Wed Dec 20 10:59:32 2017 (Elapsed Time: 1 hours 9 minutes 13 seconds)

How can I get around this? I should note that I'm running this with foreground processing and 64 bit. I got a different error with background processing (Error HRESULT E_FAIL has been returned from a call to a COM component).

Thank you!

mboeringa commented 6 years ago

@rgardnercook , did you solve this issue? If not, it might be helpful for the ESRI people here if you could share a Map Package with the data and the results of the Load OSM File tool.

Also, what was the source of your osm *.xml file that you fed to the Load OSM File tool? If it is some custom extraction of only highways, not a Geofabrik or QGIS full download of all data, I guess some stuff to create the network might be missing, although I think it unlikely it would fail after 1 hour in that case, instead of much sooner. Actually, the error message ("The row contains a bad value. [RestrictionType]"), seems more to indicate some unknown value in a specific row / field, that is apparently not properly handled by the code.

By the way, I am slightly puzzled by the file path you are showing, which has the resulting File Geodatabase in a path with the osm xml filename and *.osm file extension. Maybe benign, but something to probably avoid. ( "J:\new-york_new-york.osm\New File Geodatabase.gdb\NYC_OSM_features")

rgardnercook commented 6 years ago

@mboeringa , thanks for the response. I was away from the office for an extended period of time. Now I'm on a new workstation, and starting this from scratch.

Regarding the network configuration file, I just used the default "DriveGeneric" file under C:\Program Files\ArcGIS\Desktop10.5\ArcToolbox\Toolboxes\ND_ConfigFiles. That should work, right?

I tried using the same set of features that I generated back in December using the Load OSM tool and got the same error I posted above.

On this new workstation, I started from scratch with Load OSM. It didn't work, spitting out this error: Executing: OSMGPFileLoader "S:\~ArcMap Network Dataset for NYC\new-york_new-york.osm" CONSERVE_MEMORY ALL "S:\~ArcMap Network Dataset for NYC\OSM_NYC" "S:\~ArcMap Network Dataset for NYC\OSM_NYC\OSM_NYC_osm_pt" "S:\~ArcMap Network Dataset for NYC\OSM_NYC\OSM_NYC_osm_ln" "S:\~ArcMap Network Dataset for NYC\OSM_NYC\OSM_NYC_osm_ply" Start Time: Tue Apr 17 10:21:08 2018 Counting elements in OSM file... Counted 11637914 nodes, 1825722 ways, and 10531 relations. Preparing geodatabase... Object reference not set to an instance of an object. at ESRI.ArcGIS.OSM.GeoProcessing.OSMGPFileLoader.Execute(IArray paramvalues, ITrackCancel TrackCancel, IGPEnvironmentManager envMgr, IGPMessages message) Failed to execute (OSMGPFileLoader). Failed at Tue Apr 17 10:24:27 2018 (Elapsed Time: 3 minutes 18 seconds)

Then I tried to use the Download tool, and got this error: Executing: DownloadExtractSymbolizeOSMData2 "-74.5009990999999 40.345 -73.2259999999999 41.097" true "S:\~ArcMap Network Dataset for NYC\OSM_NYC" "OSM Group Layer" Start Time: Tue Apr 17 11:35:19 2018 Executing (Download OSM Data): OSMGPDownload http://www.openstreetmap.org "-74.5009990999999 40.345 -73.2259999999999 41.097" DO_NOT_INCLUDE_REFERENCES "S:\~ArcMap Network Dataset for NYC\OSM_NYC" "S:\~ArcMap Network Dataset for NYC\OSM_NYC\OSM_NYC_osm_pt" "S:\~ArcMap Network Dataset for NYC\OSM_NYC\OSM_NYC_osm_ply" Start Time: Tue Apr 17 11:35:39 2018 Debugging... Starting OSM Data download request... Too many automatic redirections were attempted. Object reference not set to an instance of an object. The OpenStreetMap response does not contain valid elements. (Download OSM Data) aborted by User. Failed at Tue Apr 17 11:35:47 2018 (Elapsed Time: 8.23 seconds) (DownloadExtractSymbolizeOSMData2) aborted by User. Failed at Tue Apr 17 11:35:47 2018 (Elapsed Time: 28.19 seconds)

At this point I suspect I'm not doing something properly. One thing I read is that for the Download tool to work, one must save it to the default gdb. I'll give it a try. Any other ideas?

Thanks!

chenna997 commented 5 years ago

I have the exactly the same issue like you: Populating Turn Features from OSM Relations

The row contains a bad value. [RestrictionType]

Did you fix this issue?

Thanks,

--Na

rgardnercook commented 5 years ago

Unfortunately, no. I ended up getting a completed network dataset from someone else at work. I'd still like to figure it out in case I need to build it again from scratch.

Good luck!

On Wed, Dec 5, 2018 at 5:58 PM chenna997 notifications@github.com wrote:

I have the exactly the same issue like you: Populating Turn Features from OSM Relations

The row contains a bad value. [RestrictionType]

Did you fix this issue?

Thanks,

--Na

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Esri/arcgis-osm-editor/issues/182#issuecomment-444683935, or mute the thread https://github.com/notifications/unsubscribe-auth/AhFe5ApfZn7RDDP9zQ3KpfwxPvzOm_ZDks5u2E-NgaJpZM4RIpad .

chenna997 commented 5 years ago

Thanks for the response. I am also still working on that. I will update with you if I can get it fixed.

--Na

On Mon, Dec 17, 2018 at 8:55 AM rgardnercook notifications@github.com wrote:

Unfortunately, no. I ended up getting a completed network dataset from someone else at work. I'd still like to figure it out in case I need to build it again from scratch.

Good luck!

On Wed, Dec 5, 2018 at 5:58 PM chenna997 notifications@github.com wrote:

I have the exactly the same issue like you: Populating Turn Features from OSM Relations

The row contains a bad value. [RestrictionType]

Did you fix this issue?

Thanks,

--Na

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/Esri/arcgis-osm-editor/issues/182#issuecomment-444683935 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AhFe5ApfZn7RDDP9zQ3KpfwxPvzOm_ZDks5u2E-NgaJpZM4RIpad

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Esri/arcgis-osm-editor/issues/182#issuecomment-447853830, or mute the thread https://github.com/notifications/unsubscribe-auth/AkqMavDvNBFEJXxr8ZmN2vdzf9pe4i1Wks5u56JdgaJpZM4RIpad .

ThomasEmge commented 5 years ago

Fixed with #201