[Xastir] geoTiff "Problem in translation"

Curt, WE7U archer at eskimo.com
Wed Dec 17 09:38:04 EST 2003


On Tue, 16 Dec 2003, John W. Palmieri wrote:

> I'm running xastir v1.2.1, proj v4.4.7, geoTiff v1.2.1, and
> tiff v3.6.0. When I try to load the USGS DRG geoTiff files,
> after running mapfgd.pl, I get the error "Problem in
> translating" and it seems GTIFProj4FromLatLong() is failing
> (see map_tif.c).
>
> Any idea where I should start to track this down? I can view
> the geoTiff files correctly in a tiff viewer.

The GTIFProj4FromLatLong() calls end up calling the libproj (PROJ.4)
library to actually do the translation work.  If you already have
libproj installed, then most likely the problem is that you installed
libgeotiff first, and then libproj.  In that case, libgeotiff will
get installed without support for libproj, and you'll get the sort
of problem you described.

Install librpoj, then go through the configure/make/make install
stages of libgeotiff again, then configure/make/make install for
Xastir, and you should be good to go.

BTW:  With the OGR library (comes along with the GDAL library),
which again uses libproj, I'm bringing in all kinds of files with UTM
or state-plane coordinates, and both indexing them and drawing them
in WGS84 datum/geographic coordinates with no problems.  That's an up
and coming thing.  GDAL itself supports geotiff, so we may eventually
get away from libgeotiff and Shapelib, using GDAL/OGR instead.

See the Xastir home page, "!!!Xastir Features!!!" link, "Xastir
Image" to see what USGS SDTS Hypsography files look like on top of a
Terraserver raster image and a couple of Shapefile water layers.
The SDTS files are in UTM projection, NAD27 datum.  They're being
auto-converted to geographic coordinates and WGS84 datum as they're
drawn.  The SDTS files are being drawn by the OGR library, the rest
are standard libraries that have been in Xastir for a while.

-----------------------------------------------------------------
Curt, WE7U			archer at eskimo.com
Arlington, WA, USA		http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U




More information about the Xastir mailing list