[gdal-dev] write to GML

Even Rouault even.rouault at mines-paris.org
Sat Jan 22 05:27:36 EST 2011


Le samedi 22 janvier 2011 11:20:48, Mohammed Rashad a écrit :
> this works
> poDS = OGRSFDriverRegistrar::Open( "point_out.xml", FALSE );
>     if( poDS == NULL )
>     {
>         printf( "Open failed.\n" );
>     }
> but the following is not working
> poDS = OGRSFDriverRegistrar::Open( "point_out.xml", TRUE );
>     if( poDS == NULL )
>     {
>         printf( "Open failed.\n" );
>     }
> this given
> an Open failed error.  what I am missing?

Nothing, this is expected behaviour. The GML driver doesn't support updating 
existing files. It can only create a new GML file.


More information about the gdal-dev mailing list