Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there any tool or software except ArcGIS which I can use for converting coverage (.adf) files to shapefiles?

share|improve this question
add comment

3 Answers 3

up vote 4 down vote accepted

OGR can read ArcInfo binary coverages. If it is a vector coverage, and you have both the coverage directory AND the info directory (see coverage format) then you can use ogr2ogr to convert to a shapefile.

Edit: This assumes you are actually trying to convert a vector coverage, not a grid coverage. To check, look in the coverage directory, if you have files like hdr.adf and w001001.adf then it is a grid. If it has files like pat.adf or arc.adf then it is a vector coverage. You can also use ogrinfo or gdalinfo, ogrinfo will return information if it is a vector coverage and fail if it is a grid and vice versa for gdalinfo. If you really want to convert a grid coverage to a shapefile, then you could use gdal_polygonize gdal_rasterize.

share|improve this answer
    
The OGR format site indicates .adf files are usually a Grid or Raster layer, so use GDAL to convert it to another raster format. If you have Vector (polygon,line,point) data use ogr2ogr to convert to .shp. TatukGIS Viewer (free)will open both Coverage types to help you view your data. –  klewis Jan 20 '12 at 3:02
    
No it absolutely does not indicate that .adf files are usually grids. It states that If the directory contains files with names like w001001.adf then the coverage is a grid coverage. The important bit there is like w001001. Coverage directories contain files like pat.adf, pal.adf. –  Luke Jan 20 '12 at 3:22
    
Thank you, I was mistaken about the adf files, but the rest of my comment is correct. Instead of guessing the data type, view it in TatukGIS. Convert vector data using ogr2ogr, convert raster data (typo corrected) using gdal. –  klewis Jan 20 '12 at 3:55
    
Luke, you are mistaken about recommending gdal_rasterize. gdal_rasterize does not create a vector shapefile, it updates an image by intersecting a vector file. Please see gdal_polygonize.py instead. Also, take a chill pill. –  klewis Jan 20 '12 at 4:17
    
Thanks for the tip about TatukGIS, I'd never heard of it. QGIS would also be of use as it makes use of gdal and ogr under the hood. –  Luke Jan 20 '12 at 4:19
show 4 more comments

An .adf file in a coverage is a raster file, not a vector, so you can't go directly to a shapefile without coverting to a vector. You could use GDAL_Polygonize (available in QGIS) to do the conversion. This will take the raster and covert it to a vector.

Having said that it's possible, it's often not really a good idea unless the data really wasn't fit to be a raster in the first place. What are you hoping to do?

share|improve this answer
1  
The files in vector coverage directories are mostly *.adf –  Luke Jan 20 '12 at 1:19
add comment

A coverage is a set of files. You can't just pick a .adf file out of a coverage. A coverage consists of all the files in that folder plus files in the info directory. I believe only ESRI software reads coverages.

I assume this is related to your other question about climate data, which is stored in raster format. Shapefiles are a vector format. Please research the difference between raster and vector data.

share|improve this answer
1  
OGR reads ArcInfo binary coverages –  Luke Jan 20 '12 at 3:23
    
Thanks for that. Based on this submitter's other questions, he is trying to download grid-based climate data from worldclim.org. So he should use GDAL over OGR, and I see now that GDAL supports grid coverages. gdal.org/frmt_various.html#AIG –  KevinMayall Jan 20 '12 at 14:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.