[gdal-dev] Add and register a driver to OGR - How to ?
Mateusz Loskot
mateusz at loskot.net
Thu Apr 24 08:09:34 EDT 2008
Gregor Fikoczek wrote:
> Hallo @ all,
>
> i am a newbie and trying to add and register a driver to OGR, but it fails.
> Can anyone post me a short how to?
>
> What i've done:
>
> 1. I copied the directory with sources (called 'nas'),
> to 'gdal-1.5.1/ogr/ogrsf_frmts/'
>
> Now I don't konow how I can register the driver, I tried the following:
>
> 2. Eding the line 'void CPL_DLL RegisterOGRNAS();' to the
> file 'gdal-1.5.1/ogr/ogrsf_frmts/ogrsf_frmts.h'
> (Maybe I have to register the driver anywhere else???)
>
> In the end i tested the formats
> with: 'gdal-1.5.1/ogr/ogrsf_frmts/apps/ogrinfo --formats' but there was no
> supported format called 'nas'
Greg,
AFAIK, the NAS driver depends on Xerces. Check the ./configure output if
Xerces is detected properly.
The NAS driver is automatically enabled when GDAL is built with Xerces.
Greetings
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the gdal-dev
mailing list