<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Thanks Bernhard,<br>
      <br>
      I succeeded to add an external WMS in EPSG31467 to the QWC via the
      QGIS Project (and it works in both QWC settings, with authid=3857
      and with authid=31467). So, including your description for the
      Background Layer in Java, there are quite a few solutions I can
      try!<br>
      <br>
      Regards,<br>
      <br>
      Markus<br>
      <br>
      <br>
      -- <br>
      <div class="moz-signature">Dr. Markus Weidenbach <br>
        <b>landConsult.de</b>
        <br>
        Geographical Information Management
        <br>
        and Environmental Planning
        <br>
        D-77815 Bühl
        <br>
        Germany
        <br>
        e.mail see: <a class="moz-txt-link-freetext" href="http://landConsult.de">http://landConsult.de</a></div>
      Am 25.06.2014 14:47, schrieb Bernhard Ströbl:<br>
    </div>
    <blockquote cite="mid:53AAC4C5.9080905@jena.de" type="cite">Hi
      Markus,
      <br>
      <br>
      Am 25.06.2014 14:02, schrieb Markus Weidenbach:
      <br>
      <blockquote type="cite">Thanks, Bernhard and Giovanni for the
        quick response.
        <br>
        <br>
        Bernhard, unfortunately the project is pretty complex and it is
        too much
        <br>
        work to reproject all data sets into the EPSG 3857 just for
        publishing
        <br>
        (the perfect integration of QGIS Mapserver and QGIS, allowing
        the direct
        <br>
        publication of QGIS projects with no extra work was the main
        reason for
        <br>
        me to choose QGIS Mapserver/QWC).
        <br>
      </blockquote>
      <br>
      I _think_ that otf reprojection of all your layers increases the
      answering time of your server when requesting maps in EPSG:3857.
      <br>
      <br>
      <blockquote type="cite">So, either I had to use my own reprojected
        background map or do
        <br>
        everything in EPSG3857 .....
        <br>
        :-\
        <br>
        <br>
        Alternatively I could use one of the regional and public WMS
        which
        <br>
        serves 40 cm Orthos also in EPSG31467 and which I could use as
        <br>
        background information.
        <br>
        Do you know if there is a way to attach such WMS to the QWC?
        <br>
      </blockquote>
      <br>
      Yes you can. You can either load a WMS layer into your project (so
      called cascading WMS). Thus this layer is printable. Or you can
      configure it as background layer (a OpenLayers.layer.WMS object
      see the OpenLayers documentation on how to do that).
      <br>
      I do this in Customizations.js:
      <br>
      <br>
      function customBeforeMapInit() {
      <br>
          var myBackgroundLayer = new OpenLayers.Layer.WMS("myName",
      <br>
              "myURL", {
      <br>
                  layers: "myLayer",
      <br>
                  format: format,
      <br>
                  dpi: screenDpi,
      <br>
                  VERSION: "1.3.0"
      <br>
              },
      <br>
              {
      <br>
                  buffer:0,
      <br>
                  singleTile:true,
      <br>
                  ratio:1,
      <br>
                  transitionEffect:"resize",
      <br>
                  isBaseLayer: true,
      <br>
                  projection:authid
      <br>
              }
      <br>
          );
      <br>
          baseLayers.push(myBackgroundLayer);
      <br>
      }
      <br>
      <br>
      Bernhard
      <br>
      <blockquote type="cite">
        <br>
        Regards,
        <br>
        Markus
        <br>
        <br>
        <br>
        --
        <br>
        Dr. Markus Weidenbach
        <br>
        *landConsult.de*
        <br>
        Geographical Information Management
        <br>
        and Environmental Planning
        <br>
        D-77815 Bühl
        <br>
        Germany
        <br>
        e.mail see: <a class="moz-txt-link-freetext" href="http://landConsult.de">http://landConsult.de</a>
        <br>
        Am 25.06.2014 13:16, schrieb Bernhard Ströbl:
        <br>
        <blockquote type="cite">Hi,
          <br>
          <br>
          GoogleMaps is only available in GoogleMercator projection
          (3857), so
          <br>
          if you want to use them you have to use this projection (in
          which case
          <br>
          I would recommend to also reproject your data for the server,
          so QWC,
          <br>
          the QGIS project and the data are in the same projection.)
          <br>
          BTW: The GoogleMap is also not included in the print.
          <br>
          <br>
          Bernhard
          <br>
          <br>
          Am 25.06.2014 13:05, schrieb Markus Weidenbach:
          <br>
          <blockquote type="cite">Dear List,
            <br>
            <br>
            I am running QWC on a Remote Debian 7 (QWC checkout from GIT
            HUB on
            <br>
            25.06.2014) and on a local Win 7 (checkout in Marc 2014)
            computer.
            <br>
            <br>
            I would like to publish my QGIS projects in its original
            CRS, which is
            <br>
            EPSG 31467 together with the Google Satellite/Street
            Background Maps.
            <br>
            So, I changed the "var authid" in the GlobalOption.js from
            3857 to 31467
            <br>
            (and I also added the missing EPSG31467 record to the
            <br>
            libs/proj4js/defs).
            <br>
            <br>
            After many attempts, I found that the Background Maps work
            only when you
            <br>
            set  var authid="EPSG"+3857 in GlobalOptions.js.
            <br>
            <br>
            Consequently I can publish QGIS projects in EPSG31647 after
            switching
            <br>
            the "var authid" to EPSG 31467 only if I switch off the
            Google
            <br>
            Background Maps (in GlobalOptions.js with var enableBGMaps =
            false;) at
            <br>
            the same time.
            <br>
            <br>
            Can anybody confirm this?
            <br>
            Or is there a setting to tell the Background Maps to
            transform
            <br>
            automatically into the EPSG given in the "authid" variable?
            <br>
            <br>
            Thanks for any comments.
            <br>
            <br>
            Markus
            <br>
            <br>
            N.B.
            <br>
            I know, that I could save my QGIS projects in EPSG3857 to
            publish them
            <br>
            in QWC together with the Background Maps, but then I am
            loosing the
            <br>
            original coordinates and this also leads to some geometrical
            <br>
            inaccuracies.
            <br>
            <br>
            <br>
            <br>
            --
            <br>
            Dr. Markus Weidenbach
            <br>
            *landConsult.de*
            <br>
            Geographical Information Management
            <br>
            and Environmental Planning
            <br>
            D-77815 Bühl
            <br>
            Germany
            <br>
            e.mail see: <a class="moz-txt-link-freetext" href="http://landConsult.de">http://landConsult.de</a>
            <br>
            <br>
            <br>
          </blockquote>
        </blockquote>
      </blockquote>
      <br>
      <br>
      __________ Information from ESET Mail Security, version of virus
      signature database 9998 (20140625) __________
      <br>
      <br>
      The message was checked by ESET Mail Security.
      <br>
      <a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
      <br>
      <br>
      <br>
      _______________________________________________
      <br>
      Qgis-user mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
      <br>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>