[FWTools] FWTools Library Version

Frank Warmerdam warmerdam at pobox.com
Sun Jan 1 14:17:15 EST 2006


On 1/1/06, Lennox Antoine <lxnyce at gmail.com> wrote:
> Hi All,
>
> I am trying to find out why I can't use the FWTools version of
> GDAL/OGR on Windows instead of the version I built. Was it built as
> Multithreaded instead of Multithreaded DLL?
>
> The symtoms I am seeing is that rasters will load, but if you pass an
> invalid raster (like a shapefile) an exception gets thrown instead of
> the function returning NULL.
>
> Vectors will not load at all. An exception is always thrown. I tried
> converting to use the C api, and I still get the same results. OGROpen
> will throw an exception even though the shape file is valid.
>
> I ran ogrinfo.exe included with FWTools on the same shapefile and it
> worked. It also works with the GDAL I compile myself as well. I tried
> with 0.0a7 and 0.08. Any ideas? I would really like to use the ArcSDE
> and PostGIS support of the FWTools dll.

Lennox,

I suspect that the problem is subtle differences in the API versions
resulting in incompatibility.  That is certainly common with ogrinfo
and ogr2ogr which use the C++ API (which is very ABI-fragile).

Note that FWTools tracks the CVS version of the API at the time it
is prepared, and won't generally match up with C++ applications
built against other versions.  C applications should generally be ok.

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