On Wednesday 06 October 2010 14:38:31 Joel Odom wrote:
> Is there a canonical way to pick an OGR driver based on a file name or on a
> generalized connect string?
No, but you can do a generic open, as in:
datasource = ogr.Open(filename)
Cheers,
--
--
Iván Sánche
Thanks, Frank.
I understand the purist argument against this, though I think that 90% of
the time you can look at a connection string for a data source and determine
what the output driver should be. I'd like to see this feature in the
future, but I understand that it would need a caveat that it
Joel Odom wrote:
Is there a canonical way to pick an OGR driver based on a file name or
on a generalized connect string? (For example, if the file name ends in
".shp", it would select the Shapefile driver.) Thanks.
Joel,
No.
I really wanted to send this out with just that one word answer,
Is there a canonical way to pick an OGR driver based on a file name or on a
generalized connect string? (For example, if the file name ends in ".shp",
it would select the Shapefile driver.) Thanks.
--
http://www.operationliberate.com/
___
gdal-dev ma