[MapProxy] Custom projections problem

Oliver Tonnhofer olt at omniscale.de
Mon Jul 8 05:58:47 PDT 2013


On 08.07.2013, at 07:01, Максим Хитрин wrote:
> I've got a problem with adding a custom projection definition.
> 
> So, I've made a file named "epsg", add it to the directory "epsg" in mapproxy folder and add this definition in it:
> 
> <100741> +proj=tmerc +lat_0=0 +lon_0=58.03333333333 +k=1 +x_0=1300000+y_0=-5509414.70 +ellps=krass +towgs84=23.57, -140.95, -79.8, 0, 0.35,0.79, -0.22 +units=m +no_defs <>
> 
> Also, marked it in mapproxy.yaml
> 
> srs:
>   proj_data_dir: 'epsg\'
> 
> [...]
> RuntimeError: no options found in 'init' file

That Proj4 error does mean that it found the epsg file, but not a specific projection. The file replaces the system epsg file, so make sure that all EPSG codes that MapProxy uses are defined in this file. (EPSG:4326 for example)


Regards,
Oliver




More information about the MapProxy mailing list