Re: [Qgis-user] QGIS Server and PostgreSQL projects

2024-09-06 Thread Jorge Gustavo Rocha via QGIS-User
Hi, It is possible and works pretty well. I do it with dozens of QGIS projects. I use a rewrite rule in Apache to point to the project on the database. Check our this can be done is this comment: https://github.com/qgis/QGIS/issues/31192#issuecomment-756105179 Best regards, Jorge On 06/09/2

Re: [Qgis-user] Recover a project stored in a PostGIS database?

2024-06-19 Thread Jorge Gustavo Rocha via QGIS-User
Hi, Export the project from the database to the file system: copy (SELECT encode(content, 'hex') FROM public.qgis_projects where name = 'my_project') to '/tmp/project.hex'; cd /tmp xxd -p -r project.hex > project.qgz I hope it helps, Jorge On 19/06/24 19:56, Thayer Young via QGIS

[Qgis-user] Help reading mesh layer from Postgresql

2024-05-21 Thread Jorge Gustavo Rocha via QGIS-User
Hi, I would love to store netCDF files in Postgresql/PostGIS and read them as mesh layers. I'm able to store netCDF in PostGIS and add it as a rasters in QGIS. To store it on PostGIS: raster2pgsql -s 4326 -d -I -C -M AZ1_HS_2023101200.nc -F public.az1_hs_2023101200 | psql service=atlantico

Re: [Qgis-user] Moving many project files - bulk updating paths to tables?

2024-04-04 Thread Jorge Gustavo Rocha via QGIS-User
Hi Tony, You can unzip the qgz file and change the text in the qgs files. qgs are text files. Afterwards, you can create the zip again with the qgz extension or open the qgs file directly. I hope it helps, Jorge On 04/04/24 19:28, Tony Shepherd (FarmMaps NZ) via QGIS-User wrote: Hi All I

Re: [Qgis-user] Atlas - Map series along linear object

2024-03-26 Thread Jorge Gustavo Rocha via QGIS-User
Hi Michaela, You can use the tool "points along geometry" to create the coverage layer. Choose the correct distance based on your 1:500 scale (to show more or less overlapping areas). Then create the Atlas using such points (that you can hide them in the output). You can play with different d

Re: [Qgis-user] Support for Mesh layers (netCDF) on Postgis/Postgresql: is it possible?

2023-12-14 Thread Jorge Gustavo Rocha via QGIS-User
ctively. Another option to serve large NetCDF/GRIB data is to set up an EDR (https://ogcapi.ogc.org/edr/overview.html) service which we are adding support for it in QGIS. Kind regards Saber On Wed, 13 Dec 2023 at 19:36, Jorge Gustavo Rocha via QGIS-User wrote: Hi, I'm pla

[Qgis-user] Support for Mesh layers (netCDF) on Postgis/Postgresql: is it possible?

2023-12-13 Thread Jorge Gustavo Rocha via QGIS-User
Hi, I'm playing with netCDF files. I add them to QGIS using the mdal provider (mesh layer). Reading netCDF data from files works very well. My question is: is it possible to read netCDF data from Postgis/Postgresql? I can store netCDF files in Postgis using raster2pgsql, but the data is stor

Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript

2023-10-30 Thread Jorge Gustavo Rocha via QGIS-User
Hi Jakob, You can try jsonix. I use something like: var Jsonix = require('jsonix').Jsonix; var XLink_1_0 = require('w3c-schemas').XLink_1_0; var OWS_1_0_0 = require('ogc-schemas').OWS_1_0_0; var OWS_1_1_0 = require('ogc-schemas').OWS_1_1_0; var WFS_1_0_0 = require('ogc-schemas').WFS_1_0_0; var W

Re: [Qgis-user] Ajuda: Erro python

2023-06-01 Thread Jorge Gustavo Rocha via QGIS-User
Oi Fernanda, Parece um problema com um módulo rastervision que vc instalou. 1) Tente desinstalar esse módulo ou 2) Abra um outro QGIS indo ao menu Settings → User profiles → New profile... Boa sorte, Gustavo On 01/06/23 17:27, Fernanda Pimenta via QGIS-User wrote: Prezados (as), Utilizo a

