FSX Error 6 from gdalwarp

#1
I downloaded aerial images from National Map to use as photo scenery. Tried using gdalwarp to convert images to wgs84 projection. Data provided was NAD 83 / UTM zone 16. Spatial Reference.org returns this as EPSG:26916(changed from 16916 to 26916). I get "ERROR 6: EPSG PCS/GCS code 26916 not found in EPSG support files." when I tried to convert the first image. Does anyone know what causes this?

Ed
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
Hi,

Is GDAL installed correctly? It could be the epsg data file is missing.

If the images you downloaded are geotiff files you usually don't have to tell which projection they now have. You can just tell to which projection you want to convert.
 
#4
Arno,
GDAL is probably not installed correctly. This is my first attempt to use it and I really have no idea what the correct installation procedure is. I have already copied all of the dlls into the apps folder as a shortcut to fix the missing *.ddl error messages I got on the first few attempts. Also copied gcs.csv to the same folder. Now I get the error 6 message. Any advice you can give on using gdal would be appreciated.

Rhumabaflappy,

My error. The correct value is 26916. See image below.

Ed
26916.jpg
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#5
Hi,

Copying around DLL files to make things work is never a good idea. GDAL is a bit tricky, since it has a data folder with needed datafiles as well. If it can't find that folder you might have trouble.

I would advice you to use the OSGeo4W installer to install GDAL. Then use the OSGeo4W shell. It has all the environment variables set correctly.
 
#9
One more question. Does anyone know what image format is best for photo scenery? Any advantage to using one format over the other between bmp, tga, or tif? Thanks.

Ed
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#10
Hi,

I prefer to work with GeoTiFF because that makes the inf file much simpler. You don't need to provide so much coordinates and other numbers. But besides that any format that doesn't compress your photo and loses information would be fine.
 
#11
Thanks Arno. As was stated on another thread here in the past the USGS no longer distributes aerial imagery in GeoTiFF format in order to speed up the download time and improve their service. Since I have to convert from their Jpeg2000 format I just thought I would see if one of the formats was considered to be better. By the way gdal converts the projection type and the image format in one pass. Nice.

Ed
 
Top