Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problematic zoom extents with EPSG:4674 #584

Open
1 task done
gustavoeugenio opened this issue Jul 17, 2023 · 6 comments
Open
1 task done

Problematic zoom extents with EPSG:4674 #584

gustavoeugenio opened this issue Jul 17, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@gustavoeugenio
Copy link

gustavoeugenio commented Jul 17, 2023

Checklist

  • I've searched through the existing issues and this bug has never been reported before

Subject of the issue

The extent srs doesn't works very fine with other srid (like 4674).

Tested other situations, just is fine with config QGS project with srid 4326. I dont know with have some relation with this commit on g3wadmin: Add generic srs extent, instead of CRS bbox.

When use other srid (that is not 4326), have problem with zoom (zoom in, zoom out and zoom to box) and the check box on "User QGIS project map start extent as webgis init extent" have error.

I have two version of G3WSuite (diferents servers), both with docker compose:

  • Ubuntu Server 18.04 with G3W-SUITE Version 3.5.dev-20230120114529 (all right)

  • Ubuntu Server 22.04 with G3W-SUITE Version v3.6.6: administration GIS application (error)

Steps to reproduce

  1. Config QGIS project to SRID 4674
  2. Create a Cartographic Group with GEODATA (EPSG 4674)
  3. Import QGS project to Cartographic Group. (if Advertised Extend on QGS project is checked, have a error on "User QGIS project map start extent as webgis init extent". Unchecked this box to save and open map view.
  4. Open Map View, had a error with zoom (zoom in, zoom out, zoom to box).

Environment

  • g3w-admin: 3.6.6
  • g3w-client: version
  • browser: Google Chrome
  • operating system client: Tested Ubuntu Studio and Windows 11.

Link to your project

No response

Additional info

No response

@gustavoeugenio gustavoeugenio added the bug Something isn't working label Jul 17, 2023
@Raruto Raruto changed the title Error Extent Zoom ( Problematic zoom extents with EPSG:4674 Jul 20, 2023
@Raruto
Copy link
Contributor

Raruto commented Jul 20, 2023

Hi @gustavoeugenio

Open Map View, had a error with zoom (zoom in, zoom out, zoom to box).

Please also attach a gif (or video) showing the problem, otherwise, it may be difficult to understand which is the "error" you are referring to..

g3w-client: version

through the browser console, you can find out the currently installed g3w-client version 👉 g3wsdk.info()

Import QGS project to Cartographic Group. (if Advertised Extend on QGS project is checked, have a error on "User QGIS project map start extent as webgis init extent". Unchecked this box to save and open map view.

In this regard, please consider:

  • opening a separate bug report (if not closely related to this bug)
  • attaching a minimal reproducible example qgis project and/or other self-explanatory images

👋 Raruto

@Raruto
Copy link
Contributor

Raruto commented Aug 10, 2023

I'm moving this to g3w-admin due to the following statement

I dont know with have some relation with this commit on g3wadmin: Add generic srs extent, instead of CRS bbox.

@gustavoeugenio please add the requested information in here: #584 (comment)

In the absence of a response, we will close this soon as we can't reproduce statements like the following:

Open Map View, had a error

Advertised Extend on QGS project is checked, have a error

👋 Raruto

@Raruto Raruto transferred this issue from g3w-suite/g3w-suite-docker Aug 10, 2023
@wlorenzetti wlorenzetti self-assigned this Aug 28, 2023
@wlorenzetti
Copy link
Member

wlorenzetti commented Aug 28, 2023

Hi @gustavoeugenio, I made a test on v3.6.9 with EPSG:4674 , but I don't have any issues with it.

Advertised Extend: false (unchecked):

Screenshot_20230828_084345

Screenshot_20230828_084446

Advertised Extend: true (checked):

Screenshot_20230828_084709

Screenshot_20230828_084653

@g3w-suite g3w-suite deleted a comment from wlorenzetti Aug 29, 2023
@gustavoeugenio
Copy link
Author

@wlorenzetti, thank you for your response, and I apologize for the delay in posting here.
We are currently using G3W-Suite Docker version v3.6.6, and we are still experiencing issues with SRID 4674 when the scale is below 1:83630, causing the zoom to be locked.
We have attached the data source, QGS project, and a GIF demonstrating the issue.
Currently, we are working on our projects with SRID 4326, which has no issues.
We also tested the UTM projection (SRID 31982) and did not encounter any problems. (atthahed too).

gis_4674_and_31982_test.zip

g3w_suite.mp4

@wlorenzetti
Copy link
Member

@volterra79 when you have time can you test EPSG 4674 with data linked above?

@wlorenzetti
Copy link
Member

@gustavoeugenio it is a issue linked to the definition of the ESPG 4674, OL doesn't work fine with proj4 definition coming from QGIS api, so is necessary override the ESPG definition, inside your g3w-suite settings add the following lines:

G3W_PROJ4_EPSG = {
    4674: {
        "proj4": "+proj=longlat +ellps=GRS80 +no_defs +type=crs",
        "extent": [-122.19,-59.87,-25.28,32.72]
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants