[MapProxy] Difficulty setting up Custom Projections
Marc Harter
mharter at adc4gis.com
Tue Jun 8 16:51:21 EDT 2010
Tried Ubuntu 10.04 and am ending up with the same errorno: 2. The file is named lowercase "espg" (without quotes) and no extension right? That's the only file I have in the srs directory.
Thanks for your time,
Marc
________________________________________
From: Oliver Tonnhofer [olt at omniscale.de]
Sent: Tuesday, June 08, 2010 2:27 AM
To: Marc Harter
Cc: mapproxy at lists.osgeo.org
Subject: Re: [MapProxy] Difficulty setting up Custom Projections
Hi,
On 07.06.2010, at 21:52, Marc Harter wrote:
> I have this setup in my proxy.yaml file:
>
> srs:
> proj_data_dir: "/var/www/mapproxy/srs"
>
> In that directory I have a file called 'espg' that contains this:
>
> <103930> +proj=tmerc +lat_0=44.66111111111111
> +lon_0=-92.63333333333334 +k=1 +x_0=141732.2834645669 +y_0=0
> +a=6378413.671 +b=6357028.9851403 +to_meter=0.3048006096012192
> +no_defs <>
That looks good and it works on my system.
> When I try to start my development server I get this stacktrace:
>
> $ paster serve etc/develop.ini --reload
> [...]
> return _Proj.__new__(self, projstring)
> File "_proj.pyx", line 25, in _proj.Proj.__cinit__ (_proj.c:562)
> RuntimeError: no system list, errno: 2
"no system list" means that the projection init file was not found.
Can you double check that you have a /var/www/mapproxy/srs/epsg file
that is readable by the user.
If a specific EPSG code is not found, the error should be "no options
found in 'init' file".
I have to admit that the error messages from pyproj are not very
helpful.
Regards,
Oliver
--
Oliver Tonnhofer <olt at omniscale.de>
Omniscale - Dominik Helle, Oliver Tonnhofer GbR
Nadorster Str. 60, 26123 Oldenburg
Tel: +49(0)441/9392774-2 (Fax: 9)
More information about the MapProxy
mailing list