[mapserver-users] Fwd: Rasterprojection with tiff support
Steve Lime
steve.lime@dnr.state.mn.us
Wed, 26 Jun 2002 09:15:07 -0500
Received: from mail.state.mn.us
(state.mn.us [156.99.125.109])
by co5.dnr.state.mn.us; Wed, 26 Jun 2002 03:53:30 -0500
Return-Path: <silke@intevation.de>
Received: from lists.gis.umn.edu by mail.state.mn.us with ESMTP for steve.lime@dnr.state.mn.us; Wed, 26 Jun 2002 03:53:28 -0500
Received: from mail.intevation.de (aktaia.intevation.org [212.95.126.10])
by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with ESMTP id DAA06549
for <mapserver-bugs@lists.gis.umn.edu>; Wed, 26 Jun 2002 03:54:22 -0500 (CDT)
Received: from eukrante.keller (eukrante.hq [192.168.11.14])
by mail.intevation.de (Postfix) with SMTP id 571CA1B6D9
for <mapserver-bugs@lists.gis.umn.edu>; Wed, 26 Jun 2002 10:53:22 +0200 (CEST)
Received: (nullmailer pid 2277 invoked by uid 1054);
Wed, 26 Jun 2002 08:53:21 -0000
Date: Wed, 26 Jun 2002 10:53:21 +0200
From: Silke Reimer <silke@intevation.de>
To: mapserver-bugs@lists.gis.umn.edu
Subject: Rasterprojection with tiff support
Message-Id: <20020626085321.GA31857@intevation.de>
User-Agent: Mutt/1.3.28i
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hallo!
I build an application with the Mapserver 3.6. When I wanted to
try out raster reprojection I got the following error message:
"Raster reprojection supported only with the GDAL library.".
I build the binary with gdal, ogr and proj-support.
./configure --with-proj --with-gdal --with-ogr
Since I didn't find out any explanation I looked into the source
code and found out, that raster reprojection is only possible when
tiff-support is disabled,
./configure --with-proj --with-gdal --with-ogr --without-tiff
since before the reprojection the mapserver checks
first, if gdal-support is enabled but also if tiff-support is
disabled:
---- in mapraster.c -------
#if !defined(USE_GDAL) || defined(USE_TIFF)
if (memcmp(dd,"II*\0",4)==0 || memcmp(dd,"MM\0*",4)==0) {
if(layer->transform &&
msProjectionsDiffer(&(map->projection), &(layer->projection))) {
msSetError(MS_MISCERR, "Raster reprojection supported
only with the GDAL library.", "msDrawRasterLayer( TIFF )");
-----------------------------
So I suggest to change the first line to
#if !defined(USE_GDAL)
I tried it out and it seems to work fine but perhaps I have
foreseen something (?).
Best regards
Silke
--
Silke Reimer
Intevation GmbH http://intevation.de/
FreeGIS http://freegis.org/