[FWTools] FWTools without extend format support
Frank Warmerdam
fwarmerdam at gmail.com
Mon Apr 25 10:15:38 EDT 2005
On 4/25/05, Martin Fix <Martin.Fix at ptv.de> wrote:
>
>
> Hi everyone,
>
> I would like to use the fwtools package just for the handling of
> OGRSpatialReference objects and
> OGRCoordinateTransformation actions.
>
> It works very well but I wonder if it would be possible to omit the large
> number of DLL's needed
> by fwtools because they're just not needed.
>
> Would it be better / easier to use the "pure" GDAL.DLL and PROJ4.DLL?
>
> I'm working with VisualStudio .Net 2003 and need to include the lib's into
> my project.
Martin,
As a proof of concept you should be able to build your software against
the FWTools build, but as you note that is a pretty big bag of dependencies.
I would suggest you not try and disentangle this.
If you need a cleaner set of dependencies, you should just build PROJ
and GDAL yourself. When building your own GDAL you will still
end up building in lots of extra format code you don't need but at least
PROJ should be the only external dependency.
If you want to cut down the default size of the GDAL DLL you can also:
o comment out the INCLUDE_OGR_FRMTS line in nmake.opt.
o modify gdal/frmts/makefile.vc, and trying removing most or all
of the -DFRMT_<frmt> flags in EXTRAFLAGS. I suspect you will
find you need to keep a few of them ... perhaps -DFRMT_gtiff,
and -DFRMT_jpeg since some of the EPSG lookup code is likely
depending on the GeoTIFF code.
I appologise that GDAL/OGR isn't really set up to build the
OGRSpatialReference and OGRCoordinateTransformation classes
alone.
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 FWTools
mailing list