1.Open the Shapefile
Attention:
Need to destroy the object, or might arouse insufficient memory!
Create: OBJ_new
Destroy: OBJ_Destroy
pro read_shapefile
shapefile='C:/ESRI/ESRIDATA/WORLD/country.shp' ; shapefile file path
oshp=Obj_New('IDLffShape',filename)
print, oshp
; process code, to be added ...
Obj_destroy,oshp ;destroy the object
end
if error happen, oshp will be -1,else the struct
2.Obtain the Attribute Info
Need to read the attribute info. Shapefile is made up of "Entity" and "Attribute table".
Entity contains point, polyline, polygon and etc.
Attribute table contains structure of attr, number of field, number of record, etc
Global attribute of shapefile
How many entities and record?