[MapProxy] mapproxy and KML

Friedrich,Martin Martin.Friedrich at evm.de
Fri Jun 1 07:04:49 PDT 2012


Ok,
Thank you, Oliver

Here it is.

URL:
172.16.3.97/kml/osm_EPSG900913/0/0/0.kml
###################################################

Start Parameter: "c:\Python27\Scripts\mapproxy-util serve-develop -b 172.16.3.97:80 c:\mapproxy\mapproxy.yaml"


Konfiguration:
###################################################
services:
  demo:
  kml:
  tms:
    # needs no arguments
  wms:
    # srs: ['EPSG:4326', 'EPSG:900913']
    # image_formats: ['image/jpeg', 'image/png']
    md:
      # metadata used in capabilities documents
      title: MapProxy WMS Proxy
      abstract: This is the fantastic MapProxy.
      online_resource: http://mapproxy.org/
      contact:
        person: Your Name Here
        position: Technical Director
        organization:
        address: Fakestreet 123
        city: Somewhere
        postcode: 12345
        country: Germany
        phone: +49(0)000-000000-0
        fax: +49(0)000-000000-0
        email: info at omniscale.de
      access_constraints:
        This service is intended for private and evaluation use only.
        The data is licensed as Creative Commons Attribution-Share Alike 2.0
        (http://creativecommons.org/licenses/by-sa/2.0/)
      fees: 'None'

layers:
  - name: osm
    title: Omniscale OSM WMS - osm.omniscale.net
    sources: [osm_cache]
  - name: Grund-Karten
    title: Grund-Karten
    sources: ["versorgung:Grund-Karten"]
  - name: Gas-Standard
    title: Gas-Standard
    sources: ["versorgung:Grund-Karten,Strassen-Karten,HNR-Karten,Kommune-Archiv,Gas-Archiv,Fernmeldekabel-Archiv"]
  - name: Wasser-Standard
    title: Wasser-Standard
    sources: ["versorgung:Grund-Karten,Strassen-Karten,HNR-Karten,Kommune-Archiv,Wasser-Archiv"]
  - name: Strom-Standard
    title: Strom-Standard
    sources: ["versorgung:Grund-Karten,Strassen-Karten,HNR-Karten,Kommune-Archiv,Strom-Archiv,Strom-Allgemein,NS-Archiv,SB-Archiv,NS/SB-Archiv"]
  - name: Abwasser-Standard
    title: Abwasser-Standard
    sources: ["versorgung:Grund-Karten,Strassen-Karten,HNR-Karten,Kommune-Archiv,Abwasser-Netz"]
  - name: Wasser_Lemgo
    title: Wasser_Lemgo
    sources: ["Lemgo:Grundkarte,Wasser"]
  # - name: osm_full_example
  #   title: Omniscale OSM WMS - osm.omniscale.net
  #   sources: [osm_cache_full_example]

caches:
  osm_cache:
    grids: [lemgo_grid]
    sources: [osm_wms]
  #grundkarte_cache:
    #grids: [lemgo_grid]
    #sources: [osm_wms]
    #use_direct_from_level: 9
    #sources: ["versorgung:grundkarte,Wasser"] #,

  # 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
  versorgung:
    type: wms
    supported_srs: ["EPSG:31467"]
    req:
      url: http://komaps01/sisims/wms/request.aspx?
    image:
      transparent_color: [255, 255, 255]
    coverage:
      bbox: "3279448,5530779,3467651,5650429"
      bbox_srs: "EPSG:31467"
  Lemgo:
    type: wms
    supported_srs: ["EPSG:25832"]
    req:
      url: http://62.153.231.24/sisims/wms/request.aspx?
    image:
      transparent_color: [255, 255, 255]
    coverage:
      bbox: "476228,5745334,513419,5782688"
      bbox_srs: "EPSG:25832"


  # 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'

  lemgo_grid:
    srs: "EPSG:25832"
    bbox: "476228,5745334,513419,5782688"
    bbox_srs: "EPSG:25832"
    num_levels: 13

# 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: './cache_data'
    # where to store lockfiles
    lock_dir: './cache_data/locks'
  #   # request x*y tiles in one step
    meta_size: [4, 4]
  #   # add a buffer on all sides (in pixel) when requesting
  #   # new images
    meta_buffer: 80


  # image/transformation options
  image:
      resampling_method: bicubic
      # 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
###########################################################################
-----Ursprüngliche Nachricht-----
Von: Oliver Tonnhofer [mailto:olt at omniscale.de]
Gesendet: Freitag, 1. Juni 2012 15:59
An: Friedrich,Martin
Cc: mapproxy at lists.osgeo.org
Betreff: Re: [MapProxy] mapproxy and KML


On 01.06.2012, at 15:54, Friedrich,Martin wrote:
> Yes. But it doesn't work. I have an other IP and port, but that should not be the problem? When I type the URL in the Browser, the message appears. WMS works fine.

Please provide your full configuration, the command you used to start MapProxy and the complete URL.


PS: Use reply-to-all for answers so that everyone gets your response and not just me.


Regards,
Oliver

--
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn







Martin Friedrich

Technische Dienstleistung/TIS
Energieversorgung Mittelrhein GmbH
Ludwig-Erhard-Straße 8
56073 Koblenz



Telefon:  0261 402-378
Fax:           0261 40275-378
Mobil:      0160 90128590
Email:    Martin.Friedrich at evm.de

Internet: http://www.evm.de


Sitz der Hauptleitung: Koblenz
Registergericht: Koblenz Nr. B 54

Vorsitzender des Aufsichtsrates:
Oberbürgermeister Prof. Dr. Joachim Hofmann-Göttig

Geschäftsführung:
Dipl.-Kaufmann Josef Rönz


Dieses E-Mail ist nur für den Empfänger bestimmt, an den es gerichtet ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungsäußerung ist die des Autors und stellt nicht notwendigerweise die Ansicht oder Meinung von dar.
Sind Sie nicht der Empfänger, so haben Sie diese E-Mail irrtümlich erhalten und jegliche Verwendung, Veröffentlichung, Weiterleitung, Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.
Weder noch der Absender (Admin ) übernehmen die Haftung für Viren; es obliegt Ihrer Verantwortung, die E-Mail und deren Anhänge auf Viren zu prüfen.




More information about the MapProxy mailing list