[MapProxy] Problem with custom projections

Guillaume Sueur no-reply at neogeo-online.net
Thu Dec 16 11:01:40 EST 2010


Here it is.
I was surprised to see a whole world extent instead of my grid extent.
Anyway, I think in case bbox goes to default EPSG:4326 values, it should 
then be -180,-89,180,89

Regards

Guillaume

Le 16/12/2010 16:46, Oliver Tonnhofer a écrit :
>
> On 16.12.2010, at 16:29, Guillaume Sueur wrote:
>
>> got it dudes !
>> QGis doesn't like bboxes with miny=-90 and maxy=90. I just set it manually to -89 and 89 int the xml template and it went well.
>
> Good to hear you solved it.
>
>> But please Oliver, tell me where to set that globally !
>
>
> The BBOX depends on your data/configuration. You should see the BBOX of your EPSG:2154 grid in the capabilities, if you have set one. Can you post your configuration?
>
>
> Regards,
> Oliver
>
-------------- next part --------------
services:
  demo:
  kml:
  tms:
    # needs no arguments
  wms:
    srs: ['EPSG:4326', 'EPSG:2154', 'EPSG:27572','EPSG:32631']
    image_formats: ['image/jpeg', 'image/png']
    md:
      # metadata used in capabilities documents
      title: Neogeo MapProxy 
      abstract: Plateforme de test MapProxy.
      online_resource: http://94.23.52.36/
      contact:
        person: Guillaume Sueur
        position: Owner
        organization: Neogeo technologies SARL
        address: 31 Rue des Glycines
        city: TOULOUSE
        postcode: 31500
        country: France
        phone: +49(0)000-000000-0
        fax: +49(0)000-000000-0
        email: guillaume.sueur at neogeo-online.net
      access_constraints:
        This service is intended for private and evaluation use only.
      fees: 'None'

layers:
  osm:
    title: Omniscale OSM WMS - osm.omniscale.net
    sources: [osm_cache]
  brgm_geol: 
    title: Carte Géologique du BRGM
    sources: [brgm_cache]
  ortho_ign:
    title: Orthophotographie IGN
    sources: [ortho_cache]
  # osm_full_example:
  #   title: Omniscale OSM WMS - osm.omniscale.net
  #   sources: [osm_cache_full_example]
    
caches:
  osm_cache:
    grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]
    sources: [osm_wms]
  brgm_cache:
    grids: [global_geodetic_sqrt2, L93, GLOBAL_MERCATOR]
    sources: [brgm_wms]
    meta_buffer: 20
    meta_size: [5,5]
    link_single_color_images: true
  ortho_cache:
    grids: [global_geodetic_sqrt2, L93, GLOBAL_MERCATOR]
    sources: [ortho_wms]
    meta_buffer: 20 
    meta_size: [4,4]
    link_single_color_images: true
    
  # osm_cache_full_example:
  #   meta_buffer: 20
  #   meta_size: [5, 5]
  #   format: image/png
  #   request_format: image/tiff
  #   link_single_color_images: true
  #   use_direct_from_level: 5
  #   grids: [grid_full_example]
  #   sources: [osm_wms, overlay_full_example]


sources:
  osm_wms:
    type: wms
    req:
      url: http://osm.omniscale.net/proxy/service?
      layers: osm
  brgm_wms:
    type: wms
    req:
      url: http://geoservices.brgm.fr/geologie
      layers: SCAN_F_GEOL1M,SCAN_D_GEOL50
      transparent: true
    wms_opts:
      version: 1.1.1
      featureinfo: false
    supported_srs: ['EPSG:4326','EPSG:4171','EPSG:2154','EPSG:32631']
    supported_formats: ['image/png','image/jpeg']
    concurrent_requests: 4
  ortho_wms:
    type: wms
    req:
      url: http://mapsref.brgm.fr/WMS/mapserv?map=/carto/RefCom/mapFiles/FXX_RefIGN-RGF.map
      layers: ORTHO
      transparent: true
    wms_opts:
      version: 1.1.1
      featureinfo: false
    supported_srs: ['EPSG:2154']
    supported_formats: ['image/png','image/jpeg']
    concurrent_requests: 4
    
  # overlay_full_example:
  #   type: wms
  #   concurrent_requests: 4
  #   wms_opts:
  #     version: 1.3.0
  #     featureinfo: true
  #   supported_srs: ['EPSG:4326', 'EPSG:31467']
  #   supported_formats: ['image/tiff', 'image/jpeg']
  #   http:
  #     ssl_no_cert_checks: true
  #   req:
  #     url: https://user@password:example.org:81/service?
  #     layers: roads,rails
  #     styles: base,base
  #     transparent: true
  #     # # always request in this format
  #     # format: image/png
  #     map: /home/map/mapserver.map
    

grids:
  global_geodetic_sqrt2:
    base: GLOBAL_GEODETIC
    res_factor: 'sqrt2'
  L93:
    srs: 'EPSG:2154'
    bbox: [-3,42,10,54]
    bbox_srs: 'EPSG:4326'
    #align_resolutions_with: GLOBAL_MERCATOR
    min_res: 40
    max_res: 1
  #  res_factor: 1.5 
  # grid_full_example:
  #   tile_size: [512, 512]
  #   srs: 'EPSG:900913'
  #   bbox: [5, 45, 15, 55]
  #   bbox_srs: 'EPSG:4326'
  #   min_res: 2000 #m/px
  #   max_res: 50 #m/px
  #   align_resolutions_with: GLOBAL_MERCATOR
  # another_grid_full_example:
  #   srs: 'EPSG:900913'
  #   bbox: [5, 45, 15, 55]
  #   bbox_srs: 'EPSG:4326'
  #   res_factor: 1.5
  #   num_levels: 25

globals:
  # # coordinate transformation options
  # srs:
  #   # WMS 1.3.0 requires all coordiates in the correct axis order,
  #   # i.e. lon/lat or lat/lon. Use the following settings to
  #   # explicitly set a CRS to either North/East or East/North
  #   # ordering.
  #   axis_order_ne: ['EPSG:9999', 'EPSG:9998']
  #   axis_order_en: ['EPSG:0000', 'EPSG:0001']
  #   # you can set the proj4 data dir here, if you need custom
  #   # epsg definitions. the path must contain a file named 'epsg'
  #   # the format of the file is:
  #   # <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  <>
  #   proj_data_dir: '/path to dir that contains epsg file'

  # # cache options
  cache:
  #   # where to store the cached images
  #   base_dir: '../var/cache_data'
  #   # where to store lockfiles
  #   lock_dir: '../tmp/tile_locks'
     # request x*y tiles in one step
     meta_size: [5,5]
     concurrent_tile_creators: 4
  #   # add a buffer on all sides (in pixel) when requesting
  #   # new images
  #   meta_buffer: 80


  # image/transformation options
  image:
      resampling_method: nearest
      # resampling_method: bilinear
      # resampling_method: bicubic
  #     jpeg_quality: 90
  #     # stretch cached images by this factor before
  #     # using the next level
  #     stretch_factor: 1.15
  #     # shrink cached images up to this factor before
  #     # returning an empty image (for the first level)
  #     max_shrink_factor: 4.0


More information about the MapProxy mailing list