[Gdal-dev] Linking problem
Frank Warmerdam
fwarmerdam at gmail.com
Thu Sep 8 16:10:58 EDT 2005
On 9/8/05, Curt, WE7U <archer at eskimo.com> wrote:
> On Thu, 8 Sep 2005, Curt, WE7U wrote:
> > Best way to fix this? Temporarily we moved "-lgdal" to the end of
> > our link line. This solved the problem, but of course could cause
> > others.
>
> What should we be looking to do long-term? Switch to using GDAL's
> interface exclusively instead of libproj + shapelib + libgeotiff +
> gdal? We started out using shapelib/libproj/libgeotiff years ago.
> GDAL is a relatively new addition to our project.
>
> I assume that the libproj/shapelib/libgeotiff API's are not visible
> from GDAL, correct, so we'll have to use GDAL + OGR API's
> exclusively in that case?
>
> If so it'll take us quite a while to get there, plus we have a bunch
> of optimizations/customizations in our shapefile and geotiff drawing
> code that we'll have to carefully convert.
Curt,
Well, more obvious solution in the short term is to ensure that
external versions of libtiff, and libgeotiff are used by GDAL even
if it means upgrading to more recent versions. It may well make
building somewhat of a hassle, as you might not be able to use
the system version of libtiff for instance.
In the long term, I would encourage you to use GDAL for all your
raster needs (at least replacing tiff/geotiff). If you run into particular
issues that you find you currently need direct access for, perhaps
I can help.
OGR will have some extra overhead over using shapelib directly.
I don't know if this is a big factor or not.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list