[gdal-dev] gdal2tiles.py cannot find EPSG:900913, sees only GDAL 1.6.1

Jeffrey Warren jeff at unterbahn.com
Wed Jul 28 10:08:30 EDT 2010


Thanks, chris - figured the 1.6.1 was the reason... is gdal2tiles' link to
GDAL via gdal-python, and if I figure out how to build the latest
gdal-python this will go away?

And if so, has anyone else had this issue with a missing header file called
swq.h?

output when I try to build gdal-python, either from source or with
easy_install:

In file included from extensions/ogr_wrap.cpp:2808:
/usr/local/include/ogr_p.h:94:17: error: swq.h: No such file or directory
In file included from extensions/ogr_wrap.cpp:2808:
/usr/local/include/ogr_p.h:105: error: 'swq_field_type' does not name a type
error: Setup script exited with error: command 'gcc' failed with exit status
1

(relevant ticket again: http://trac.osgeo.org/gdal/ticket/3468)

I'm attempting to install gdal-python from what appears to be the
gdal-python source downloads as GDAL-1.7.1.tar.gz  --- from
http://pypi.python.org/pypi/GDAL/#downloads but shouldn't it already be
installed via swig in the main gdal installation? If so, why is everything
else in the main gdal install showing 1.7.2 but gdal2tiles.py showing 1.6.1?

Jeff

On Wed, Jul 28, 2010 at 5:21 PM, christopher.schmidt at nokia.com <
christopher.schmidt at nokia.com> wrote:

>
> On Jul 28, 2010, at 9:10 AM, ext Jean-Claude REPETTO wrote:
>
> > Le 28/07/2010 14:05, Jeffrey Warren a écrit :
> >> I'm getting this error when running gdal2tiles.py with even default
> >> parameters, on files which run fine on another separate machine:
> >>
> >> ERROR 6: EPSG PCS/GCS code 900913 not found in EPSG support files.  Is
> >> this a valid EPSG coordinate system?
> >>
> >
> > No, the correct code for Google Maps is EPSG:3857.
>
> 900913 is a common alias, and one that I believe is
> supported by GDAL. EPSG:3857 didn't exist when 1.6.1
> was released, afaik, so it definitely wouldn't be supported.
>
> (Standards don't necessarily match reality.)
>
> > <
> http://www.epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::3857&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:3857
> >
> >
> > Jean-Claude
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100728/2c536fcc/attachment.html


More information about the gdal-dev mailing list