Hi,

preparing the patch, I realized there is something strange, createopt
works only using MEM driver...

GDALCreateCopy, works:

  /* Finaly create user required raster format from memory raster if
in-memory driver was used */
    if (hMEMDS) {
        hDstDS =
            GDALCreateCopy(hDriver, output->answer, hMEMDS, FALSE, papszOptions,
                           NULL, NULL);
        if (hDstDS == NULL)
            G_fatal_error(_("Unable create raster map <%s> using driver <%s>"),
                          output->answer, format->answer);
    }

GDALCreate(), createopt seems to be ignored(?)

...
        hDstDS =
            GDALCreate(hDriver, output->answer, cellhead.cols, cellhead.rows,
                       ref.nfiles, datatype, papszOptions);
...

Martin

2007/9/24, Markus Neteler <[EMAIL PROTECTED]>:
>
>
> Markus Neteler wrote:
> >
> > Hi Robert,
> >
> > it seems to be the same bug as it was found and fixed in v.out.ogr
> > some days ago by Martin.
> >
> > I debugged a bit and found that the second part
> > "PROFILE=BASELINE" isn't passed. It gets lost in
> > main.c, line 554.
> >
> > v.out.ogr's main.c (line 249 etc) has a working solution
> > but my try to port it to r.out.gdal failed (no idea why, should be
> > rather easy - but it segfaults for me).
> >
>
> What about moving this multi-option code to
> G_store_multi() or something like this?
>
> Modules with multi-option parameters are
> - r.out.ogr
> - v.out.ogr
> - v.transform (new column parameter)
> - maybe others
>
> ?
>
> Markus
> --
> View this message in context: 
> http://www.nabble.com/r.out.gdal-bug--problems-with-createopt-tf4504650.html#a12855513
> Sent from the Grass - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> grassuser mailing list
> [email protected]
> http://grass.itc.it/mailman/listinfo/grassuser
>


-- 
Martin Landa <[EMAIL PROTECTED]> * http://gama.fsv.cvut.cz/~landa *

_______________________________________________
grassuser mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grassuser

Reply via email to