[gdal-dev] kmlsuperoverlay driver

Vincent Schut schut at sarvision.nl
Fri Sep 24 09:25:16 EDT 2010


  On 09/23/2010 02:48 PM, Vincent Schut wrote:
>  Hi,
>
> I was curious about the new gdal klmsuperoverlay driver 
> (frmts/kmlsuperoverlay). I have installed minizip, and ran make in the 
> frmts/kmlsuperoverlay folder, which resulted in a 
> kmlsuperoverlaydataset.o. Now what? How would I incorporate this into 
> my gdal lib, either internally or as a plugin? I tried to search 
> google to no avail, documentation (or my searching abilities) appears 
> to be a bit sparse...

No one?

Shamelessly bumping my own message with some more info:
I've tried creating a .so from the .o (gcc -shared 
-Wl,-soname,kmlsuperoverlaydataset.so -o kmlsuperoverlaydataset.so 
kmlsuperoverlaydataset.o -lminizip -lsz -ljpeg -lgdal) and copying that 
in /usr/local/lib/gdalplugins, but gdalinfo --formats still doesn't show 
kmlsuperoverlay as a supported format. Stracing gdalinfo shows that it's 
stat-ing /usr/local/lib/gdalplugins, however, nothing is loaded from there.
Now I might be missing something essential when creating the .so; I've 
just copied some stuff from other plugin formats' makefiles... I'd be 
grateful if anyone could shine some more light on it, even just by 
saying, hey, don't bother, kmlsuperoverlay is only supported on 
windows/not working/eating your root fs/whatever reason there is to not 
try to use it...

(strace output | grep -i plugin:
...
open("/usr/local/lib/gdalplugins", 
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fcntl(3, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
getdents(3, /* 3 entries */, 32768)     = 96
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x7f323e014000
write(1, "Supported Formats:\n  VRT (rw+): "..., 3812Supported Formats:
   VRT (rw+): Virtual Raster
   GTiff (rw+v): GeoTIFF
   ...
)

Regards,
Vincent.
>
> Btw, I'm on linux and using gdal from svn.
>
> Regards,
> Vincent.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list