[Gdal-dev] extracing inwatera from vmap0

Frank Warmerdam warmerdam at pobox.com
Thu Dec 22 17:33:56 EST 2005


On 12/22/05, Paul Surgeon <surgpub at telkomsa.net> wrote:
> Nevermind, I got it to work.
>
> It appears that ogr2ogr tries to use some upper case names (*/hydro/L/L/FAC)
> and then it tries lowercase but in the process changes the entire path to
> lower case and then goes through a whole list of combinations and fails.
>
> I removed some upper case letters from the path and it worked but I think it's
> rather silly that it didn't try */hydro/L/L/FAC and then */hydro/l/l/fac
> before messing around with the rest of the path outside of the vmap0 data
> directory.

Paul,

At the risk of sounding defensive, it is the OGDI code that is
doing all this, not OGR itself.  The logic comes from problems
in the past where different unix systems used different "case"
for mounted CDs.  The logic apparently assumes the CD
is mounted directly under the root ... or perhaps the logic
was just broken in the first place.

When I once wrote something similar for PCI, we actually
had logic to determine what part of the path was "on the cd"
so we could just adjust the case of that part.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list