Summary
#define IOCTLDISKGETDRIVEGEOMETRY CTLCODE(IOCTLDISKBASE, 0x0000, METHODBUFFERED, FILEANYACCESS) From winioctl.h, Don't ask me to translate that to pascal:-) I'm not a C programmer but from what I can make of the header file IOCTLDISKGETDRIVEGEOMETRY is a combination of the following constants. Besides, it is also a hard drive manager that you can use to repartition hard drive, convert partition between FAT32 and NTFS safely, etc. If you need to convert MBR to GPT on Windows Server, the AOMEI Partition Assistant Server supports Windows Server 2003, 2008 (R), 2012 (R), 2016. Rerun the Check Geometry and Repair Geometry tools as many times as required. Export the data to a geodatabase, and copy it back to a new shapefile. If the data is on a network drive, copy it to a local drive. If the data is on a local drive, copy it to the root of the primary drive; for example, C:.
Inspects each feature in a feature class for geometry problems. Upon discovery of a geometry problem, a relevant fix will be applied, and a one-line description will be printed identifying the feature as well as the problem encountered.
Valid inputs are shapefiles, personal, and file geodatabase feature classes.
Usage
This tool uses the same logic as the Check Geometry tool to evaluate problems with feature geometry.
Below is the list of geometry problems and the corresponding fix that will be performed by the tool:
- Null geometry: The record will be deleted from the feature class. To keep records with null geometry, uncheck Delete Features with Null Geometry (use the KEEP_NULL option on thedelete_null parameter in Python).
- Short segment: The geometry's short segment will be deleted.
- Incorrect ring ordering: The geometry will be updated to have the correct ring ordering.
- Incorrect segment orientation: The geometry will be updated to have the correct segment orientation.
- Self intersections: The areas of overlap in a polygon will be dissolved.
- Unclosed rings: The unclosed rings will be closed by connecting the ring's end points.
- Empty parts: The parts that are null or empty will be deleted.
- Duplicate vertex: One of the vertices will be deleted.
- Mismatched attributes: The Z or M coordinate will be updated to match.
- Discontinuous parts: Multiple parts will be created from the existing discontinuous part.
- Empty Z values: The Z value will be set to 0.
- Bad envelope: The feature's envelope will be updated to be correct.
After applying a fix listed above, the tool will reevaluate the resulting geometry, and if another problem is discovered, the relevant fix will be performed. For example, the result of fixing a geometry with the Incorrect ring ordering problem may yield a geometry with the Null geometry problem.
There is no fix in Repair Geometry for the bad dataset extent problem. To resolve this problem, run the Add Spatial Index tool on the dataset.
SDE geodatabases automatically check and repair feature geometries when the features are uploaded to the database, so using the Check Geometry and Repair Geometry tools with SDE feature classes is unnecessary.
Caution:
This tool modifies the input data. See Tools with no outputs for more information and strategies to avoid undesired data changes.
Syntax
Parameter | Explanation | Data Type |
The feature class or layer that will be repaired. Valid input features are shapefiles and personal and file geodatabase feature classes. | Feature Layer | |
delete_null | Specifies what action to take on null geometries.
| Boolean |
Code sample
RepairGeometry example 1 (Python window)
The following Python window script demonstrates how to use the RepairGeometry function in immediate mode.
RepairGeometry example 2 (stand-alone script)
The following stand-alone script is an example of how to apply the RepairGeometry function in scripting.
Environments
Licensing information
- ArcGIS for Desktop Basic: Yes
- ArcGIS for Desktop Standard: Yes
- ArcGIS for Desktop Advanced: Yes
Related topics
Page 1 of 1 | [ 6 posts ] |
|
Author | Message | |
---|---|---|
| ||
Joined: October 4th, 2010, 0:24 Posts: 4 Location: /dev/null |
| |
Top |
| ||
Joined: September 8th, 2009, 18:21 Posts: 13350 Location: Australia |
| |
Top |
Victoria Hdd Invalid Drive Geometry
| ||
Joined: July 18th, 2006, 3:05 Posts: 7532 Location: ITALY |
| |
Top |
| ||
Joined: October 4th, 2010, 0:24 Posts: 4 Location: /dev/null |
| |
Top |
| ||
Joined: September 8th, 2009, 18:21 Posts: 13350 Location: Australia |
| |
Top |
Invalid Drive Geometry Reparar
| ||
Joined: July 18th, 2006, 3:05 Posts: 7532 Location: ITALY |
| |
Top |
Invalid Drive Geometry Game
Page 1 of 1 | [ 6 posts ] |