Ticket #287 (closed Defect: fixed)

Opened 9 months ago

Last modified 6 months ago

On ArcGIS 9.3, GSHHS 1.4 Database to ArcGIS Polygons tool fails with Invalid Topology [Topoengine error.]

Reported by: jjr8 Assigned to: jjr8
Priority: Medium Milestone: 0.7
Component: Tools - Data Products - GSHHS Version:
Keywords: Cc:

Description

Here is the full output from the tool:

Executing (GSHHS 1.4 Database to ArcGIS Polygons): GSHHSToArcGISPolygonFeatures C:\MGETTest\DataProducts\GSHHS\gshhs\gshhs_c.b C:\MGETTest\DataProducts\GSHHS\gshhs_c.shp true
Start Time: Tue Sep 30 16:54:28 2008
Running script GSHHSToArcGISPolygonFeatures...
Reading GSHHS polygons from C:\MGETTest\DataProducts\GSHHS\gshhs\gshhs_c.b.
Writing 1867 polygons to a temporary feature class.
Finished inserting rows: 0:00:33 elapsed, 1867 rows inserted, 0:00:00.017936 per row.
Splitting polygons into three zones.
Shifting polygons in zone 1 360 degrees to the right.
Finished inserting rows: 0:00:00 elapsed, 4 rows inserted, 0:00:00.037750 per row.
Query complete: 0:00:00 elapsed, 4 rows retrieved, 0:00:00.035000 per row.
Shifting polygons in zone 3 360 degrees to the left.
Finished inserting rows: 0:00:00 elapsed, 1 rows inserted, 0:00:00.050000 per row.
Query complete: 0:00:00 elapsed, 1 rows retrieved, 0:00:00.040000 per row.
Merging the zones and dissolving the polygons.
ERROR 999999: Error executing function.
Invalid Topology [Topoengine error.]
Failed to execute (Dissolve).
ArcGISError: An ArcGIS geoprocessing function failed. This usually results from a problem with your inputs. Please check them and try again. Also review any preceding error messages and the detailed error information that appears at the end of this message. If you suspect the failure is due to a programming mistake in this tool or ArcGIS, please contact the author of this tool for assistance. Detailed error information: ArcGIS Geoprocessor object 0x16707620: Invocation of Dissolve_management(*args=('C:\\Temp\\GeoEcoTemp_Jason\\tmpqikf53\\GSHHSMerged.shp', 'C:\\Temp\\GeoEcoTemp_Jason\\tmpqikf53\\GSHHSOutput.shp', 'PolygonID;Level;Source;Area')) raised ExecuteError: ERROR 999999: Error executing function.
Invalid Topology [Topoengine error.]
Failed to execute (Dissolve).
<class 'GeoEco.ArcGIS.ArcGISError'>: An ArcGIS geoprocessing function failed. This usually results from a problem with your inputs. Please check them and try again. Also review any preceding error messages and the detailed error information that appears at the end of this message. If you suspect the failure is due to a programming mistake in this tool or ArcGIS, please contact the author of this tool for assistance. Detailed error information: ArcGIS Geoprocessor object 0x16707620: Invocation of Dissolve_management(*args=('C:\\Temp\\GeoEcoTemp_Jason\\tmpqikf53\\GSHHSMerged.shp', 'C:\\Temp\\GeoEcoTemp_Jason\\tmpqikf53\\GSHHSOutput.shp', 'PolygonID;Level;Source;Area')) raised ExecuteError: ERROR 999999: Error executing function.
Invalid Topology [Topoengine error.]
Failed to execute (Dissolve).

Failed to execute (GSHHS 1.4 Database to ArcGIS Polygons).
End Time: Tue Sep 30 16:55:14 2008 (Elapsed Time: 46.00 seconds)

The failure is in the ArcGIS Dissolve tool. I spent some time investigating but could not determine the problem. When I modified the tool to run RepairGeometry before running Dissolve it did not help. RepairGeometry did report a bunch of "null geometry" errors, but when I investigated these polygons, their coordinates appeared to be valid although ArcMap would not display them. I checked the XYTolerance to make sure the polygons weren't too small or anything like that.

I am not sure what is going on. This could either be a bug in 9.3, or a behavioral change that is not documented and that I don't know how to work around. More investigation is needed.

Change History

09/30/08 17:06:15 changed by jjr8

  • status changed from new to assigned.

10/01/08 16:17:28 changed by jjr8

  • milestone changed from 0.6 to 0.7.

Postponing this to MGET 0.7. I am not sure what I can do about it, and I do not want to delay the MGET 0.6 release for it.

01/18/09 11:35:31 changed by jjr8

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [351], released in MGET 0.7a9.

The problem seemed to be related to having overlapping polygons. Once I implemented #326, it went away. I still need to do additional testing, however.