[gdal-dev] building and using an OGR plugin

Ian Turton ijturton at gmail.com
Wed Nov 16 11:12:44 EST 2011


On 16 November 2011 15:44, Howard Butler <hobu.inc at gmail.com> wrote:
>
> On Nov 16, 2011, at 9:42 AM, Ian Turton wrote:
>
>> I've been developing an OGR format to read in my employers' file
>> format. All works fine when I build the new format in directly but it
>> would probably make sense to provide the code as a plugin rather than
>> having to build and link our own dll's for the whole library. So I
>> followed the instructions at
>> http://trac.osgeo.org/gdal/wiki/BuildingOnWindows#Pluginbuildingexample
>> (and the fgdb example) and I have a plugin dll that according to
>> dependency walker seems to refer to all the right things. But when I
>> run ogrinfo (for example) it doesn't see my format any longer. I've
>> set GDAL_DRIVER_PATH to point to the folder containing the plugin, is
>> there some other step I should be looking for?
>
> set CPL_DEBUG=on to watch it try to register the drivers. This might provide some insight.
>

I think I must be missing something as setting that (or --debug=on)
seems to make no difference to the output

C:\Users\ian.turton\src-msvc2010\gdal>apps\ogrinfo.exe --debug=on --formats
Supported Formats:
  -> "ESRI Shapefile" (read/write)
  -> "MapInfo File" (read/write)
  -> "UK .NTF" (readonly)
  -> "SDTS" (readonly)
  -> "TIGER" (read/write)
  -> "S57" (read/write)
...

Ian

-- 
Ian Turton


More information about the gdal-dev mailing list