[qgis-qwc2] Projection issue with QWC2
Sandro Mani
manisandro at gmail.com
Thu Mar 1 05:00:52 PST 2018
Hi
It is using EPSG:4326 because it reads EX_GeographicBoundingBox from the
extents which is lat/lon.
Are you using the latest git master of QWC2? I set the bbox you
specified in the demo wolfsburg theme and I get an initial extent
centered approx in Dortmund, so doesn't look that wrong.
Sandro
On 01.03.2018 13:52, GOERKE Sebastian wrote:
>
> Hi Sandro,
>
> here is the extent from the generated themes.json:
>
> "bbox": {
>
> "crs": "EPSG:4326",
>
> "bounds": [
>
> 4.07475,
>
> 50.1364,
>
> 11.3218,
>
> 52.6646
>
> ]
>
> },
>
> "initialBbox": {
>
> "crs": "EPSG:4326",
>
> "bounds": [
>
> 4.07475,
>
> 50.1364,
>
> 11.3218,
>
> 52.6646
>
> ]
>
> },
>
> I am just wondering, why it´s using EPSG:4326 but the bounds are
> looking ok for my WMS extent.
>
> Best regards
>
> Sebastian
>
> *
> **Sebastian GOERKE*
>
> Consultant
>
> *Sopra Steria Consulting***
>
> Sopra Steria AG
> Barcelona-Allee 1
> 51103 Köln - Deutschland
> Phone: +49 221 92404-8958 - Mobile: +49151 40625945
> sebastian.goerke at soprasteria.com
> <mailto:sebastian.goerke at soprasteria.com> - www.soprasteria.de
> <http://www.soprasteria.de/>
>
>
> <https://www.linkedin.com/company/soprasteria><https://www.facebook.com/soprasteria.de><https://twitter.com/SopraSteria_de><https://www.xing.com/company/soprasteria><http://digitale-exzellenz.de/>
>
> Before printing, think about the environment.
> The content of this message may be confidential, legally privileged
> and protected by law. Unauthorized use, copying or disclosure of any
> of it may be unlawful. If you are not the intended recipient please
> notify the sender and remove it from your system. While attachments to
> this e-mail are checked for viruses, we do not accept any liability
> for any damage sustained by viruses.
>
> *Von:*Sandro Mani [mailto:manisandro at gmail.com]
> *Gesendet:* Donnerstag, 1. März 2018 13:49
> *An:* GOERKE Sebastian <sebastian.goerke at soprasteria.com>;
> qgis-qwc2 at lists.osgeo.org
> *Betreff:* Re: AW: [qgis-qwc2] Projection issue with QWC2
>
> Hi Sebastain
>
> What extent does the generated themes.json contain?
>
> Best
> Sandro
>
> On 01.03.2018 13:40, GOERKE Sebastian wrote:
>
> Hi Sandro,
>
> the themesConfig.json does not contain extent information, so QWC2
> should use the extent from the QGIS Server, right? But there is
> something going wrong then. The extent of the WMS is an area in
> Germany and I want QWC2 to use that. Instead the QWC2 client shows
> an area around the Ukraine. I tried some configuration like
> switching the default WMS version because I am aware of the
> different axis order handling between 1.1.1 and 1.3.0 but nothing
> changed.
>
> What´s interesting about my QGIS Server WMS is that x and y axis
> are interchanged in version 1.3.0 following my understanding that
> x is longitude and y is latitude. But the WMS service works
> correctly while using it within QGIS. So, for me, there is an
> issue within the configuration of my QWC2 instance or within the
> interpretation of the extents within the WMS.
>
> The question is, which adjustments can I make to solve the issue
> or how I can identify the reason for the wrong behavior.
>
> Best Regards
>
> Sebastain
>
> *
> **Sebastian GOERKE*
>
> Consultant
>
> *Sopra Steria Consulting*
>
> Sopra Steria AG
> Barcelona-Allee 1
> 51103 Köln - Deutschland
> Phone: +49 221 92404-8958 - Mobile: +49151 40625945
> sebastian.goerke at soprasteria.com
> <mailto:sebastian.goerke at soprasteria.com> - www.soprasteria.de
> <http://www.soprasteria.de/>
>
>
> <https://www.linkedin.com/company/soprasteria><https://www.facebook.com/soprasteria.de><https://twitter.com/SopraSteria_de><https://www.xing.com/company/soprasteria><http://digitale-exzellenz.de/>
>
> Before printing, think about the environment.
> The content of this message may be confidential, legally
> privileged and protected by law. Unauthorized use, copying or
> disclosure of any of it may be unlawful. If you are not the
> intended recipient please notify the sender and remove it from
> your system. While attachments to this e-mail are checked for
> viruses, we do not accept any liability for any damage sustained
> by viruses.
>
> *Von:*qgis-qwc2 [mailto:qgis-qwc2-bounces at lists.osgeo.org] *Im
> Auftrag von *Sandro Mani
> *Gesendet:* Donnerstag, 1. März 2018 13:16
> *An:* qgis-qwc2 at lists.osgeo.org <mailto:qgis-qwc2 at lists.osgeo.org>
> *Betreff:* Re: [qgis-qwc2] Projection issue with QWC2
>
> Hi
>
> Is the extent being overridden in themesConfig.json? If not, the
> initial extent is just read from the WMS capabilities, i.e.
> EX_GeographicBoundingBox of the root layer. Also, make sure that
> the used projection appropriate for Ukraine.
>
> Sandro
>
> On 01.03.2018 08:55, GOERKE Sebastian wrote:
>
> Hi all,
>
> I am currently trying a bit arround with qwc2 and it seems for
> us to be a perfect solution for several customers, as the data
> specific part can more or less completely be done within QGIS
> itself by the customers.
>
> Now I am facing issues with map projections. The client sets a
> bbox around the Ukraine instead of Middle-Europe. I checked
> the QGIS Server WMS Capabilities and tested the WMS service by
> adding it to QGIS and everything works just fine. Even if I
> pan to Germany within my QWC2 map, the layers are displayed
> correctly. It is just the initial bbox within the client which
> is strange.
>
> Within the attachment you can find the capabilities file from
> QGIS Server and my themesConfig.json. Maybe someone has an
> idea what my issue is about J
>
> Best Regards
>
>
> Sebastian
>
> *
> **Sebastian GOERKE*
>
> Consultant
>
> *Sopra Steria Consulting*
>
> Sopra Steria AG
> Barcelona-Allee 1
> 51103 Köln - Deutschland
> Phone: +49 221 92404-8958 - Mobile: +49151 40625945
> sebastian.goerke at soprasteria.com
> <mailto:sebastian.goerke at soprasteria.com> - www.soprasteria.de
> <http://www.soprasteria.de/>
>
>
> <https://www.linkedin.com/company/soprasteria><https://www.facebook.com/soprasteria.de><https://twitter.com/SopraSteria_de><https://www.xing.com/company/soprasteria><http://digitale-exzellenz.de/>
>
> Before printing, think about the environment.
> The content of this message may be confidential, legally
> privileged and protected by law. Unauthorized use, copying or
> disclosure of any of it may be unlawful. If you are not the
> intended recipient please notify the sender and remove it from
> your system. While attachments to this e-mail are checked for
> viruses, we do not accept any liability for any damage
> sustained by viruses.
>
> Sopra Steria Consulting is the trading name of:
> Sopra Steria AG - Vorsitzender des Aufsichtsrates: Vincent
> Paris - Vorstand: Urs Michael Krämer - Sitz der Gesellschaft:
> Hamburg - HR B 148540 Amtsgericht Hamburg - USt-ID-Nr.:
> DE118671351
>
>
>
>
>
> _______________________________________________
>
> qgis-qwc2 mailing list
>
> qgis-qwc2 at lists.osgeo.org <mailto:qgis-qwc2 at lists.osgeo.org>
>
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
>
> Sopra Steria Consulting is the trading name of:
> Sopra Steria AG - Vorsitzender des Aufsichtsrates: Vincent Paris -
> Vorstand: Urs Michael Krämer - Sitz der Gesellschaft: Hamburg - HR
> B 148540 Amtsgericht Hamburg - USt-ID-Nr.: DE118671351
>
> Sopra Steria Consulting is the trading name of:
> Sopra Steria AG - Vorsitzender des Aufsichtsrates: Vincent Paris -
> Vorstand: Urs Michael Krämer - Sitz der Gesellschaft: Hamburg - HR B
> 148540 Amtsgericht Hamburg - USt-ID-Nr.: DE118671351
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-qwc2/attachments/20180301/be7adc2f/attachment-0001.html>
More information about the qgis-qwc2
mailing list