Re: [Qgis-user] WMTS via QGIS Server

2023-04-24 Thread Jorge Gustavo Rocha via QGIS-User
Hi Christoph, The WMTS service provide tiles. It does not provide a file system access to the tiles. If you want to have the tiles on the file system, you need to use a caching software do support such workflow. You can do that with a QGIS Server plugin or using a cache software, like MapPro

Re: [Qgis-user] Check Geometries Plugin - attribute value in results

2023-03-29 Thread Jorge Gustavo Rocha via QGIS-User
Hi Totò, There are two constrains related do sliver polygons: - Maximum thinness - Max. area The value should be the one failing the condition for the feature. Can be one of the two. The enum ValueType (defined in src/analysis/vector/geometry_checker/qgsgeometrycheckerror.cpp) is not exposed,

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-23 Thread Jorge Gustavo Rocha via QGIS-User
Hi, You are using curl on the command line. You need to protect the url between quotes. Can you try again with quotes around the URL? Regards, Jorge On 23/03/23 14:06, celati Laurent via QGIS-User wrote: Good morning, Thanks a lot for your message. I uninstalled everything I had installed

Re: [Qgis-user] Problems with transformation including height values

2023-03-21 Thread Jorge Gustavo Rocha via QGIS-User
Hi Bo, I think you can do it with cs2cs. cs2cs can read a file. As an example, the first coordinates seems to be transformed with: echo 55 12 42 | cs2cs --3d epsg:4326 epsg:7416 691875.63    6098907.83 4.39 Regards from south, Jorge On 21/03/23 10:06, Bo Victor Thomsen via QGIS-User wrote:

Re: [Qgis-user] [EXTERNAL] Re: Geopackage slow on NAS if not read-only

2023-03-16 Thread Jorge Gustavo Rocha via QGIS-User
Hi, For data storage and manipulation databases are suitable. Files are not. Geopackages are wonderful to transfer data between systems or to archive an entire project (snapshot of data, styles and the project itself). Regards, Jorge On 16/03/23 11:30, Árni Geirsson via QGIS-User wrote: Tha

Re: [Qgis-user] How to count number of layers loaded in layer panel of QGIS

2023-03-15 Thread Jorge Gustavo Rocha via QGIS-User
Hi Paul, Run this on the Python console: len(QgsProject.instance().mapLayers()) Best regards, Jorge Gustavo On 15/03/23 07:42, Paul N via QGIS-User wrote: I want to count number of layer loaded. How to count number of layers loaded in layer panel of QGIS. Regards. Paul N

Re: [Qgis-user] Add application_name=QGIS to postgis connection string

2022-06-30 Thread Jorge Gustavo Rocha via Qgis-user
Hi Toni, It makes sense to have in all connections to the database. The application_name is already used by QGIS Server. To have it in QGIS desktop (from core), a few edits must be made to make it happen. Maybe there are plug Can you add this a new feature request? Regards, Jorge On 30/0

Re: [Qgis-user] Help with scales in print layouts for geographic CRS

2022-04-07 Thread Jorge Gustavo Rocha via Qgis-user
Hi, Thanks to Greg, Patrick, Nicolas and Nyall for the good discussion. I never used lat/lon based layouts before and the result can be odd. I was trying to make it work, but it is not easy. The layout must include a warning about the difference in scales along the axes. As Nyall said, addit

Re: [Qgis-user] Help with scales in print layouts for geographic CRS

2022-04-06 Thread Jorge Gustavo Rocha via Qgis-user
s one. Probably I am simplifying the calculations too much. I'll return back after reading the code. Regards, Jorge Gustavo On 06/04/22 15:10, Greg Troxel via Qgis-user wrote: Patrick Dunford via Qgis-user writes: On 6/04/22 11:34, Greg Troxel via Qgis-user wrote: Jorge Gustavo Rocha

[Qgis-user] Help with scales in print layouts for geographic CRS

2022-04-05 Thread Jorge Gustavo Rocha via Qgis-user
Hi, I need you help to understand how scale works with geographic coordinate systems. For projected coordinates systems, the layouts seems to work as expected. This is my use case: I've draw a polygon with 1000m width and height, and another with 1500, width and height, sharing the upper le