[Gdal-dev] Re: Changes to
Geo::OSR::SpatialReference->ImportFromXXX() methods?
Ari Jolma
ari.jolma at tkk.fi
Sat Nov 10 10:33:29 EST 2007
Ethan Alpert kirjoitti:
>
> Greetings, I recently compiled the the svn-trunk from 11/06. It seems
> the import functions interface has changed and tries to match the
> char** interface of the native library. I had to patch ImportFromESRI
> because I couldn’t figure out how to pass projection strings.
>
> Do you have an example of how to create a perl array which
> ImportFromESRI will now accept?
>
In fact I'm not sure what change you refer to. I've so far used these
functions very little. The ImportFromESRI accepts a reference to an
options array (similarly to the native library) as you say but I have
little clue what it should contain. All ESRI prj files I find contain
WKT, which ImportFromWkt happily accepts. The usage should be
use Geo::GDAL;
$a = Geo::OSR::SpatialReference->new();
$a->ImportFromESRI([ ...list of strings here... ]);
I'm cc'ing this to the gdal-list, probably somebody there can enlighten
us about the old style prj files.
Ari
>
> Thanks,
>
> -ethan
>
--
Prof. Ari Jolma
Geoinformaatio- ja paikannustekniikka / Geoinformation and positioning
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma
More information about the gdal-dev
mailing list