Re: [Qgis-user] cmake: qca not found. qgis 2.18.24

2018-09-23 Thread Jorge Gustavo Rocha
Hi Shay,

Do you have you also the *-dev libraries installed?
In my Ubuntu I also have libqca2-dev and libqca-qt5-2-dev installed.

Make sure you have these and report back if the problem persist.

Regards,

Jorge

Às 22:45 de 22/09/2018, Shay Gover escreveu:
> Hi,
> 
> I'm attempting to build the ltr on Arch linux. qca is installed:
> /usr/lib/libqca-qt5.so
> /usr/lib/libqca-qt5.so.2
> /usr/lib/libqca-qt5.so.2.1.3
> 
> But the cmake script can't find it. What's missing?
> 
> Thanks,
> 
> Shay Gover
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Network access is disabled

2018-10-15 Thread Jorge Gustavo Rocha
Hi Kristian,

Check the settings at: Settings → Options → Network
These are the settings used for http access.
Have you any proxy on your network for http access?

Regards,

Jorge

Às 10:48 de 15/10/2018, Kristian Evers escreveu:
> Hi,
> 
>  
> 
> I am having some issues adding WMS layers. QGIS fails to retrieve the
> capabilities
> 
> file and adds “Network access is disabled” to the log. This is with QGIS
> 3.2.3 on Win10.
> 
> Googling a bit I see that a few others have experienced this in the
> past, although
> 
> with earlier versions of QGIS3. As far as I can see there isn’t any
> obvious ways
> 
> where network access can be disabled within QGIS. Outside QGIS there are no
> 
> problems accessing the network. QGIS doesn’t have problems reading files
> from
> 
> network drives either, so this seems to be purely related to HTTP-access.
> 
>  
> 
> Is this a known issue? If so, is there a workaround?
> 
>  
> 
> Best regards,
> 
> Kristian
> 
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Convertir líneas a Poligono

2018-10-19 Thread Jorge Gustavo Rocha
Hi César,

We use English in this list.

Please send us a screenshot or something to see the initial lines
(input) and the generated polygon (output), to see how it is deformed.

Regards,

Jorge

Às 20:36 de 18/10/18, César Fernández escreveu:
>  
> 
> Hola, estoy queriendo convertir líneas a polígonos con entidades que he
> conformado de dos capas en una y luego las uno entre si. Al transformar
> de líneas a polígonos el polígono se deforma.
> 
>  
> 
> Agradezco la ayuda
> 
>  
> 
>  
> 
> César Fernández C.
> +593 99 538 5423
> cafernan...@serproyec.com
> ceferc...@hotmail.com
> 
>  
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] how does QGIS generate the EPSG from a Shapefile?

2018-10-25 Thread Jorge Gustavo Rocha
Oi Rodrigo,

Can you run ogrinfo in the command line? Like:

ogrinfo -al -so yourshape.shp

This will tell you the CRS detected by ogr.

ogr (and QGIS) uses the *.prj file. But there are known problems with
the WKT representation of CRS. Sometimes it is hard to know if two
different strings represents the same EPSG code.

For that reason, QGIS also writes and additional *.qpj. When it is
present, QGIS uses this textual representation to compare it against its
database and it always work.

But if you just have the *.prj along with the shapefile, both ogr and
QGIS might fail to detect the exact CRS.

Please share one *.prj that ogr fails to associate with a known EPSG.

Abraço,

Jorge

Às 13:27 de 25/10/18, Rodrigo Mariano escreveu:
> Hello everyone,
> 
> I would like to know: how does QGIS generate the EPSG from a Shapefile?
> 
> I ask this question, because I'm trying to upload a Shapefile by OGR,
> but the OGR doesn't
> insert the correct EPSG. So I need always open the Shapefile in QGIS to
> discover the
> EPSG before uploading it with OGR.
> 
> Thanks in advance.
> 
> Best Regards,
> 
> Rodrigo
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] how does QGIS generate the EPSG from a Shapefile?

2018-10-28 Thread Jorge Gustavo Rocha
Hi Rodrigo,

GDAL (regular distribution) is not able to identify the EPSG code from
the *.prj string. This is a known limitation. This has been fix (see bug
[1]), but it requires additional files on your side.

Two options:

1) Download the files from:
https://trac.osgeo.org/gdal/raw-attachment/ticket/4345/epsg_ogc.wkt.gz
https://trac.osgeo.org/gdal/raw-attachment/ticket/4345/epsg_ogc_simple.wkt.gz
https://trac.osgeo.org/gdal/raw-attachment/ticket/4345/epsg_esri.wkt.gz

2) You can create the files by yourself running the script
gen_epsg_wkt.sh (available on the #4345 ticket). Change the path to the
existing files. In my GDAL installation, I had to change to:
gcs_epsg=`cat /usr/share/gdal/2.2/gcs.csv | (...)`
pcs_epsg=`cat /usr/share/gdal/2.2/pcs.csv | (...)`

Move/copy the files to your GDAL folder (in my case it is
/usr/share/gdal/2.2)

Then you can use:
gdalsrsinfo -e deinfo_cemiterios.shp

The result will be:

jgr@zoe:~/tmp$ gdalsrsinfo -e deinfo_cemiterios.shp
Warning 1: EPSG detection is experimental and requires new data files
(see bug #4345)

EPSG:29193

PROJ.4 : '+proj=utm +zone=23 +south +ellps=aust_SA
+towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs '

OGC WKT :
PROJCS["SAD69 / UTM zone 23S",
GEOGCS["SAD69",
DATUM["South_American_Datum_1969",
SPHEROID["GRS 1967 Modified",6378160,298.25,
AUTHORITY["EPSG","7050"]],
TOWGS84[-66.87,4.37,-38.52,0,0,0,0],
AUTHORITY["EPSG","6618"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4618"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-45],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",50],
PARAMETER["false_northing",1000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","29193"]]

Now you can use gdalsrsinfo to identify the CRS. If you need to use this
for scripting, it is easier.

Best regards,

Jorge

[1] https://trac.osgeo.org/gdal/ticket/4345

Às 18:15 de 28/10/18, Rodrigo Mariano escreveu:
> Hello Jorge,
> 
> 
> When I used your command like, the ogr showed this message:
> 
> "Layer name: DEINFO_CEMITERIOS
> Geometry: Polygon
> Feature Count: 42
> Extent: (317568.093609, 7361463.898064) - (357756.090027, 7412287.112520)
> Layer SRS WKT:
> PROJCS["SAD69_UTM_zone_23S",
>     GEOGCS["GCS_SAD69",
>     DATUM["South_American_Datum_1969",
>     SPHEROID["GRS_1967_Modified",6378160,298.25]],
>     PRIMEM["Greenwich",0],
>     UNIT["Degree",0.017453292519943295]],
>     PROJECTION["Transverse_Mercator"],
>     PARAMETER["latitude_of_origin",0],
>     PARAMETER["central_meridian",-45],
>     PARAMETER["scale_factor",0.9996],
>     PARAMETER["false_easting",50],
>     PARAMETER["false_northing",1000],
>     UNIT["Meter",1]]
> ID: Integer64 (10.0)
> NOME: String (60.0)
> AREA: Real (20.2)
> DEPADM: String (10.0)"
> 
> When I opened the Shapefile with the QGIS, the software chose the EPSG
> 29193.
> 
> But when I use the ogr2ogr to insert the Shapefile in my database, the
> OGR choose a strange EPSG.
> For that reason, I normally open the Shapefile with the QGIS and I pass
> explicitily the EPSG on ogr2ogr command line.
> Because of that I would like to know how the QGIS discover the EPSG
> given a .prj.
> 
> The .prj of that Shapefile is:
> 
> "PROJCS["SAD69_UTM_zone_23S",GEOGCS["GCS_SAD69",DATUM["D_South_American_1969",SPHEROID["GRS_1967_Truncated",6378160,298.25]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-45],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",50],PARAMETER["false_northing",1000],UNIT["Meter",1]]"
> 
> 
> Best Regards,
> 
> Rodrigo
> 
> 
> On 25/10/2018 15:59, Jorge Gustavo Rocha wrote:
>> Oi Rodrigo,
>>
>> Can you run ogrinfo in the command line? Like:
>>
>> ogrinfo -al -so yourshape.shp
>>
>> This will tell you the CRS detected by ogr.
>>
>> ogr 

Re: [Qgis-user] Problens in atribute tables (bug?)

2018-11-17 Thread Jorge Gustavo Rocha
Hi Frederico,

It would be very useful if you can isolate the problem.

You can enable logging for all Postgresql queries. Edit you
postgresql.conf file and change log_statement = 'all'. Restart
Postgresql. Open the log to see what is going on.

Duplicate you table on another schema or database and play with it.

I've created a new table, with an additional x and y columns for the
labels and I did some editing. I've set the label positioning to x and y.

CREATE TABLE public.cemiterio (
fid serial NOT NULL,
nome varchar(100) NULL,
x numeric(10) NULL,
y numeric(10) NULL,
wkb_geometry geometry(Point, 3857),
CONSTRAINT cemiterio_pkey PRIMARY KEY (fid)
);

Everything went fine. When changing the directly the attribute table, I
get just one single update. For example:

2018-11-17 23:13:15.263 WET [29639] geobox@geotuga LOG:  statement: BEGIN
2018-11-17 23:13:15.263 WET [29639] geobox@geotuga LOG:  statement:
UPDATE "public"."cemiterio" SET "x"=-1923181 WHERE "fid"=3
2018-11-17 23:13:15.263 WET [29639] geobox@geotuga LOG:  statement: COMMIT
2018-11-17 23:13:15.275 WET [29537] geobox@geotuga LOG:  statement:
BEGIN READ ONLY
2018-11-17 23:13:15.275 WET [29537] geobox@geotuga LOG:  statement:
DECLARE qgis_38 BINARY CURSOR FOR SELECT
st_asbinary("wkb_geometry",'NDR'),"fid","nome"::text,"x"::text,"y"::text
FROM "public"."cemiterio" WHERE "wkb_geometry" &&
st_makeenvelope(-1921084.8524324435275048,3785638.23111640242859721,-1736633.8711264121811837,3881349.90870131878182292,3857)
2018-11-17 23:13:15.276 WET [29537] geobox@geotuga LOG:  statement:
FETCH FORWARD 2000 FROM qgis_38
2018-11-17 23:13:15.276 WET [29537] geobox@geotuga LOG:  statement:
CLOSE qgis_38
2018-11-17 23:13:15.276 WET [29537] geobox@geotuga LOG:  statement: COMMIT

When updating using the field calculator, I get all the updates:

2018-11-17 23:12:30.085 WET [29639] geobox@geotuga LOG:  statement: BEGIN
2018-11-17 23:12:30.086 WET [29639] geobox@geotuga LOG:  statement:
UPDATE "public"."cemiterio" SET "y"=3900084.04311737 WHERE "fid"=1
2018-11-17 23:12:30.086 WET [29639] geobox@geotuga LOG:  statement:
UPDATE "public"."cemiterio" SET "y"=3875154.0323308 WHERE "fid"=2
2018-11-17 23:12:30.087 WET [29639] geobox@geotuga LOG:  statement:
UPDATE "public"."cemiterio" SET "y"=3850565.52854132 WHERE "fid"=3
2018-11-17 23:12:30.088 WET [29639] geobox@geotuga LOG:  statement:
UPDATE "public"."cemiterio" SET "y"=3852551.36467331 WHERE "fid"=4
2018-11-17 23:12:30.088 WET [29639] geobox@geotuga LOG:  statement:
UPDATE "public"."cemiterio" SET "y"=3832291.8228186 WHERE "fid"=5
2018-11-17 23:12:30.089 WET [29639] geobox@geotuga LOG:  statement:
UPDATE "public"."cemiterio" SET "y"=3819588.03812478 WHERE "fid"=6
2018-11-17 23:12:30.089 WET [29639] geobox@geotuga LOG:  statement: COMMIT

I've use expressions to update x and y columns, like:
"x" + 100
or
$x - 50

You hit some issue probably, but it would be great if you could identify it.

I did the tests with QGIS 2.18.17 against Postgresql 10.

If you need further help, just ask.

Regards,

Jorge

> POSTGIS.  A  few days ago our team observed some strange problens
> updating data in atribute tables.
> 
> It is hard to explains, because we couldn't isolate the process and the
> error until now.
> 
> Basicly, wen we are updating data, using field calculator, manualy at
> the tables or using label placement by X and Y registred in table, QGIS
> send an update to the POSTGRES with a random value in a random column. 
> 
> We discovered the error when an 'F' was updated in a Integer column,
> when the user tried to save the edition, QGIS has returned a mensage
> with the error and, since that day, we are very apreensive because we
> dont know the damage in our database.
> 
> Since this is random, I did'nt try to send a bug report and haven't
> found a ticket that describe something like that.
> 
> Its is a very atipical situation. We use QGIS since 1.8(Lisboa) and this
> has never hapened with us.
> 
> We are using 2.18.12 with POSTGRES 9.4 - POSTGIS 2.2.3
> 
> Has somebody experiencied sometihng like that? 
> Could anyone help us, please?
> 
> Best regards
> 
> -- 
> 
> Fred
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] HDF Bug [Was: Raster formats in Qgis 3.4]

2018-11-28 Thread Jorge Gustavo Rocha
Hi Alex,

Thanks for the example. I was able to read it without any problem (in
current QGIS master version).

I'm still using GDAL 2.2.3.

You can see the dialog at
https://gist.github.com/jgrocha/347e8fee0828d3c3176ed1644d76f897

I didn't trace the fix, but the problem is already solved (I think).

Regards,

Jorge Gustavo

Às 18:30 de 28/11/18, Alex M escreveu:
> On Qgis-user an issue was reported with loading HDF5 files in QGIS 3.4
> no Windows 10.
> 
> I was able to confirm that HDF5 files fail in QGIS 3.4.1, on Linux also.
> Not just the user's file but file I also have. In both cases the files
> work fine in QGIS 2.18.
> 
> This appears to be a regression related to subdatasets (sublayers). No
> dialog comes up asking the user which subdataset to load, and hence the
> load fails with a Provider is not Valid message.
> 
> Only bug info I can find was an old patch that solved this 7 years ago:
> https://issues.qgis.org/issues/5041
> 
> Here's a MODIS image in HDF5 for people to test with.
> https://drive.google.com/open?id=1hQEi3cRdVRlxih06nbo0gygAvJE08ft7
> 
> A secondary, minor issue, the Browser doesn't see the file if it has an
> extension beyond .hdf, in this the case .h5 was what the user supplied.
> 
> Thanks,
> Alex
> 
> On 11/27/18 10:26, Alex M wrote:
>> Yes, please share with the group.
>>
>> Thanks,
>> Alex
>>
>> On 11/27/18 10:20, Anabel Lamaro wrote:
>>>  Thank you very much for your answer. I use Windows 10 and I have just
>>> installed version 3.14 Madeira of the Qgis software. I enclose the error
>>> message in a screenshot. I'll see if I can send you a link to the image.
>>> Thank you very much Anabel
>>>
>>> El mar., 27 nov. 2018 a las 14:33, Alex M ()
>>> escribió:
>>>
>>>> Anabel,
>>>>
>>>> QGIS 3 supports all the same formats, however the loading dialog did
>>>> change.
>>>> https://www.gdal.org/formats_list.html
>>>>
>>>> Sometimes there can also be a slight variation in which drivers are
>>>> included in the gdal install, though that usually only applies to
>>>> proprietary formats like MrSID and ECW.
>>>>
>>>> What operating system are you using, which version of QGIS 3.4.?, and
>>>> can you send a link with an example file others can test with?
>>>>
>>>> Do you get an error message? Please explain more about how it's not
>>>> working.
>>>>
>>>> Thanks,
>>>> Alex
>>>>
>>>> On 11/27/18 09:17, Anabel Lamaro wrote:
>>>>> Good afternoon: I need to open some radar satellite images (Cosmo Skymed)
>>>>> that are in .h5 format (of the hdf type). With the previous version 2.18
>>>> it
>>>>> could open without inconvenience. I need help on this. Is there any
>>>> add-on
>>>>> to open this type of raster format? Thank you in advance! Anabel
>>>>>
>>>>> <
>>>> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
>>>>>
>>>>> Libre
>>>>> de virus. www.avg.com
>>>>> <
>>>> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
>>>>>
>>>>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>>>
>>>>>
>>>>> ___
>>>>> Qgis-user mailing list
>>>>> Qgis-user@lists.osgeo.org
>>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>>
>>>>
>>>>
>>>
>>
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS with Boundless Explorer

2018-11-29 Thread Jorge Gustavo Rocha
Hi Mats,

You should install the Geoserver Explorer plugin from sources [1]. You
will get the last version.

It already works on QGIS 3.x.

If you need further help, you are welcome.

Regards,

Jorge Gustavo

[1] https://github.com/boundlessgeo/qgis-geoserver-plugin

Às 09:30 de 29/11/18, Mats Elfström escreveu:
> Hi!
> I am struggling with a QGIS - Boundless Geoserver Explorer - Geoserver
> setup.
> I realise that Boundless' stuff is pretty outdated, so I'd like to
> know which the latest versions are that are supposed to run together?
> Also, if there are certain 32-64 dependencies that must be met.
> The platform is a Windows 2012 64 cloud server.
> Curently, I have
>
>   * QGIS 2.18.25 32 bit
>   * Geoserver Explorer 0.6 (boundless repository)
>   * Geoserver 2.13.3 on JVM 1.8.0_191 32 bit
>
> This does not work. I get a recurring Python error:
>
> local variable 'layerItem' referenced before assignment
>
> or various other fatal Python errors when attempting to publish layers
> and generally communicating with the Geoserver.
>
> There is no QGIS 3 version of the plugin.
>
> I have tried Geoserver 2.14 to no avail.
>
> I have also tried the QGIS version from Boundless, the so called
> Boundless Desktop. Same error unfortunately.
>
> This points to the Geoserver version as the culprit. Is anybody able
> to confirm this?
>
> I would really not like to downgrade that, since I'd like this server
> setup to be as current as possible.
>
> The bug tracker at Boundless github has similar questions, but no help.
>
> I'd appreciate any troubleshooting hints.
>
> Regards, Mats.E
>
>
> __
> Mats Elfström, Väpplingvägen 21, SE-227 38 LUND, Sweden
> tel: +46 46 145959 / mob: +46 70 595 39 35
> alt e-mail: mats.elfst...@giskraft.com <mailto:mats.elfst...@telia.com>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Diameter of buffers

2019-01-14 Thread Jorge Gustavo Rocha
Hi Herbert,


You are using a Mercator based projection to calculate distances [1]. It
was not designed for distance calculations.


Can you reproject to your own national/local projected coordinate
system? Compute the buffers using it and compare the results.


Regards,


Jorge


[1] https://en.wikipedia.org/wiki/Mercator_projection


Às 14:21 de 14/01/19, Herbert Faber escreveu:
> Dear all,
> When I put ring buffers arond dot objects, the diameter doesn't
> come out as I would expect.
>
> For instance, when I try to make ring buffer with a distance of 100
> meter and 25 segments around a dot object. The diameter of the buffer
> turns out to be approx 126 m when I measure it with the ruler tool.
>
> What am I doing wrong?
>
> I work with OSM Standard map in EPSG:3857 - WGS 84 / Pseudo-Mercator
> - projection and so are my shape files.
>
> Best regards,
> Herbert Faber 
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929

--------
 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] ModuleNotFoundError: No module named 'txt2tags'

2019-02-03 Thread Jorge Gustavo Rocha
Hi Jia,

For a quick work around, just edit the file and change the header:

sudo vi /usr/bin/txt2tags

#! /usr/bin/python2

import txt2tags
txt2tags.exec_command_line()

I hope that helps,

Jorge Gustavo

Às 13:52 de 03/02/19, JIA Pei escreveu:
>
> Hi, all:
>
> I'm using *Ubuntu 18.04*. And I'm quite sure I've *txt2tags* (an
> *EXE*) installed. And I also successfully installed *txt2tags* Python
> module from https://github.com/txt2tags/txt2tags . However, I still
> failed to build QGIS with the following *ERROR* messages??? Any
> suggestions?
>
>
> make[2]: Entering directory '../QGIS/build'
> [  0%] Building ../QGIS/build/doc/INSTALL from
> ../QGIS/doc/INSTALL.t2t
> cd ../QGIS/build/doc && /usr/bin/txt2tags --encoding=utf-8
> -o../QGIS/build/doc/INSTALL -t txt ../QGIS/doc/INSTALL.t2t
> Traceback (most recent call last):
>   File "/usr/bin/txt2tags", line 3, in 
>     import txt2tags
> ModuleNotFoundError: No module named 'txt2tags'
> doc/CMakeFiles/t2tdoc.dir/build.make:66: recipe for target
> 'doc/INSTALL' failed
> make[2]: *** [doc/INSTALL] Error 1
> make[2]: Leaving directory '../QGIS/build'
> CMakeFiles/Makefile2:1090: recipe for target
> 'doc/CMakeFiles/t2tdoc.dir/all' failed
> make[1]: *** [doc/CMakeFiles/t2tdoc.dir/all] Error 2
> make[1]: Leaving directory '../QGIS/build'
> Makefile:165: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
>
>
> -- 
>
> Pei JIA, Ph.D.
>
> Email: jp4w...@gmail.com <mailto:jp4w...@gmail.com>
> cell in Canada:    +1 778-863-5816
> cell in China: +86 186-8244-3503
>
> Welcome to Vision Open
> http://www.visionopen.com
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] ModuleNotFoundError: No module named 'txt2tags'

2019-02-03 Thread Jorge Gustavo Rocha
Hi,

Use *python2* instead of *python*.

The header should be: */usr/bin/python2* instead of */usr/bin/python*.

Regards,

Jorge

Às 04:46 de 04/02/19, JIA Pei escreveu:
>
> Thank you Avenida
>
> My current *txt2tags* file is ALREADY like that. Did you miss anything?
>
>
> ➜  ~cat /usr/bin/txt2tags  
> #! /usr/bin/python
>
> import txt2tags
> txt2tags.exec_command_line()
>
>
>
>
> On Sun, Feb 3, 2019 at 3:42 PM Jorge Gustavo Rocha  <mailto:j...@geomaster.pt>> wrote:
>
> Hi Jia,
>
> For a quick work around, just edit the file and change the header:
>
> sudo vi /usr/bin/txt2tags
>
> #! /usr/bin/python2
>
> import txt2tags
> txt2tags.exec_command_line()
>
> I hope that helps,
>
> Jorge Gustavo
>
> Às 13:52 de 03/02/19, JIA Pei escreveu:
>>
>> Hi, all:
>>
>> I'm using *Ubuntu 18.04*. And I'm quite sure I've *txt2tags* (an
>> *EXE*) installed. And I also successfully installed *txt2tags*
>> Python module from https://github.com/txt2tags/txt2tags .
>> However, I still failed to build QGIS with the following *ERROR*
>> messages??? Any suggestions?
>>
>>
>> make[2]: Entering directory '../QGIS/build'
>> [  0%] Building ../QGIS/build/doc/INSTALL from
>> ../QGIS/doc/INSTALL.t2t
>> cd ../QGIS/build/doc && /usr/bin/txt2tags
>> --encoding=utf-8 -o../QGIS/build/doc/INSTALL -t txt
>> ../QGIS/doc/INSTALL.t2t
>> Traceback (most recent call last):
>>   File "/usr/bin/txt2tags", line 3, in 
>>     import txt2tags
>> ModuleNotFoundError: No module named 'txt2tags'
>> doc/CMakeFiles/t2tdoc.dir/build.make:66: recipe for target
>> 'doc/INSTALL' failed
>> make[2]: *** [doc/INSTALL] Error 1
>> make[2]: Leaving directory '../QGIS/build'
>> CMakeFiles/Makefile2:1090: recipe for target
>> 'doc/CMakeFiles/t2tdoc.dir/all' failed
>> make[1]: *** [doc/CMakeFiles/t2tdoc.dir/all] Error 2
>> make[1]: Leaving directory '../QGIS/build'
>> Makefile:165: recipe for target 'all' failed
>> make: *** [all] Error 2
>>
>>
>>
>>
>> -- 
>>
>> Pei JIA, Ph.D.
>>
>> Email: jp4w...@gmail.com <mailto:jp4w...@gmail.com>
>> cell in Canada:    +1 778-863-5816
>> cell in China: +86 186-8244-3503
>>
>> Welcome to Vision Open
>> http://www.visionopen.com
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> -- 
> Logo*   Geomaster, LDA*
>   *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O
>
> *
>  
> Avenida Barros e Soares
> N.º 423, 4715-214 Braga
> VAT/NIF510 906 109
> Phone  +351 253 680 323
> Site   geomaster.pt <http://geomaster.pt>
> GPS   41.53322, -8.41929
>   
> 
>    
> Jorge Gustavo Rocha
> CTO
>
> Mobile  +351 910 333 888
> Email    j...@geomaster.pt <mailto:j...@geomaster.pt>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> -- 
>
> Pei JIA, Ph.D.
>
> Email: jp4w...@gmail.com <mailto:jp4w...@gmail.com>
> cell in Canada:    +1 778-863-5816
> cell in China: +86 186-8244-3503
>
> Welcome to Vision Open
> http://www.visionopen.com
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] SCP

2019-04-09 Thread Jorge Gustavo Rocha
Hi,

The SCP plugin has its own issue tracker at:

https://github.com/semiautomaticgit/SemiAutomaticClassificationPlugin/issues

Check if your problem was already reported by some else.

If not, file a new issue there. Please add more information about your
setup. At least, include information about your operation system and
QGIS version.

Regards,

Jorge Gustavo

Às 20:00 de 09/04/19, Nalisoa Maheriniavo Fleurette escreveu:
> Hello, 
> There was an error on installing the SCP plugin.
> What should I do,please?
> Thank You.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] (no subject)

2019-04-20 Thread Jorge Gustavo Rocha
Hi Helder,

Which style format do you need? Is it a specific Leaflet style format?

Do you use any map server (QGIS Server, Mpaserver, Geoserver, ...) to
provide tiles for your Leaflet client or do you display the shapefile
directly on the client?

Regards,

Jorge Gustavo

Às 22:37 de 19/04/19, Helder Ventura escreveu:
> Good day,
> I would like to know what is the best option to export shape styles
> (and only the styles!) from QGis into GeoJSON or export the styles to
> postgreSQL Database. All this is to be able to load the styles into
> leaflet. I can export the styles into postgresql, and load them in
> QGis, but I can't load them into leaflet.
> I would like some help please.
> Thanks in advance.
> Cumpliments 
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929

------------
 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [Papercuts] Open Attribute table and make editable in one go

2019-05-02 Thread Jorge Gustavo Rocha
Hi Richard,

When do you save the layer? With an explicit save action after several
edits? Or after each editing?

Regards,

Jorge Gustavo

Às 10:41 de 01/05/19, Richard Duivenvoorde escreveu:
> Hi,
>
> Got a question from a user, if it is possible to open the attribute
> table and make it editable in one go, to easily change something in some
> little layer.
> Instead of: make layer editable open attribute table.
> Or open table and click pencil to make it editable.
>
> I am aware that the double click action on a layer is configurable in
> Settings/Canvas & Legend, so the opening of the table is easy :-)
>
> Seems easy to add, so I'm wondering:
> - are others interested in this?
> - would I add this to the context menu (then how?)
> - would I add it in the Settings dropdown (as an extra item 'Open
> attribute tabled editable')
> - both?
>
> Regards,
>
> Richard Duivenvoorde
>
> PS adding tag [Papercuts] here, as I hope people will post more little
> tweaks/annoyances using this tag for things they think are small work to
> do but make working in QGIS much easier/nicer.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS       41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS to load spefific OpenStreetMap data

2019-05-14 Thread Jorge Gustavo Rocha
Hi Stefan,

Às 22:28 de 14/05/19, Stefan Keller escreveu:
> Hi,
> 
> I'm preparing a talk about QGIS and OpenStreetMap for the annual
> meeting of the local QGIS chapter.
> 
> => Question: How do you (users) load specific OSM data into QGIS, like
> for example all bakeries of Zurich? (ways/polygons as centroids?)
> 

I prefer to go to the overpass end point, to show how easy is to extract
OpenStreetMap data. It is faster than installing a plugin.

For a talk, use the overpass Wizard to build the query.

1) Go to http://overpass-turbo.eu/
2) Search for Zurich
3) Open the Wizard
4) Just type: bakery
5) Build and run query
6) Export as GeoJson
7) Add layer to QGIS (eventually points and polygons; calculate the
centroids for the polygons in QGIS)

Good luck for your presentation.

Regards,

Jorge Gustavo

> Background: QGIS 2 had a built in downloader which is gone in QGIS 3.
> This instruction is 4y old [1], and this wiki page seems to be
> outdated too [2].
> 
> I know, that QGIS can read OpenStreetMap XML (.osm) and .PBF files as
> vector layer. And I know about these two plugins: OSMDownloader [3]
> and QuickOSM [4].
> 
> * OSMDownloader requests a bbox from the user, then downloads the
> whole area through the OSM API using the OGR OSM driver.
> * QuickOSM generates queries in outdated Overpass XML, but accepts
> also the newer Overpass QL language, like for example the following:
> 
> [out:xml];
> area[name="Uster"];
> (
>   nwr[shop~"supermarket|bakery"](area);
> );
> out body;
>> ;
> out skel qt;
> 
> :Stefan
> 
> [1] https://learnosm.org/en/osm-data/osm-in-qgis/
> [2] https://wiki.openstreetmap.org/wiki/QGIS
> [3] https://plugins.qgis.org/plugins/OSMDownloader/
> [4] https://plugins.qgis.org/plugins/QuickOSM/
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS to load spefific OpenStreetMap data

2019-05-14 Thread Jorge Gustavo Rocha
Hi,

Thank you for the feedback, Clifford. Adding the suffix 'in Zurich' is
better than using the bounding box. Good point! We can drop the 'shop'
key and simply write: 'bakery or supermarket in Zurich' in the Wizard.
Much better!

Regards,

Jorge Gustavo


Às 00:02 de 15/05/19, Clifford Snow escreveu:
> Stefan,
> Let me make one suggestion to Jorge's overpass query. By using the
> Overpass-Turbo Wizard search for shop=bakery or shop=supermarket in
> Zurich. By adding in Zurich, the query will leave out objects in
> adjacent cities.
> 
> From the overpass turbo webpage, export the data as a geojson to load
> into QGIS. Should work like a charm.
> 
> Best
> Clifford
> 
> On Tue, May 14, 2019 at 3:43 PM Jorge Gustavo Rocha  <mailto:j...@geomaster.pt>> wrote:
> 
> Hi Stefan,
> 
> Às 22:28 de 14/05/19, Stefan Keller escreveu:
> > Hi,
> >
> > I'm preparing a talk about QGIS and OpenStreetMap for the annual
> > meeting of the local QGIS chapter.
> >
> > => Question: How do you (users) load specific OSM data into QGIS, like
> > for example all bakeries of Zurich? (ways/polygons as centroids?)
> >
> 
> I prefer to go to the overpass end point, to show how easy is to extract
> OpenStreetMap data. It is faster than installing a plugin.
> 
> For a talk, use the overpass Wizard to build the query.
> 
> 1) Go to http://overpass-turbo.eu/
> 2) Search for Zurich
> 3) Open the Wizard
> 4) Just type: bakery
> 5) Build and run query
> 6) Export as GeoJson
> 7) Add layer to QGIS (eventually points and polygons; calculate the
> centroids for the polygons in QGIS)
> 
> Good luck for your presentation.
> 
> Regards,
> 
> Jorge Gustavo
> 
> > Background: QGIS 2 had a built in downloader which is gone in QGIS 3.
> > This instruction is 4y old [1], and this wiki page seems to be
> > outdated too [2].
> >
> > I know, that QGIS can read OpenStreetMap XML (.osm) and .PBF files as
> > vector layer. And I know about these two plugins: OSMDownloader [3]
> > and QuickOSM [4].
> >
> > * OSMDownloader requests a bbox from the user, then downloads the
> > whole area through the OSM API using the OGR OSM driver.
> > * QuickOSM generates queries in outdated Overpass XML, but accepts
> > also the newer Overpass QL language, like for example the following:
> >
> > [out:xml];
> > area[name="Uster"];
> > (
> >   nwr[shop~"supermarket|bakery"](area);
> > );
> > out body;
> >> ;
> > out skel qt;
> >
> > :Stefan
> >
> > [1] https://learnosm.org/en/osm-data/osm-in-qgis/
> > [2] https://wiki.openstreetmap.org/wiki/QGIS
> > [3] https://plugins.qgis.org/plugins/OSMDownloader/
> > [4] https://plugins.qgis.org/plugins/QuickOSM/
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> 
> -- 
> Logo*   Geomaster, LDA*
>   *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O
> 
> *
>  
> Avenida Barros e Soares
> N.º 423, 4715-214 Braga
> VAT/NIF510 906 109
> Phone  +351 253 680 323
> Site   geomaster.pt <http://geomaster.pt> <http://geomaster.pt>
> GPS   41.53322, -8.41929
> 
> 
>          
> Jorge Gustavo Rocha
> CTO
> 
> Mobile  +351 910 333 888
> Email    j...@geomaster.pt <mailto:j...@geomaster.pt>
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> 
> 
> -- 
> @osm_washington
> www.snowandsnow.us <https://www.snowandsnow.us>
> OpenStreetMap: Maps with a human touch

-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Styling Issues with Graduated Styling

2019-05-18 Thread Jorge Gustavo Rocha
Hi Mike,

Thanks for your analysis. Can you provide further information?
1) What QGIS version are you using?
2) Can you share the data so we can reproduce the problem? (please
delete other columns that might have sensitive information).
3) There are previous issues related with this, but closed. Check for
example https://issues.qgis.org/issues/17345. Which values you get using
(the actual ogrinfo syntax depends on your data source):
ogrinfo -al -sql "SELECT min(column) from layer" source
or
ogrinfo -al -sql "SELECT max(column) from layer" source

Best regards,

Jorge

Às 19:02 de 17/05/19, Michael Treglia escreveu:
> Hi All,
> 
> I was recently noticing an issue when applying graduated styling to a
> layer based on a field. Basically, in some instances the lower bounds
> for the lower-most class were rounded up slightly at the nth decimal
> place, so the feature with that lowest value was not actually shown. And
> on the flip side, on occasion the uppermost value for the uppermost bin
> gets rounded down slightly, such that the feature with the highest value
> doesn't get displayed.
> 
> The the data admittedly have an unnecessary level of precision, but I
> don't think I noticed this issue with similar datasets until recently,
> and it would be ideal to not have to adjust fields a all just so they
> can be reliably displayed.
> 
> I'm happy to file a bug, but figured I'd raise it here. If it's a known
> issue and such, that's good to know also.  Of course if it sounds like I
> might be doing something wrong, happy to listen to advice too :-)
> 
> Thanks everyone! Best regards
> Mike
> 
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF 510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] query SQLand Proyects QSGIS - Saved

2019-05-22 Thread Jorge Gustavo Rocha
Hi Pablo,

1) You can copy your project to any other computer, or you can share the
project using a shared folder. Ensure the paths are valid, for resources
available from the file system.

2) You can also store the project in Postgresql. If you store your
project there, you can open it from any other computer. Ensure the paths
are valid, for resources available from the file system. You must eable
the support for writing and reading projects on the connection.

3) When sharing projects with database connections, to prevent access to
the database with the same username and password for all users, the best
option is to use pg_services.conf.

Is this ok for you?

Regards,

Jorge Gustavo

Às 22:33 de 22/05/19, Pablo J. Zader escreveu:
> Hi list
> 
> I am trying to leave the SQL queries that I created in QGIS and to persist in 
> successive 
> QGIS openings and closings. The way I found, was to save the QGIS project. 
> Now, 
> the question I have is: Is there any way to export the project with SQL 
> queries and then 
> open everything in another QGIS installation?
> 
> Thanks in advanced
> P.
> 
> 
> 
> -- 
> 
> Pablo J. Zader
> Lic. en Cs. de la Computación + MSc. en Aplicaciones Espaciales de
> Alerta y Respuesta Temprana a Emergencias
> pablo.za...@gmail.com <mailto:pablo.za...@gmail.com> 
> 
> Universidad Nacional de Córdoba
> Av. Valpáraíso s/n Ciudad Universitaria
> 
>  skype linkedIn <http://linkedin.com/in/pablo-javier-zader-7a232125> 
> 
> /"Los Grandes Hombres hablan sobre ideas...  Los Hombres Promedio
> hablan sobre cosas...  Los Hombres Pequeños hablan.. de otros Hombres./
> 
> /del libro Matemática estas ahí? A. Paenza "/
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Can I style a line based on a node's m value within the line

2019-06-07 Thread Jorge Gustavo Rocha
Hi Calvin,

If you have points, you can use the m value to style them (using the
expression m($geometry)). For a line, how would you like to symbolize
the line between two consecutive nodes? By interpolating the values of
two consecutive nodes?

In JOSM, I really enjoy the GPS tracks symbolized with different colors,
depending on the speed, for example.

You are asking for something like this [1]?

Regards,

Jorge Gustavo

[1] https://geomaster.pt/wp-content/uploads/2019/06/josm-with-track.png

Às 19:52 de 06/06/19, C Hamilton escreveu:
> Is it possible to style a line in QGIS based on the value of each
> node's m or z value within the line? If the m value represents a
> geophysical value than styling the line based on each node's intensity
> would be really nice.
>
> Thanks,
>
> Calvin
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929

--------
 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Working with QGIS 3 with styles stored in spatialite database

2019-06-13 Thread Jorge Gustavo Rocha
Hi Anna,

The export layer just export data. When you do a "Save Vector Layer
as..." only the data is copied to the new GeoPackage.

Right now, you have to:

i) Export data (and add it as a layer)

ii) Copy and paste the style(s) fro the old layer to the new layer

iii) Save the style(s) in the new GeoPackage, one by one

iv) Distribute the GeoPackage with the data and all the styles. If you
save more than one style, you are able to selected which one to apply
(Layer Properties → Style → Load style "from database (GeoPackage)" and
you see the list of "Other styles on the database", on the bottom of the
dialog, with a name and description.)

Would you like to also save all layers styles when you export a layer? I
think that does make sense. I don't know if anyone else already
requested this. Can you search https://github.com/qgis/QGIS/issues and
create a new feature request, if necessary?

Regards,

Jorge Gustavo

Às 10:34 de 13/06/19, Anna Muñoz escreveu:
> Hello,
>
> I am working in QGIS 3.4 with a geopackage file (SQLite database)
> containing geographic information (points, lines and polygons).
> In QGIS, I have defined by hand a style for every layer in geopackage
> (gpkg).
> It's a time consuming task so I have saved layer styles in QML file,
> and also in the  GPKG  file.
> When I open my GPKG file in another QGIS session it works well showing
> every layer with their style.
>
> Questions:
>
> 1. I have problems when export the styled gpkg to another gpkg.
>    The output file doesn't contain the layer_styles table so the
> styles definitions are lost.
>    It doesn't matter if I export completely the gpkg stylized or only
> selected features.
>    Of course I can apply QML file but I would like to have the
> symbology stored in the geopackage.
>
>    Maybe I have to check any specific option to export the gpkg file?
>
> 2. By other hand, I defined different styles (3 or more) to the same layer
>    and I saved these styles to the geopackage (they are well stored in
> layers_styles table).
>
>    When I open my gpkg file in another QGIS session, only the default
> style is applied to the layer (tha's ok).
>    But, loading other styles from sqlite database doesn't apply to the
> layer and QGIS doesn't show any error message.
>
>    How can I use other styles saved in gpkg?
>
> Thank you in advance for your time !
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Trouble with reading raster data from PostGIS

2019-07-01 Thread Jorge Gustavo Rocha
Hi,

You registered the raster out of the DB. You need to provide the full
path for the raster, not just name.tif.

Regards,

Jorge Gustavo

Às 16:46 de 01/07/19, Marks, Constant escreveu:
>
> Can anyone help me with getting my system setup correctly for adding
> raster layers from a Postgresgl10/PostFIS3 server setup on an RHEL7
> server.  
>
>  
>
> I can connect to the database and it shows up in my console but when I
> go to add a referenced raster layer from the Database Manager I get an
> error like this in the  Rendering Log:
>
>  
>
> /smodr_5d83364e_b1aa_431d_b8af_c1b1c625710e ::
> PostGISRasterRasterBand::IRasterIO(): ERROR:
> rt_band_load_offline_data: Cannot open offline raster://name.tif/
>
>  
>
> In the Layers dialog the extents show as 1.79769e+308/-1.79769e+308.
>
>  
>
> I can resolve this if I do not use the –R flag when importing the
> raster into pg using the rater2pgsql function.  I expect this has
> something to do with the postgis.enable_outdb_raster variable but
> changing this with SET postgis.enable_outdb_raster TO True does not help.
>
> Any ideas?
>
>  
>
> *Constant Marks
> *Research Assistant | Computer Science and Engineering
> University of North Texas
>
> Office: Discovery Parks F216 
> e: constant.ma...@unt.edu <mailto:constant.ma...@unt.edu>
> t: (303) 482 7292 
>
>  
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problem with the raster combine tool (in spanish combinar)

2019-07-23 Thread Jorge Gustavo Rocha
Hola Ruben,

I see that your data is under /Users/rubendp/Desktop/mapa bárdenas reales/

Can you try to put your maps on another folder, using a folder name
without accents, like:

/Users/rubendp/Desktop/mapabardenasreales/

I'm not sure if this is the problem, but try it.

Regards,

Jorge Gustavo

Às 11:27 de 23/07/19, ruben dp escreveu:
> Hello,
> First, sorry for my english (i'm spanish)
> I was trying to combine 4 jpgs with the raster combine tool (with the
> presets of said tool) and i can't do it.
> I get a message that says: 
>
> "Procesando algoritmo...
>
> Algoritmo 'Combinar' comenzando…
>
> Input parameters:
>
> { 'DATA_TYPE' : 5, 'INPUT' : ['/Users/rubendp/Desktop/mapa bárdenas
> reales/mag244/mag244.jpg','/Users/rubendp/Desktop/mapa bárdenas
> reales/mag245/mag245.jpg','/Users/rubendp/Desktop/mapa bárdenas
> reales/mag282/mag282.jpg','/Users/rubendp/Desktop/mapa bárdenas
> reales/mag283/mag283.jpg'], 'NODATA_INPUT' : None, 'NODATA_OUTPUT' :
> 0, 'OPTIONS' : '', 'OUTPUT' : '/Users/rubendp/Desktop/mapa bárdenas
> reales/litconj.tif', 'PCT' : False, 'SEPARATE' : False }
>
> Traceback (most recent call last): File
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/gdal/GdalAlgorithm.py",
> line 133, in processAlgorithm commands =
> self.getConsoleCommands(parameters, context, feedback, executing=True)
> File
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/gdal/merge.py",
> line 165, in getConsoleCommands list_file =
> GdalUtils.writeLayerParameterToTextFile(filename='mergeInputFiles.txt',
> alg=self, parameters=parameters, parameter_name=self.INPUT,
> context=context, quote=True, executing=executing) File
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/gdal/GdalUtils.py",
> line 420, in writeLayerParameterToTextFile f.write('\n'.join(layers))
> UnicodeEncodeError: 'ascii' codec can't encode character '\xe1' in
> position 30: ordinal not in range(128)
>
> Execution failed after 0.03 seconds
>
> Cargando las capas resultantes
>
> Algorithm 'Combinar' finished"
>
> Please, I need help, thanks.
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Informação.

2019-08-01 Thread Jorge Gustavo Rocha
Oi Paulo,

Tenta em https://gadm.org/

Boa sorte,

Jorge Gustavo

Às 19:49 de 01/08/19, Paulo Brandao escreveu:
> Boa tarde...
>
> Onde posso baixar shapefiles dos EUA (divisão dos estados) e da África
> (divisão dos estados) ?
>
> Pois não estou localizando onde baixar estes arquivos.
>
> Obrigado.
>
> Paulo Brandão.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929

--------
 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Adding PostGIS Layer (Query Before Load)

2019-08-05 Thread Jorge Gustavo Rocha
Hi Peter,

1) Normally, after clicking "Connect" you will get all layers. You can
select one of them and use "Set filter" to define a filter before adding
it to the map. Sorry for asking, but you are aware of the "Set filter"
button, right?

2) In your case, it hangs before that. It hangs before listing all
tables. When you click connect, QGIS will fetch some metadata to fill
the list of available tables with the correspondent geometry type. One
of such metadata queries is failing against your tables.

Can you enable logging of all Postgresql statements and identify the
query that is hanging QGIS? It would help to identify the problem.

Regards,

Jorge Gustavo

Às 23:29 de 05/08/19, Peter Borissow escreveu:
> Hello,
>  I have a partitioned table in a PostgreSQL/PostGIS database with
> ~30 billion points. I would like to render a subset of this data in
> QGIS and run some analytics.
>
> Normally, with a smaller dataset, I would simply navigate to the table
> I want via the "Browser" and add it to the map via a double click.
> Once the data is loaded, I can filter the data, run analysis, etc.
> However, in my case, this is impossible. What I need is an option to
> filter the data before loading it into the map.
>
> I looked at the Data Source Manager (Layer -> Add Layer -> Add PostGIS
> Layers...) but I don't see any filtering options there and the app
> hangs when I hit the "Connect" button.
>
> Obviously, I can create views in the database to circumvent this issue
> but I don't want to create dozens of custom views.
>
> Is there another way to create a layer from PostgreSQL/PostGIS using a
> filter-first strategy in QGIS?
>
> Thanks in advance,
> Peter
>
>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site       geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Postgres 11 will not CREATE EXTENSION postgis;

2019-08-28 Thread Jorge Gustavo Rocha
Hi Bryan,

This error is not related to QGIS.

After installing Postgresql, you have to install Postgis [1]. After
installing Postgis, you have to enable that extension in each database
that handles geospatial data.

If you are using Windows, there are Windows installers available that
allows you to install additional packages, like Postgis, using the
installation GUI, like EnterpriseDB Windows installer [2]. If you are
just starting learning, use something like this.

Regards,

Jorge Gustavo

[1] https://postgis.net/install/

[2] https://www.postgresql.org/download/windows/

Às 13:29 de 28/08/19, Bryan Price escreveu:
>
>  
>
>     I am new to Postgres and QGIS but when attempting to
> "CREATE EXTENSION postgis;" I consistently receive ERROR:  could not
> load library "C:/Program Files/PostgreSQL/11/lib/rtpostgis-2.5.dll":
> The specified module could not be found.SQL state: XX000 . Most
> references on web refer to incompatible  versions of QGIS / Postgresql
> . this is not the case I have verified, in fact the same installation
> runs fine on my win 10 laptop. It has something to do with the Win
> Server 2012 R2 that I have installed it on. Need some direction of
> where to look next
>
> PostGres v11
> pgAdmin4
>
> QGIS v 3.8.1
>
>  
>
> Sincerely,
> *Bryan Price*
>
> GIS Manager | St. Clair County, AL
> br...@stclairco.com <mailto:br...@stclairco.com>
>
> www.stclairgis.com <http://www.stclairgis.com/>
>
>  
>
>  
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] About plant count

2019-09-01 Thread Jorge Gustavo Rocha
Hi Carlos,

Can you tell us more about your data source? They are images? What bands
do you have?

Are you able to count the plants manually, from the data source? Can you
provide an example with plants highlighted?

Regards,

Jorge

Às 00:59 de 02/09/19, carlos h escreveu:
> Hello, nice to greet you!
>
> Anyone know any free Artificial Intelligence software for element
> recognition, for example to perform plant counting? or some
> methodology with free software to perform plant counting?
>
> Thank you
>
> CA
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929

--------
 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] banging my head against the QGIS wall

2019-09-13 Thread Jorge Gustavo Rocha
Hi Tom,

Maybe you can tell us more about your setup. It seems that you are
talking about QGIS Server, right?

Which version are your using? Which OS are you using? Which project? Are
you requesting WMS maps or WMTS tiles? Which client are you using for
testing the server?

How is your QGIS Server project configured?

Regards,

Jorge Gustavo

Às 19:20 de 13/09/19, Tom Vogt escreveu:
> Hey everyone,
>
> I’ve been playing with QGIS for many years, but now I’m on the mailing list 
> as well. I’ve been banging my head against QGIS for the past two days and 
> just can’t get it to work, so maybe I can find help here. It just doesn’t 
> give me WMS tiles or they are blank. Then I fiddle around and it works, then 
> I clean it up to make it work and it stops again. It’s driving me crazy. :-)
>
>
> Any hints on debugging qgis_mapserv.fcgi ?
>
>
> Tom
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929

--------
 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] banging my head against the QGIS wall

2019-09-13 Thread Jorge Gustavo Rocha
Hi Tom,

Às 19:49 de 13/09/19, Tom Vogt escreveu:
> Interesting idea. How can I call the WMS interactively ?
>
You can define environment variables and then call the executable on the
command. That is the best way to know what is going on.

Something like (this is for Linux, but Windows should be similar):

export QUERY_STRING="SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"

export QGIS_PROJECT_FILE="/home/jgr/qgis/ne_10m_admin_0_countries/world.qgz"

/usr/lib/cgi-bin/qgis_mapserv.fcgi

>
> There is, to be honest, not enough documentation on the QGIS server. I
> still don’t understand how it picks a map file when you don’t give one
> explicitly, for example.
>
>
You can pass the MAP parameters or use the project defined in the
configuration. So, if you don't use a MAP parameter, it will use the
project defined in your *.conf file.

Best regards,

Jorge Gustavo

>
>
>> Am 13.09.2019 um 20:39 schrieb Alessandro Pasotti > <mailto:apaso...@gmail.com>>:
>>
>> You can try with python, and call it interactively. Also increase the
>> logging level and if you can access a debug build set QGIS debug on.
>>
>> Last resource you can use a real debugger, check this out: 
>>  https://github.com/elpaso/qgis-dev-vagrant
>>                 
>>
>>
>> On Fri, Sep 13, 2019, 20:28 Tom Vogt > <mailto:t...@lemuria.org>> wrote:
>>
>> Hey everyone,
>>
>> I’ve been playing with QGIS for many years, but now I’m on the
>> mailing list as well. I’ve been banging my head against QGIS for
>> the past two days and just can’t get it to work, so maybe I can
>> find help here. It just doesn’t give me WMS tiles or they are
>> blank. Then I fiddle around and it works, then I clean it up to
>> make it work and it stops again. It’s driving me crazy. :-)
>>
>>
>> Any hints on debugging qgis_mapserv.fcgi ?
>>
>>
>> Tom
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS installation on Ubuntu 18.04

2019-09-22 Thread Jorge Gustavo Rocha
Hi Jimi,

Maybe the keyserver is not available.

Can you try with this to have the key:

wget -O - https://qgis.org/downloads/qgis-2019.gpg.key | sudo tee
apt-key add -

Good luck,

Jorge Gustavo

Às 15:50 de 22/09/19, J. M escreveu:
> Hi there team,
>
> I have been trying (and failing) to install the latest version of QGIS
> for a couple of days, but I keep getting the same error message (the
> public key is not available). I tried sending this message with a
> screenshot but it exceeded the capacity restrictions. If anyone can
> help me through the instructions
> on https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu
> then I'd really appreciate it! 
>
> I'd love to get started learning QGIS, but I can't get anything other
> than an old version to install...
>
> Many thanks to the community.
> Jimi.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929

--------
 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS installation on Ubuntu 18.04

2019-09-23 Thread Jorge Gustavo Rocha
Hi Jimi,

I'm pretty sure that we can help you, but please provide more detailed
description of your setup. Are you are installing QGIS on Debian?
Ubuntu? Which version of the operation system?

You have added a line to your /etc/apt/sources.list, right? Which line
did you added?

Best regards,

Jorge

Às 13:32 de 23/09/19, J. M escreveu:
> Hi Jorge,
>
> Well, I tried your suggestion and it gave me a BEGIN .. END key block,
> which it didn't do before. Before it said that the key server was not
> available. So I followed the rest of the instructions
> on https://www.qgis.org/en/site/forusers/alldownloads.html
> and it installed version 2.18.17 (Las Palmas) exactly as it has every
> other time. I thought this was because I had used instructions from
> another site on another occasion, but with the QGIS.org instructions
> it is doing the same. Do you have any idea how to install the latest
> version automatically? I had already done 'sudo apt-get remove qgis'
> and 'sudo apt-get get purge qgis', to remove any older packages.
>
> Any help would be great, as I really want to start learning QGIS!
>
> Kind regards,
> Jimi.
>
> On Mon, Sep 23, 2019 at 12:21 PM J. M  <mailto:jimimc...@gmail.com>> wrote:
>
> Hi Jorge!
>
> Thanks a lot for your advice. I'll give it a go and let you know...
>
> Many thanks!
> Jimi
>
> On 22 Sep 2019 18:00, "Jorge Gustavo Rocha"  <mailto:j...@geomaster.pt>> wrote:
>
> Hi Jimi,
>
> Maybe the keyserver is not available.
>
> Can you try with this to have the key:
>
> wget -O - https://qgis.org/downloads/qgis-2019.gpg.key | sudo
> tee apt-key add -
>
> Good luck,
>
> Jorge Gustavo
>
> Às 15:50 de 22/09/19, J. M escreveu:
>> Hi there team,
>>
>> I have been trying (and failing) to install the latest
>> version of QGIS for a couple of days, but I keep getting the
>> same error message (the public key is not available). I tried
>> sending this message with a screenshot but it exceeded the
>> capacity restrictions. If anyone can help me through the
>> instructions
>> on https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu
>> then I'd really appreciate it! 
>>
>> I'd love to get started learning QGIS, but I can't get
>> anything other than an old version to install...
>>
>> Many thanks to the community.
>> Jimi.
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> -- 
> Logo*   Geomaster, LDA*
>   *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O
>
> *
>  
>     Avenida Barros e Soares
> N.º 423, 4715-214 Braga
> VAT/NIF510 906 109
> Phone  +351 253 680 323
> Site   geomaster.pt <http://geomaster.pt>
> GPS   41.53322, -8.41929
>   
> 
> 
>    
> Jorge Gustavo Rocha
> CTO
>
> Mobile  +351 910 333 888
> Email    j...@geomaster.pt <mailto:j...@geomaster.pt>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-- 
Logo*   Geomaster, LDA*
  *VENHA DESCOBRIR O CAMINHO DO OPEN SOURCE CONNOSC**O

*
 
Avenida Barros e Soares
N.º 423, 4715-214 Braga
VAT/NIF510 906 109
Phone  +351 253 680 323
Site   geomaster.pt <http://geomaster.pt>
GPS   41.53322, -8.41929


 
Jorge Gustavo Rocha
CTO

Mobile  +351 910 333 888
Email    j...@geomaster.pt


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Swamp identification

2019-10-02 Thread Jorge Gustavo Rocha
Hi Jean,

Take a look at
https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html

Best regards,

Jorge Gustavo

Às 13:19 de 02/10/19, jean Lukusa escreveu:
> Hi all .
> Would you  assist me how to identify swamp areas in a  landsat or
> googleearth 
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt>     
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problems using QGIS 3.8 with the 3.4 Training Manual

2019-10-30 Thread Jorge Gustavo Rocha
Hi Ken,

Where are you storing the new layer? Maybe you are not selecting a
folder where you can write the new shapefile (that's why you get the
permission denied error). Can you confirm the location of the new shapefile?

Regards,

Jorge Gustavo

Às 16:15 de 30/10/19, Ken McCall escreveu:
>
> After years of using ARCGIS, I’m using the training manual to become
> acquainted with QGIS. I’ve downloaded 3.8, and worked through the
> first 100 pages with no problem. While  some of the 3.8 dialog boxes
> don’t look like the training manual I’ve been able to see the required
> buttons, drop downs, etc. But on others, I’ve hit some deadends.
>
>  
>
> For example, on page 105 when it try to create a dynamic map canvas,
> in 5.2.1.5, when I go to the Item /Properties Panel/, there is no
> /Position and Size/ section showing.
>
>  
>
> Another example: On p. 114 in ‘Creating a New Vector Dataset’, when I
> try to save the dataset, I get an error message:
>
>  
>
> ‘Layer creation failed: Failed to create file created_shapefile.shp:
> Permission denied.
>
>  
>
> In both examples, I’ve tried several times, following the
> instructions, only to get the same result.
>
>  
>
> So, questions:
>
>  
>
> Is 3.8 that different from 3.4?
>
> Am I running into bugs in the software or the documentation? (It could
> be user error, but I’m painstakingly following the instructions.)
>
> Should I scrap 3.8 and go with 3.4 instead?
>
>  
>
> TIA,
>
>  
>
> Ken McCall
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] PyQGIS: Get project extent outside QGIS

2019-11-18 Thread Jorge Gustavo Rocha
Hi,

I want to read a project file and get the extent when the project was saved.

In QGIS,

iface.mapCanvas().extent()

does exactly what I want. But I want to run a script outside QGIS.

I've already tried:

QgsApplication.setPrefixPath("/usr", True)
qgs = QgsApplication([], False)
# Load providers
qgs.initQgis()

project = QgsProject.instance()
project.read(projectpath)

print(project.crs().authid())

root = project.layerTreeRoot()
canvas = QgsMapCanvas()

bridge = QgsLayerTreeMapCanvasBridge(root, canvas)

print(canvas.extent())
print(canvas.fullExtent())
print(canvas.mapSettings().extent())
print(canvas.mapSettings().fullExtent())
print(canvas.mapSettings().visibleExtent())

All of these extents are much wider than the canvas extent when the
project was saved.

The extent is there, in the project file. I can read it as XML and get
the extent.

  
    meters
    
  -22630.49319827121144044
  208610.29666395089589059
  -22314.35674389618725399
  208889.62023152899928391
    

But I would like to use the API.

Thanks in advance,

Jorge

-- 
Email Signature
Logo <https://www.geomaster.pt>     
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] PyQGIS: Get project extent outside QGIS

2019-11-18 Thread Jorge Gustavo Rocha
Hi,

Answer to my own question: the order was wrong.

I need to call

QgsLayerTreeMapCanvasBridge

before reading the project.

This works:

QgsApplication.setPrefixPath("/usr", True)
qgs = QgsApplication([], False)
# Load providers
qgs.initQgis()

project = QgsProject.instance()

root = project.layerTreeRoot()
canvas = QgsMapCanvas()

bridge = QgsLayerTreeMapCanvasBridge(root, canvas)

project.read(projectpath)

print(project.crs().authid())

print(canvas.extent())
print(canvas.fullExtent())
print(canvas.mapSettings().extent())
print(canvas.mapSettings().fullExtent())
print(canvas.mapSettings().visibleExtent())

Sorry for the noise.

Jorge

On 18/11/19 16:55, Jorge Gustavo Rocha wrote:
>
> Hi,
>
> I want to read a project file and get the extent when the project was
> saved.
>
> In QGIS,
>
> iface.mapCanvas().extent()
>
> does exactly what I want. But I want to run a script outside QGIS.
>
> I've already tried:
>
> QgsApplication.setPrefixPath("/usr", True)
> qgs = QgsApplication([], False)
> # Load providers
> qgs.initQgis()
>
> project = QgsProject.instance()
> project.read(projectpath)
>
> print(project.crs().authid())
>
> root = project.layerTreeRoot()
> canvas = QgsMapCanvas()
>
> bridge = QgsLayerTreeMapCanvasBridge(root, canvas)
>
> print(canvas.extent())
> print(canvas.fullExtent())
> print(canvas.mapSettings().extent())
> print(canvas.mapSettings().fullExtent())
> print(canvas.mapSettings().visibleExtent())
>
> All of these extents are much wider than the canvas extent when the
> project was saved.
>
> The extent is there, in the project file. I can read it as XML and get
> the extent.
>
>   
>     meters
>     
>   -22630.49319827121144044
>   208610.29666395089589059
>   -22314.35674389618725399
>   208889.62023152899928391
>     
>
> But I would like to use the API.
>
> Thanks in advance,
>
> Jorge
>
> -- 
> Email Signature
> Logo <https://www.geomaster.pt>   
> *Geomaster*
> *Jorge Gustavo Rocha* | Software Engineer
> *e:*j...@geomaster.pt | *m:*+351 910 333 888
> *g:*41.54094,-8.40490 | *v: *510 906 109
> *a: * Rua António Cândido Pinto, 67, 4715-400 Braga
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Experiences using QGIS + PostgreSQL/PostGIS in a multiuser environment?

2019-11-20 Thread Jorge Gustavo Rocha
his issu!
>>>
>>> Kind Regards
>>> Jan-Eric
>>>
>>> -Ursprungligt meddelande-
>>> Från: Qgis-user >> <mailto:qgis-user-boun...@lists.osgeo.org>> För Hernán
>>> De Angelis
>>> Skickat: den 20 november 2019 11:10
>>> Till: qgis-user >> <mailto:qgis-user@lists.osgeo.org>>
>>> Ämne: [Qgis-user] Experiences using QGIS +
>>> PostgreSQL/PostGIS in a multiuser environment?
>>>
>>> Hello QGIS:ers
>>>
>>> I am evaluating setting up a server running
>>> PostgreSQL/PostGIS for use as data sharing/collaborating
>>> environment for spatial data. The user group may consist
>>> of up to 15 people, mostly using QGIS but one or two may
>>> use other software (non OS). Data is almost exclusively
>>> of vector type. The use is within a single organization.
>>>
>>> I understand some people in this list have experience
>>> with this kind of environment and would appreciate if
>>> any of you would share any useful experience,
>>> challenges, thought or things to watch out for. I
>>> understand basic management routines are critical (user
>>> management, user rights), as well as a sound backup and
>>> update strategy. I also understand that proper data
>>> management procedures have to be in place, like rules
>>> for table creation and eventual deletion, attribute
>>> selection, etc. But what else can go wrong with this
>>> kind of setup if not managed properly?
>>> Thoughts and experiences welcome!
>>>
>>> Best regards and thanks in advance
>>>
>>> Hernán
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>>> List info:
>>> https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe:
>>> https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>>> List info:
>>> https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe:
>>> https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>> -- 
>> Alessandro Pasotti
>> w3:   www.itopen.it <http://www.itopen.it>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Handle local layers in resources folder when project saved in PostgreSQL

2019-12-05 Thread Jorge Gustavo Rocha
Hi,

In my setup - using PGSERVICES - all vector, raster, styles and projects
are stored on database. This is my preferred way to organize the data:
on a database. QGIS Server also takes advantage of this setup and
publish the projects directly from the database, using the rasters (in
db or out of db rasters).

The few things I'm not sharing on the database are SVG, layout images
and fonts.

There are problems with Postgresql/GDAL access to Postgresql, but if
using PGSERVICES it works.

Best regards,

Jorge

On 05/12/19 11:18, Alessandro Pasotti wrote:
>
>
> On Thu, Dec 5, 2019 at 11:58 AM Yann Voté  <mailto:ygver...@lilo.org>> wrote:
>
> Hi all,
>
> I can't find a solution to the following issue, or a way to work
> around
> it: I have created a project with some PostgreSQL layers to edit and
> some raster layers on local filesystem. I work on a Linux computer
> and
> have put the local layers into the pkg data path resources folder
> (/usr/share/qgis/resources/local/raster.gpkg).
>
>
> Sorry but this is not a good idea, that path is usually not
> user-writeable and should not be used to store any user related
> information.
>
> But if I understand correctly what you were trying to do I'm afraid
> there is not a solution: the concept of "relative path" means relative
> to the project's storage path but that path does not make any sense in
> case of a POSTGRES storage (because POSTGRES is not a local
> filesystem-based DB in the same sense as GPKG or SPATIALITE are), so
> your file-system based asset paths are not (and cannot be) converted
> to relative paths because there is no project path we can relate to.
>
> This makes portability an issue if the project has filesystem-based
> layers (rasters in your case).
>
> There is no solution I'm aware of, storing rasters into PG is also not
> a viable option at the moment because support is currently buggy (see:
> https://github.com/qgis/QGIS/issues/30392).
>
> Cheers
>
> I have also saved the project into PostgreSQL so that it can be
> shared
> easily. Other users work on Windows computers and have the same
> rasters
> under pkg data path resources folder
> (C:/PROGRAM~1/QGIS3~1.8/apps/qgis/resources/local/raster.gpkg).
> But when
> they open the project, Postgis layers are loaded fine, but QGIS says
> that raster.gpkg cannot be found under the /usr/share/... path.
>
> I would expect that layers in the pkg data path resources folder are
> saved with the inbuilt: prefix, but in fact they are not.
> Moreover, it
> seems that one cannot select "Relative" for saving layer paths, in
> project properties, when project is saved to PostgreSQL. Looks
> sensible
> (what is the relative path to a PostgreSQL table ?), but then what
> can I
> do to share a PostgreSQL project with local layers ?
>
> We all use QGIS 3.8.3.
>
> Thank you for any advice !
>
> Cheers
>
> Yann
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> -- 
> Alessandro Pasotti
> w3:   www.itopen.it <http://www.itopen.it>
>
> ___________
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Imported Line Symbol Problem

2019-12-15 Thread Jorge Gustavo Rocha
Hi Dave,

It seems like a path problem. Are these resources SLD with references to
SVG?

Please share the link where you downloaded the resources, so we can
replicate the problem.

We have a very useful plugin called QGIS Resource Sharing (but with very
low usage). If you provide the link to the resources, we can add that
symbology to a public repository, so all can take advantage of it.

You already have there some geological symbols from Sweden, I think. You
must enable "experimental" plugins to install QGIS Resource Sharing.

Regards,

Jorge

On 15/12/19 08:28, Dave Gardiner wrote:
> Hi
>
> I have imported geological symbols (xml) from the Federal Geographic Data
> Committee but find when using the symbols they are overridden with question
> marks (refer image). Would anyone know why these have not imported correctly
> please?
>
> <http://osgeo-org.1560.x6.nabble.com/file/t385786/Geology_Symbol.jpg> 
>
> Thanks Dave
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Use form with checkboxes to alter a query?

2019-12-15 Thread Jorge Gustavo Rocha
Hi Bernd,

May I suggest two tables?

You can create another table *control*, with just two columns: name and
active.

This could be filled with:

select distinct name, true from areas;

Your query would be like:

SELECT *
FROM areas
WHERE name IN (select name from control where active)

To change the virtual layer, you just need to open the *control* table
and click on the active column to set/unset as active. (You may have to
change the active column's edit widget to make it a checkbox).

I didn't test it.

Regards,

Jorge

On 12/12/19 17:12, Bernd Vogelgesang wrote:
> Hi,
>
> I have a layer with over 150 polygons, where 20 to 30 of them change
> their access status on a daily base. The information about the status
> comes in a quiet unstructured pdf, so there is no way to automatically
> read that in.
>
> At the moment, I query the layer through a virtual layer like this to
> show the subset of restricted areas:
>
> SELECT *
> FROM areas
> WHERE name IN ('a','b','c','l','p', 'x','y','z')
>
> It is quite a tedious job to fiddle in the names into the query string
> every time, so I wonder if anyone knows a way, how to connect a form
> with check boxes of those area names, so when I submit it,
> only the checked names will be inserted in that query.
>
> I'm quite sure that this should be possible somehow, but I lack of any
> idea where to start. Or maybe solve this on a complete different way?
>
> Cheers,
> Bernd
>
>
> -- 
> Dipl.-Geogr.
> Bernd Vogelgesang
> Siedlerstraße 2
> 91083 Baiersdorf/Igelsdorf
> Tel: 09133-825374
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Couldn't load SIP module. ModuleNotFoundError: No module named 'qgis'

2019-12-17 Thread Jorge Gustavo Rocha
Hallo Frank,

Have you installed QGIS from https://qgis.org/ubuntu/? What do you have
in your /etc/apt/sources.list?

You should have installed a package called python3-qgis and another
python3-qgis-common.

$ dpkg -L python3-qgis
/.
/usr
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/qgis
/usr/lib/python3/dist-packages/qgis/3d
/usr/lib/python3/dist-packages/qgis/3d/__init__.py
/usr/lib/python3/dist-packages/qgis/_3d.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/_analysis.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/_core.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/_gui.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/_server.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/analysis
/usr/lib/python3/dist-packages/qgis/analysis/__init__.py
/usr/lib/python3/dist-packages/qgis/core
/usr/lib/python3/dist-packages/qgis/core/__init__.py
/usr/lib/python3/dist-packages/qgis/gui
/usr/lib/python3/dist-packages/qgis/gui/__init__.py
/usr/lib/python3/dist-packages/qgis/server
/usr/lib/python3/dist-packages/qgis/server/__init__.py
/usr/share
/usr/share/doc
/usr/share/doc/python3-qgis
/usr/share/doc/python3-qgis/changelog.Debian.gz
/usr/share/doc/python3-qgis/changelog.gz
/usr/share/doc/python3-qgis/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/python3-qgis

Regards,

Jorge

On 17/12/19 21:02, Frank Heuer wrote:
>
> Hallo qgis users
>
> I need help with the new 3.10 qgis on my ubuntu Ubuntu 18.04.3 LTS
> system. When I start qgis, I get an Python-errorbox showing, that the
> SIP module could not be loaded. Because I run with german locale I
> could only post the german message here, but its nearly the same as in
> https://issues.qgis.org/issues/22029. Here is the original:
>
> Das SIP-Modul konnte nicht geladen werden.
> Die Python-Unterstützung wird abgeschaltet.
>
> Traceback (most recent call last):
> File "", line 1, in
> ModuleNotFoundError: No module named 'qgis'
>
> Python-Version:
> 3.6.9 (default, Nov 7 2019, 10:44:02)
> [GCC 8.3.0]
>
> QGIS-Version:
> 3.10.1-A Coruña 'A Coruña', ef24c52
> <https://github.com/qgis/QGIS/commit/ef24c526da26a4d3e9c542659e48b32480d0827f>
>
> Python-Pfad:
> ['/usr/share/qgis/python',
> '/home/frank/.local/share/QGIS/QGIS3/profiles/default/python',
> '/home/frank/.local/share/QGIS/QGIS3/profiles/default/python/plugins',
> '/usr/share/qgis/python/plugins', '/usr/local/lib/python36.zip',
> '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload',
> '/home/frank/.local/lib/python3.6/site-packages',
> '/usr/local/lib/python3.6/site-packages']
>
> How to fix this error? I have no idea where the qgis module is
> installed and which search path is the right.
>
> Actual, via update-alternatives --config python I activated python3 in
> manual mode
>
> Regards
>
> Frank
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] algorithm native:dissolve not found

2020-02-03 Thread Jorge Gustavo Rocha
Dear Ming,

Is "Processing" core plugin enabled? Can you check please?

You can list all available processing algorithms with in the Python
console [1]:

for alg in QgsApplication.processingRegistry().algorithms():
print(alg.id(), "->", alg.displayName())

What is your output? Is native:dissolve listed or not?

[1]
https://docs.qgis.org/testing/en/docs/user_manual/processing/console.html

Regards,

Jorge Gustavo

On 03/02/20 16:27, ming han wrote:
> Hi everyone
>
>    I am using Qgis 3.10. I could run
> processing.run('gdal:cliprasterbymasklayer',..) 
>    but got an algorithm not found error when I try to run
> processing.run("native:dissolve",...) 
>
>    Is anyone know what happened to this script? 
>
>  Thanks 
> Ming 
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Attributes who’s

2020-03-14 Thread Jorge Gustavo Rocha
Hi Tim,

Can you provide a link to the data source? Is it a CSV? SHP?

Regards,

Jorge Gustavo

On 14/03/20 18:40, Tim Ericson wrote:
> I have some vector data from the USGS.  When I open the attribute
> table in ARCGIS (at work). I see the full spectrum of attributes.
> Opening the same table on QGIS most of the table seems to be empty.  
>
> What am I doing wrong?
>
> Thanks for any help!!!
>
> Tim Ericson
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QFIS WFS error msg help please

2020-03-19 Thread Jorge Gustavo Rocha
Hi Brent,

I would try to run some XML validator on DescribeFeatureType output to
make sure it is valid. You can use xmlstarlet for that. Please share
your DescribeFeatureType output, if not confidential.

Also check WFS version: typeName for WFS 1.1.0 and earlier and typeNames
for version 2.x.

Regards,

Jorge

On 18/03/20 22:57, Brent Wood wrote:
> Hi,
>
> I'm setting up mapserver to provide WFS services to be consumed by
> QGIS. The capabilities doc works fine from a browser, and connecting
> from QGIS I get the available layer listed fine, so QGIS works fine
> with the WFS to at least get the capabilities doc.
>
> I get an error when trying to retrieve the layer, and have found a few
> references but nothing helpful. I need help interpreting the QGIS
> error before I can attempt to fix the error in the mapfile (if there
> is one). 
>
> Error msg: (same in QGIS 2.18, 3.4, 3.10)
>
> 2020-03-19T11:52:38 1 Analysis of DescribeFeatureType response failed
> for url srsname='EPSG:4326' typename='ms:Specimens'
> url='http://wellmapsrvdev.niwa.co.nz/cgi-bin/mapserv?map=/usr/lib/cgi-bin/mapfiles/specify.map'
> version='auto' table="" sql=: it is probably a schema for Complex Features
>
>
>
>
> Any advice appreciated...
>
> Brent Wood
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Creating Polygon Vector Layer from specific .csv file

2020-03-22 Thread Jorge Gustavo Rocha
Hi Marcin,

You have to iterate over the features, with:

for f in layer.getFeatures():

But since you will have just one polygon for each four features in the
input, if the input is small, you can create a auxiliary Python dict to
store the polygon's points.

Example:

uri =
"file:///home/jgr/tmp/plikiCSVtoSHPviaPythonpokrycieCSV.csv?type=csv&delimiter=%5Ct%7C"e='&skipEmptyFields=Yes&detectTypes=yes&xField=X&yField=Y&crs=EPSG:4326&spatialIndex=no&subsetIndex=no&watchFile=no"
layer=QgsVectorLayer(uri,"Tourism Sites","delimitedtext")
QgsProject.instance().addMapLayers([layer])

pointdict = {}
for f in layer.getFeatures():
    if f["LP"] not in pointdict.keys():
    pointdict[f["LP"]] = [ None, None, None, None, None ]
    pointdict[f["LP"]][f["CORNER"]-1] = f.geometry().asPoint()
    if f["CORNER"] == 1:
    pointdict[f["LP"]][4] = f.geometry().asPoint()

vectorLyr = QgsVectorLayer('Polygon?crs=EPSG:4326', 'polygon' , 'memory')
vpr = vectorLyr.dataProvider()
for pointlist in pointdict:
    poly = QgsGeometry.fromPolygonXY( [ pointdict[pointlist] ] )
    new = QgsFeature()
    new.setGeometry(poly)
    vpr.addFeatures([ new ])

QgsProject.instance().addMapLayer(vectorLyr)

Regards and #StayAtHome

Jorge

On 21/03/20 22:39, Marcin wrote:
> Hi folks,
>
> QGIS 3.10
>
> I would like to create polygons (see 4 corners everyone) with Python form 
> .csv like that:
>
> LPCORNER  Y   X
> 1 1   51.558868   21.696985
> 1 2   51.596337   21.745589
> 1 3   51.603166   21.727687
> 1 4   51.565424   21.682416
> 2 1   51.590928   21.760442
> 2 2   51.553125   21.709847
> 2 3   51.559536   21.6959
> 2 4   51.598023   21.742078
> 3 1   51.548047   21.724327
> 3 2   51.586238   21.773843
> 3 3   51.593172   21.756185
> 3 4   51.554643   21.709932
>
> According to QGIS Python Programming Cookbook 
>
> I know how to load csv file:
>
> uri = "D:/PODYPLOM/plikiCSVtoSHPviaPythonpokrycieCSV.csv?"
> uri += "type=csv&"
> uri += "xField=X&yField=Y&"
> uri += "spatialIndex=no&"
> uri += "subsetIndex=no&"
> uri += "watchFile=no&"
> uri += "crs=epsg:4326"
> layer=QgsVectorLayer(uri,"Tourism Sites","delimitedtext")
> QgsProject.instance().addMapLayers([layer])
>
> and I know how to create polygon layer from points added by finger:
>
> vectorLyr = QgsVectorLayer('D:/qgis_data/polygon/polygon.shp', 'Polygon', 
> "ogr")
> vpr = vectorLyr.dataProvider()
> points = []
> points.append(QgsPointXY(-123.26,49.06))
> points.append(QgsPointXY(-127.19,43.07))
> points.append(QgsPointXY(-120.70,35.21))
> points.append(QgsPointXY(-115.89,40.02))
> points.append(QgsPointXY(-123.26,49.06))
> poly = QgsGeometry.fromPolygonXY([points])
> f = QgsFeature()
> f.setGeometry(poly)
> vpr.addFeatures([f])
> vectorLyr.updateExtents()
>
> but I can't load points from csv to line: points.append(QgsPointXY())
>
> Anybody can help me how to do this ?
>
> Cheers, Marcin Pietruszewski
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Determining QGIS version on command line

2020-03-27 Thread Jorge Gustavo Rocha
Hi Steve,

qgis --version works as expected (tested in Linux). Can you test on
Windows, please?

Regards,

Jorge Gustavo

On 27/03/20 04:29, Steve Malers wrote:
> QGIS list:
>
> I have tried to find the answer for this and hope the user community
> can help.  I need a robust and consistent way to determine the QGIS
> version on the command line that I can call from a bat file on Windows
> (and similar on Linux), something like:  qgis-bin.exe --version
>
> Background:  I am developing a complex Python tool that uses PyQGIS
> and PyQt and is distributed as a virtual environment (venv) created
> using a specific version of QGIS Python, for example QGIS 3.10
> python37.  The deployed environment requires that QGIS is installed
> separately  The run script modifies its PYTHONPATH to include packages
> for PyQGIS and the application. The venv includes a text file that
> indicates the QGIS version that the venv was built with and verifies
> that a compatible QGIS is installed.  The run script properly handles
> the typical case where stand-alone QGIS is installed because it looks
> at the file path, such as C:\Program Files\QGIS 3.10.  If it finds a
> match, then that version of QGIS is used in PYTHONPATH and the
> application starts OK.
>
> The problem is that if someone has not installed a stand-alone QGIS
> but has installed OSGeo464 version (C:\OSGeo4W64), there is no
> indicator of QGIS version in the installation folder.   I cannot find
> documentation for qgis-bin.exe command line options and experiments
> did not show support for --version or variants.  I could scrape the
> QGIS version from files somewhere in the distribution but looking into
> the code it seems to get complicated due to handoff from Python to
> C/C++ code.  If I can determine the version I can check to make sure
> that the OsGeo4W64 QGIS version matches that of the distributed venv. 
> Lacking this, the run script cannot do the check.  Supporting
> OSGeo4W64 is needed because some development and deployed environments
> use it.  My plan B is to write a simple Python program to access the
> version from the Python side, making general assumptions to get
> started, and then configure the main application startup.
>
> Any help would be appreciated.
>
> -- 
> Steve Malers
> Chief Executive Officer and Chief Technology Officer
> Open Water Foundation
> openwaterfoundation.org <http://openwaterfoundation.org>
> Support the Open Water Foundation by selecting on smile.amazon.com
> <https://smile.amazon.com/ch/46-2676240>
> Open data.  Open software.   Open decisions with positive social
> impact.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Query on QgsVectorLayer

2020-04-09 Thread Jorge Gustavo Rocha
Hi Christoph,

You can use an QgsExpression [1] to filter features from that layer.

expr = QgsExpression( " ... " )
layer.getFeatures( QgsFeatureRequest( expr ) )

Regards,

Jorge Gustavo 

[1] https://qgis.org/pyqgis/3.2/core/Expression/QgsExpression.html

On 09/04/20 12:37, Christoph Jung wrote:
> Hello everyone,
>
> I have a question concerning PyQGIS. Imagine there is a point layer accessed 
> via QgsVectorLayer, i.e. no matter which data source it is. Is it possible to 
> query this layer to get the point object with the highest/lowest x-value in 
> its geometry (similar to max-/min-aggregate functions in SQL)? Or do  I have 
> to iterate over all objects and compare the values by my own?
>
> Sincerely,
> Christoph
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Options when loading layers into PostGIS with DBManager

2020-04-19 Thread Jorge Gustavo Rocha
Hi Michael,

An alternative is to use the "Browser panel". I use it to drag layers
from the Layer panel into Postgresql. You don't have to choose any
parameters. It just works.

Regards,

Jorge Gustavo

On 19/04/20 09:42, Michael Dufty wrote:
>
> Hi,
>
> I am trying out saving data in PostGIS, and have got stuck on the
> upload “import layer/file” dialog in DB Manager.
>
>  
>
> Can anyone recommend a good reference on what options should be selected?
>
> It seems to fall into a gap between PostGIS documentation and QGIS
> documentation and I can’t find any information on what should be
> selected in what circumstances.
>
>  
>
> In particular
>
> Primary key – should this be ticked and the existing id field
> selected? What happens if it is left unticked?
>
> Geometry column – is this needed? Objects still seem to have geometry
> if it is left out.
>
> Create spatial index – this sounds like a good idea, but the one
> youtube tutorial I found (Klas Karlson) he left it unticked and said
> the layer already had everything.  Is it needed for some source
> formats and not others eg shapefile vs geopackage?
>
>  
>
> Convert field names to lower case doesn’t sound very useful, but I
> presume it is there for a reason, does anyone know the circumstances
> that would be needed?
>
>  
>
> Cheers,
>
>  
>
>  
>
> *Michael Dufty*
>
> *Senior Environmental Engineer*
>
>  
>
>   
>
> *MBS ENVIRONMENTAL**
> *4 Cook Street, West Perth  WA 6005

> t:+61 8 9226-3166
> f:+61 8 9226-3177
>
>  
>
> e:   mdu...@mbsenvironmental.com.au
> <mailto:mdu...@mbsenvironmental.com.au>
> w:   www.mbsenvironmental.com.au
> http://www.mbsenvironmental.com.au/>
>
> Disclaimer: 
> The information contained in this message is intended for those to
> whom it is addressed. It may contain confidential or privileged
> information and if you are not the intended recipient, you must not
> copy, distribute or take any action in reliance on it. If you received
> this message in error please destroy it and reply to the sender
> immediately or contact Martinick Bosch Sell Pty Ltd. on +61 8 9226
> 3166 immediately. All care has been taken to ensure that this message
> and any attachments are virus free; we do not accept responsibility
> for any virus infections caused by receipt of this message//
>
>  
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Fwd: GPS Tools - GPX files are opened with black attribute lists

2020-04-26 Thread Jorge Gustavo Rocha
Hi Alon,

I've opened the national_monuments_wgs84.gpx in QGIS and only 3
attributes are showed: name, src and url [1]. If you open the file with
a text editor you will see that's the only data associated with the
points [2].

In my QGIS installation, GPX files are being parsed properly.

Can you confirm that you are able to view these 3 attributes from
national_monuments_wgs84.gpx?

Best regards,

Jorge Gustavo

[1] https://nextcloud.di.uminho.pt/s/JtKpiA5LbmNZL38

[2] https://nextcloud.di.uminho.pt/s/R65tQrf2zwRoGAG

On 26/04/20 08:55, Alon Goldenberg wrote:
>
>
> Hello,
>
> I'm using QGIS 3.10.3
> see more details:
> image.png
> The app fails to open GPX files properly - attribute tables are blank
> (or almost blank).
> I used: GPS Tools > Load GPX File
> I verified the file on some online tools and it proved OK.
> I also tried opening qgis_sample_data
> file: national_monuments_wgs84.gpx - same problem.
>
> Any idea on how to resolve this?
> Thanx,
> Alon
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>   Virus-free. www.avg.com
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] PROYECTO

2020-04-26 Thread Jorge Gustavo Rocha
Hi Maria,

Do you have:

i) The digital elevation model of your study area?

ii) The road network as a vector layer?

If so, you can use the "Set M value from raster" to assign the elevation
to each vertex of your road network. This is the first step. The visible
geometry will not change, but you will get another geometry attribute
(M) for each vertex. Then you can calculate the road slope between each
vertex of just between the first and final vertex.

I hope it helps. Good luck,

Jorge Gustavo

On 25/04/20 21:44, Maria Bauçà Planas wrote:
> Buenas noches,
> mi nombre es Maria, quería saber como puedo clasificar el viario
> urbano según su pendiente. Es urgente.
> Muchas gracias,
> Un saludo.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Qgis-user Digest, Vol 170, Issue 55

2020-04-26 Thread Jorge Gustavo Rocha
Hi Alon,

The file you sent doesn't have any details at all. Please open it with a
text editor and check by yourself.

What kind of details are you expecting? Maybe you have somewhere else
the related information, but it is not on the GPX file. Do you have
images, annotations or something like that that you would like to see in
QGIS?

I don't use GPSLogger. Are you exporting the waypoints? Usually the
information you capture comes as waypoints.

Maybe you can export the same track as KML and have more related
information on the KML file.

I use OSMTracker for Andoid and I'm able to have access images and
annotations I've made on the field.

Best regards,

Jorge

On 26/04/20 11:45, Alon Goldenberg wrote:
>
> Hi Jorge,
>
> Thanks for your quick response :)
>
> With regards to the national_monuments_wgs84.gpx - I get the same as you.
> Since there is so little info in there, I thought it was defective.
>
> Nevertheless, my file which is quite full of details, loads with an
> empty attribute table. Actually, upon loading, 'waypoints' and
> 'routes' come with no geometry at all, and 'tracks' displays a line by
> with an otherwise empty attribute table. (I need the specific data of
> all waypoints for further processing)
>
> I enclose (see attached) the GPX file produced by the Android app
> GPSLogger for your reference.
> I wonder if you can solve this riddle for me.
>
> Thanks for your attention.
> Best,
> Alon
>
>
>
>
> ----------
>
> Message: 1
> Date: Sun, 26 Apr 2020 10:20:25 +0100
> From: Jorge Gustavo Rocha mailto:j...@geomaster.pt>>
> To: qgis-user@lists.osgeo.org <mailto:qgis-user@lists.osgeo.org>
> Subject: Re: [Qgis-user] Fwd: GPS Tools - GPX files are opened with
>         black attribute lists
> Message-ID: <5e72848b-d950-6b70-2c79-2b34fabca...@geomaster.pt
> <mailto:5e72848b-d950-6b70-2c79-2b34fabca...@geomaster.pt>>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Alon,
>
> I've opened the national_monuments_wgs84.gpx in QGIS and only 3
> attributes are showed: name, src and url [1]. If you open the file
> with
> a text editor you will see that's the only data associated with the
> points [2].
>
> In my QGIS installation, GPX files are being parsed properly.
>
> Can you confirm that you are able to view these 3 attributes from
> national_monuments_wgs84.gpx?
>
> Best regards,
>
> Jorge Gustavo
>
> [1] https://nextcloud.di.uminho.pt/s/JtKpiA5LbmNZL38
>
> [2] https://nextcloud.di.uminho.pt/s/R65tQrf2zwRoGAG
>
> On 26/04/20 08:55, Alon Goldenberg wrote:
> >
> >
> > Hello,
> >
> > I'm using QGIS 3.10.3
> > see more details:
> > image.png
> > The app fails to open GPX files properly - attribute tables are
> blank
> > (or almost blank).
> > I used: GPS Tools > Load GPX File
> > I verified the file on some online tools and it proved OK.
> > I also tried opening qgis_sample_data
> > file: national_monuments_wgs84.gpx - same problem.
> >
> > Any idea on how to resolve this?
> > Thanx,
> > Alon
> >
> >
> 
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> >       Virus-free. www.avg.com <http://www.avg.com>
> >
> 
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> >
> >
> >
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> -- 
> Email Signature
> Logo <https://www.geomaster.pt>         
> *Geomaster*
> *Jorge Gustavo Rocha* | Software Engineer
>     *e:*j...@geomaster.pt <mailto:j...@geomaster.pt> | *m:*+351 910 333 888
> *g:*41.54094,-8.40490 | *v: *510 906 109
> *a: * Rua António Cândido Pinto, 67, 4715-400 Braga
>
>
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>   Virus-free. www.avg.com
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>
>
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Error: ERROR: could not access file "$libdir/postgis-2.4": No such file or directory - After installing QGIS 3.10 LTR

2020-05-09 Thread Jorge Gustavo Rocha
Hi,

Can you please tell us which repositories are you using? Check "apt
policy" for qgis/postgis related packages. The very first http address
on the output is the repository you are using.

Try something like:

apt policy postgresql

apt policy postgresql-10-postgis-2.5

apt policy qgis

Maybe you are mixing repositories.

Regards,

Jorge

On 09/05/20 07:53, Marie Anna Baovola wrote:
> Hello everyone,
>
> Anyone could help me how to fix my error in my object, please?
> I have installed the QGIS 3.10 and it seems that my PostgreSQL is
> upgraded into 10.12. I use Ubuntu 18.04 bionic.
>
> I cannot reinstall the extension Postgis.
>
> Thank you in advance for your help.
>
> Best regards,
>
>
> -- 
> BAOVOLA Marie Anna
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Adding folder location to Browser - Favorites with Python

2020-05-23 Thread Jorge Gustavo Rocha
Hi Seggie,

Just one line of code to add a folder to browser panel:

iface.browserModel().addFavoriteDirectory('/home/jgr/tmp')

Regards,

Jorge

On 22/05/20 14:37, Seggie, Graeme wrote:
>
> Hello,
>
>  
>
> I am struggling to get something to work, which would seem to be an
> easy thing to do, but cannot quite make my understanding of the python
> docs work in practice.
>
>  
>
> What I would like to do, is run some python to add some folders to the
> favorites area in the browser within QGIS. This is to get round an
> environemental constraint of not being able to save a profile i.e.
> quickly add a python script to setup the favorites each time log on.
>
>  
>
> This is what I have tried thus far:
>
>  
>
> url = "U:\Tyres"
>
> qgis.gui.QgsBrowserDockWidget(addFavoriteDirectory,
> uri)
>
>  
>
> à
>
>  
>
> Traceback (most recent call last):
>
>   File "C:\OSGEO4~1\apps\Python37\lib\code.py", line 90, in runcode
>
>     exec(code, self.locals)
>
>   File "", line 1, in 
>
>   File "", line 3, in 
>
> NameError: name 'addFavoriteDirectory' is not defined
>
>  
>
> AND
>
>  
>
> url = "U:\Tyres"
>
> qgis.gui.QgsBrowserDockWidget(addFavorite, uri)  
>
>  
>
> à
>
>  
>
> Traceback (most recent call last):
>
>   File "C:\OSGEO4~1\apps\Python37\lib\code.py", line 90, in runcode
>
>     exec(code, self.locals)
>
>   File "", line 1, in 
>
>   File "", line 3, in 
>
> NameError: name 'addFavorite' is not defined
>
>  
>
> Should I be calling the addFavorite code differently? This is within
> the Python console and script area of same.
>
>  
>
> Regards,
>
> Graeme
>
>  
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Unable to save project to PostgreSQL

2020-05-28 Thread Jorge Gustavo Rocha
e46b352a26d0ad383dc5d76a91327906382ef08b9ffc4dd9013ac460cfac8da05646891d39cfb6bb880a699b477738ec0f8783fec54da19407be770e18a3e1edd186f0b1a02515be7f72d2efdd9c7dea8ff2c1e3253523bc94233ffca07f73fdebe8361ffca0fb61d4bb3ceee784064e7a6757ddf3d166f079a513c057f3c31fe703bd3cfa070a3e2ff4c9093002fd1ce4843f3d19e5a53dfcd0bdeae3fd291b809ff72f7242ff3abce90f46a042f3c1df5e5df5af473767fdebcde0f38e684ad222153e25ebb316fe2e27fd94e03d153e9e224b054cc94264c1abb20fa9f0ca5c533ab43ae7b31ebeba19bc35ca0f9f5390ca74473ab43adb970e9fcc60a6c2aa5328d9e091d44926b43a1b940a9f921d5b0b2f67e1983d8d5cc5c20edab36f9c4582685825edb2ccb4a74a8c4c8b9a89a1ecaa1223d3aa2a3132ed6a1a46ba65556264d856357c9675cdc4c82fa94c0b9b8a719c1738c3caaae1b3ecac1a23cdd22aa1b36c6d3a82dadaaae1b3ecad1223d3e26662e41fe54cababc4c8b4bb991877b9dbc8b4bd4a0cb5f5558266dadf348c740bacc4c8b0c16af82c2b9c8d51dd14c31a6d82915bac19d6580d9f658fd518691659099d6593d311d456590d9f6597951899963913236a9b93a6b8fdc8cfa8916ec0a377d184af2a3ab044f0ac8578b174f1dc8db9e8d04be2f0c74e70655c700c78706b202da191393b4386de1dc131d8117f267de9b9cd75f1aca3fc309a8070e2488cf6e9d20c78676f84e8c92947d692e0018c3c8b87675c76aa8d46bba48051e1d3eb56d71108805414ae89b10e9f838467ec107e5806ada587c82849a4c0a5d05189a21c27929045b43a5d1c29702974d284a28412732f18e2363b45483a1e020fb23b5a0df4857cf085b86a52aa16a46402ed01d1bda51bbab67d719f65ecec0bf9cecb0046508c101124d1900664f1ec1d7a9e709cecbcda2e0595d29933d211c40914bcf0c1c3735124a0182b61e36d700de5a96998b889d6c3bc9c3c028d329d9552ad02899e132b6355f6652c5aad44a3074dca88b57214910284dd77f5c76b980b7814b46a50e5fa08d2ad4d8fe031d29044bd3433f19e49760a52626d845521fccc798441e85a163bcd58d5501c268e1cf63b033b048aa3e3aa005be92918f0dd6548210a1750c16f7c4fd889f5d1fe861501ac10175d90f169885727f16b0ddaa508a4988bc1cc6b5fe9fe2c64a17be739169ee394e45d54052442c4b638093d38da2724b8f41de01b13ee498aa22e9c28ec3c7e7a349317d1423049e4ba800975c3ed21bbaaf69a4c86d215ed57c16dbae2ac9dc88a01720900d1508260fc40a4f643707cd82e3da39e9bf9b68f377663aabce7d8782901a7e8b9e363e2f9dad801eb89c79c914b7029d83dc80b738187e111ed1df82e0bed9d693f686b6f4866a00c8a66f06dbca6457bf7b41a99f6a1ab1bf427de3867906941a347059dc07ff1a434f9c025e44cbeb52fed62f61fd7b2ffb896fdc7b5ec7fca6bd9bfffa5ecd957b2675ec89eef3af6ed2f63dfea2af6ad2f62dff01af6944bd8514a63e9cb56cfcfadc103f5fcf97408132bd0cf9f1d17c2dd53e21804adf79086d1a88beb11052db012eab9d6d8af7d1ff50c6b3394a815aecea9e0d512baf52d68d9d80a84259bb79d38d540a1be05dd1a5504d5fc5433173a15ba58babb07e5e26ea5552ee26587ad72d430d5aafbeb162e320ca2d0de19685b0f61a45af51c6bb2566f5453d724b6bb66493290352b924d9b4dd620efcdb6eb10a39a4dd621f350375e86e1d2a34bf2983fb64b2a2f50f41202191d4f12e788a60111a2393189db6997a40756bbd05d2c9161124522c5634f97fa9474304bc37fb21a747aa194fee125a66fd122fa9795e977b84b78ec4371f0935336ede0244e3af61058f42c733261e31e841963889ee9d056cbd5f26eb9b15b6ddd54aaefeb07ef1bad7629a8957356b22cda5ddbe6c7ea725ffa9c6e1ce10f478e738f5799f247eebb7f32c9637016ecad4778317555a48345dbac8067b114b89d9d7609b7ec7476fe1f504b030414003d66bc502a007b65663536623662642d313662662d346435332d383162612d3465633037643731633661617d2e716764504b01021403140008005266bc50266f065ab61e31a72a00b6817b65663536623662642d313662662d346435332d383162612d3465633037643731633661617d2e716773504b0102140314003d66bc502a00b681fe1e7b65663536623662642d313662662d346435332d383162612d3465633037643731633661617d2e716764504b050602000200b000461f')
> ON CONFLICT (name) DO UPDATE SET content = EXCLUDED.content, metadata
> = EXCLUDED.metadata; returned 7 [ERROR: syntax error at or near "ON"  
>            LINE 1:
> ...764504b050602000200b000461f') ON CONFLIC...    
>           ^              ]
>
> I tested saving to DB using another DB and it works fine -- so not
> likely anything to do with my setup. Any ideas what else needs to be
> enabled to allow projects to save? 
>
>
> -- 
>
> Cliff Patterson Ph.D.
>
> *PSD* | Senior GIS Consultant
> P: 519-690-2565 ext. 2616
> www.psdrcs.com <http://www.psdrcs.com>
> London | 148 Fullarton St. 9th Floor         
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Save projects to DB without creator's permissions

2020-05-29 Thread Jorge Gustavo Rocha
Please use pg_services. No Auth is stored. Just the service name. 
-+-+-+-+-+-+-+-+-+-Geomaster, LdaRua Afonso Palmeira, 31, 7 D4715-278 BragaNIF 
510906109Tm +351 910333888Email jgr@geomaster.ptSent from my mobile. Please 
excuse the brevity, spelling and punctuation. 
 Mensagem original De : Cliff Patterson  
Data: 29/05/20  18:39  (GMT+00:00) Para: qgis-user  
Assunto: Re: [Qgis-user] Save projects to DB without creator's permissions PS: 
I realize I can create maps with basic auth and not store the PW, which prompts 
the user to enter their creds. But is there a better way now to achieve the 
same result? CliffOn Fri, May 29, 2020 at 1:29 PM Cliff Patterson 
 wrote:What is the best approach to save QGIS projects 
to PostgreSQL without saving the project-creator's credentials/permissions? If 
the DB admin creates a project and saves it to the DB, anyone opening that 
project will attain the admin's permissions on layers in that map. To 
recreate:1) Create a map containing PostGIS layers and save project to DB. All 
layers should be editable by the admin. Admin is logged into DB with auth 
config, not basic auth. 2) Create a new read-only user and new profile in QGIS 
and log in to DB.3) Open the project and try to edit layers. Read-only user 
will be able to see and edit all layers just like the DB Admin. Is there a way 
to save projects to DB WITHOUT saving any user creds/permissions? Cliff-- Cliff 
Patterson Ph.D.PSD | Senior GIS Consultant P: 519-690-2565 ext. 
2616www.psdrcs.comLondon | 148 Fullarton St. 9th Floor         
-- Cliff Patterson Ph.D.PSD | Senior GIS Consultant P: 519-690-2565 ext. 
2616www.psdrcs.comLondon | 148 Fullarton St. 9th Floor         
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Styling polygon borders: preventing double rendering between polygons

2020-06-11 Thread Jorge Gustavo Rocha
Hi QGisers,

I'm trying to style a polygon layer (districts) using a marker line
(using the '+' sign). It works well for lines.

When I use it in polygons, the outer line is ok, but the lines between
polygons are rendered twice.

To make this question more clear, I've attached the following print
screen: https://nextcloud.geomaster.pt/index.php/s/e3ztdJ894RCf9j6

The line near the sea is rendered just once. The line going to east
between the polygons is rendered twice. We can see double '+'  on that line.

How do I render all the lines exactly the same way, without this
"double" rendering between polygons?

Regards,

Jorge Gustavo

-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Styling polygon borders: preventing double rendering between polygons

2020-06-11 Thread Jorge Gustavo Rocha
Thank you for the feedback, Karl and Christoph.

Your work around is valid. It is possible to transform the polygons into
lines and then render them correctly.

It would be nice to have an option to render only once adjacent
polygons, with a a common border.

There is a "Feature request" by Miroslav Umlauf at:
https://github.com/qgis/QGIS/issues/17943

I've added my use case.

Regards,

Jorge

On 11/06/20 12:18, Karl Magnus Jönsson wrote:
> Email Signature
>
> Hi!
> I had a similar problem. I’ve made a view ( in PostGIS) to transform
> the boundaries to lines and remove the duplicate lines. Should be
> doable in virtual layers as well. Quite complicated SQL since I have
> several different types of lines depending on the attributes.
>
>  
>
> *Karl-Magnus Jönsson*
>
>  
>
> *Från:*Qgis-user  *För *Christoph Jung
> *Skickat:* den 11 juni 2020 13:11
> *Till:* Jorge Gustavo Rocha 
> *Kopia:* qgis-user@lists.osgeo.org
> *Ämne:* Re: [Qgis-user] Styling polygon borders: preventing double
> rendering between polygons
>
>  
>
> Hi Jorge,
>
>  
>
> If it is just a visual thing, than you could transform your polygons
> to lines and delete the duplicate geometries.
>
>  
>
> Sincerely,
>
> Christoph
>
>
>
> Am 11.06.2020 um 12:45 schrieb Jorge Gustavo Rocha
> mailto:j...@geomaster.pt>>:
>
>  
>
> Hi QGisers,
>
> I'm trying to style a polygon layer (districts) using a marker
> line (using the '+' sign). It works well for lines.
>
> When I use it in polygons, the outer line is ok, but the lines
> between polygons are rendered twice.
>
> To make this question more clear, I've attached the following
> print screen:
> https://nextcloud.geomaster.pt/index.php/s/e3ztdJ894RCf9j6
>
> The line near the sea is rendered just once. The line going to
> east between the polygons is rendered twice. We can see double
> '+'  on that line.
>
> How do I render all the lines exactly the same way, without this
> "double" rendering between polygons?
>
> Regards,
>
> Jorge Gustavo
>
> -- 
>
> Logo <https://www.geomaster.pt/>
>
>   
>
> *Geomaster*
> *Jorge Gustavo Rocha*| Software Engineer
>
> *e:*j...@geomaster.pt <mailto:j...@geomaster.pt> | *m:*+351 910 333 888
> *g:*41.54094,-8.40490 | *v: *510 906 109
> *a: *Rua António Cândido Pinto, 67, 4715-400 Braga
>
>
> ___
>     Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>  
>
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Styling polygon borders: preventing double rendering between polygons

2020-06-11 Thread Jorge Gustavo Rocha
Hi Chris,

I've asked the question simple as possible, but I'm really trying to
accomplish the use cases you mentioned!

I'm trying to symbolize all different administrative levels, including
the shoreline. This can be partially accomplish with lines by stacking
all, from the most general ones, like the international border, to the
the less ones. Less important borders are covered by more important
ones, like in the simple screenshot:
https://nextcloud.geomaster.pt/index.php/s/Pb3XWNCtzqbPQyi

This does not solve the shoreline problem. And, if we use markers, we
can not cover the border underneath. We really need to render just the
most general border on that segment.

We are using just "simple features" to represent the world. This simple
representation is quite limited for this kind of relations between
layers. We need more semantics.

Thanks you for your input, Chris!

Regards,

Jorge

On 11/06/20 16:03, chris hermansen wrote:
> Jorge and List,
>
> On Thu, Jun 11, 2020 at 7:13 AM Jorge Gustavo Rocha  <mailto:j...@geomaster.pt>> wrote:
>
> Thank you for the feedback, Karl and Christoph.
>
> Your work around is valid. It is possible to transform the
> polygons into lines and then render them correctly.
>
> It would be nice to have an option to render only once adjacent
> polygons, with a a common border.
>
>
> In my experience, this is one of many kinds of "cartographic  boundary
> weirdness" that would be nice to have, conceptually speaking anyway.
>
> Another is an international boundary that disappears when the ocean is
> on one side and land is on the other (the border between Spain and
> Portugal symbolized as an international border, but Portugal's and
> Spain's coastlines symbolized as shoreline).
>
> Or provincial / state boundaries disappear when one country is on one
> side and one is on the other (the border between Portalegre and Castel
> Branco shows as provincial border, but the border between Portalegre
> and Extremadura shows as national border).
>
> And of course as you say, in no case should the border be symbolized
> twice.
>
> Regardless of whether the process of this symbolization is manual or
> automatic, there is obviously a process of converting polygons to
> lines, removal of duplicate lines, then analyzing the entities to the
> left and right to determine how to symbolize the line according to
> some pre-configured list of priorities.
>
> -- 
> Chris Hermansen · clhermansen "at" gmail "dot" com
>
> C'est ma façon de parler.
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGis Server:

2020-06-16 Thread Jorge Gustavo Rocha
Hi Rachel,

Use a MAP property in the requests, instead of editing the environment
variable. If you try something like:

http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/your/project/path.qgz&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

what happens? Are you able to receive a proper GetCapabilities document?

Regards,

Jorge Gustavo

On 16/06/20 13:09, rluethi wrote:
> Dear all,
>
> I installed QGIS Server on a fresh Debian installation based on  this
> <https://docs.qgis.org/3.10/en/docs/training_manual/qgis_server/install.html> 
>  
> tutorial.
>
> I added one *.qgs to publish a WMTS service. I could then access the WMTS.
> Afterwards I added additional projects and changed the name of the initial
> project. The Env variable QGIS_PROJECT_FILE in the qgis.demo.conf file has
> been adapted accordingly.
>
> Now I cannot access the WMTS and get the following errors:
>
> QGIS log file:
> No server python plugins are available
>
> Apache log file:
> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
> variable.
> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
> variable.
> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment
> variable.
> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
> variable.
> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment
> variable.
>
> Browser:
> http://www.opengis.net/ogc"; version="1.3.0">
> Service unknown or
> unsupported
> 
>
> Has anyone an idea how to debug that?
>
> Best regards,
> Rachel
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] module 'qgis.processing' has no attribute 'run'

2020-07-06 Thread Jorge Gustavo Rocha
Hi Miguel,

Maybe you are not initializing properly the processing module, which
requires a specific initialization.

Take a look of a running example, like this one [1], which I use to
create a geopackage (and export some layouts).

[1]
https://github.com/jgrocha/covid-pt/blob/master/geopackages/2geopackage.py

Please report back, if you are not able to get it running.

Jorge

On 06/07/20 23:18, Miguel Eduardo Rincon De Hoyos wrote:
>
> Dears members
>
> I am using Python for my postgraduate studies and I am having trouble
> running my code when I try to use processing in Qgis using the
> command-line interface.
>
> I think the error is really easy to fix it but right now I do not know
> how to fix it. When I run my code I have this
>
> |Traceback(most recent call last):File"urban_canopy_element.py",line
> 100,inoutput=general.run('qgis:clip',{'INPUT':input_layer,\
> NameError:name 'run'isnotdefined |
> |Thanks for the help |
> |Regards |
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Georeferencing images

2020-07-10 Thread Jorge Gustavo Rocha
Hi,

I use OpenDroneMap [1] for that. Using ODM you get the orthophotomap and
several other useful things (like the DEM).

Regards,

Jorge

[1] https://www.opendronemap.org/

On 10/07/20 15:29, blubee blubeeme wrote:
> Id like to thank the few users who helped me with my previous question.
>
> It seems like georeferencing will me more work than I initially
> anticipated. 
>
> Can anyone give me a quick overview of a pipeline to go from uav
> images with embedded GPS coordinates to a series of stitched maps. 
>
> The area that I'm working on lacks features since it's all mountains
> with trails that aren't visible from above. 
>
> I could go into certain flat areas and use Garmin device to place
> makers, that's the most accurate method that I could use to place makers. 
>
> Any tips would be greatly appreciated. 
>
> Best
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Printing layouts with QGIS Server: hide page based on passed labels

2020-08-19 Thread Jorge Gustavo Rocha
Hi,

I have a layout with 2 pages. Based on a label passed to GetPrint
request, I want to print just page 1 or both. I would like to write an
expression to the "Exclude page from exports" page property on the
second page, based on a label value passed by GetPrint request.

The label(s) passed to GetPrint are ItemID assigned in the layout. The
layout receives the label and assigns its value to the label item with
the itemID. Super cool!

By I'm not able to write a boolean expression to use on the page
properties, that compares the value of the label with a string.

For example:

map_get ( item_variables( 'Etiqueta' ), 'item_id' )

returns the variable name 'Etiqueta', which I already know. I would like
to have its value. Is it possible to get the value of this item in an
expression?

Probably we need to expose the value (as string) in the item_variables
map. It does make sense for a label or html item (just a string), but no
so much for a map item.

Regards,

Jorge Gustavo

-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Short question on wfs

2020-09-06 Thread Jorge Gustavo Rocha
Hi Bernd,

I would start by pressing F12 (if you are using QGIS 3.14 Pi; for older
version look for a QGIS Network logger plugin).

>From the network logger, you can check if the request is being issue by
QGIS includes the correct bounding box (and other parameters).

Regards,

Jorge Gustavo

On 06/09/20 22:29, Bernd Vogelgesang wrote:
> Hi folks,
>
> without any success I try to load stuff from a wfs server (long time ago
> that I last tried to). Although the checkbox to only load the features
> in the canvas extend is checked, this does not seem to have any
> influence. Adding the layer, nothing shows up, everything is frozen and
> in the end after a long time, there is a time out error.
> So obviously, it is attempted to load all 18 features, and not only
> those within the canvas extend.
>
> Documentation also only handles stuff which is more than obvious.
>
> What is the obviously not obvious trick to load stuff from a wfs server?
>
> Thanx,
>
> Bernd
>
>
>
> Here is the url:
> https://www.baysis.bayern.de/gis/services/wfs/BAYSIS_Strassennetz/MapServer/WFSServer
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] WMS via https - "SSL handshake failed"

2017-01-03 Thread Jorge Gustavo Rocha

Hi John,

I've added your WMS service and it works without any problem. I've just 
added the url and the connect works. The capabilities are displayed.


You can check the print screen [1] with your https WMS layer.

I'm using QGIS 2.18.2 on Ubuntu. Which OS are you using?

Regards,

Jorge Gustavo

[1] http://webgis.di.uminho.pt/~jgr/wms%20with%20https.png


Às 17:42 de 03-01-2017, John Cartwright escreveu:

Thanks for your reply Luigi!  To be clear, the WMS service that I’m
trying to connect to does not require a username/password but is only
available via https.  The server (https://maps.ngdc.noaa.gov) has a
valid CA certificate.  I tried adding a SSL Server Configuration
 (preferences -> authentication -> Manage Certificates -> Server) and
while the entry appears to be valid, I still get the SSL Handshake error
when trying add a WMS layer.

Any further ideas?  Here’s the actual URL I’m trying to add:

https://maps.ngdc.noaa.gov/arcgis/services/gebco08_hillshade/MapServer/WMSServer?request=GetCapabilities&service=WMS

Thanks again for your help!

—john



On Jan 2, 2017, at 1:52 AM, Luigi Pirelli mailto:lui...@gmail.com>> wrote:

Hi John

SSL is managed storing credentials using the QGIS Authentication
Manager that store credentials in the same way as Firefox, in a master
pwd crypted store in your $home/.qgis2/qgis-auth.db.
You should managed credentials using Settings->options->authentication.

QGIS uses OpenSSL => and specifically can import different king of
credential method (using plugins => can be expanded). De default auth
method installed are listed in the documentation:
https://docs.qgis.org/2.14/en/docs/user_manual/auth_system/auth_overview.html

what is you auth method? can you explain the workflow you followed to
store and use your credentials?

regards
Luigi Pirelli

**
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
*
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
**


On 29 December 2016 at 22:38, John Cartwright
 wrote:

Hello All,

I’m trying to use a WMS service over https and get the following
error when trying to connect:

Failed to download capabilities:
Download of capabilities failed: SSL handshake failed

The URL works fine in a browser though.  I’m guessing that QGIS and
the server are not able to agree on a cipher suite.  Can anyone tell
me what ciphers QGIS supports or any way to get more insight into the
underlying problem?

QGIS is version 2.18.2.

Thanks!

—john

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user



J. Gustavo
--
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] WMS via https - "SSL handshake failed"

2017-01-05 Thread Jorge Gustavo Rocha

Hi John,

I've captured QGIS packets to/from the WMS service, after clicking 
"Connect" on QGIS (to get the capabilities document).


The print screen is available at [1].

Wireshark reports the protocol as TLSv1.2.

Regards,

Jorge

[1] http://webgis.di.uminho.pt/~jgr/qgis-connect-https-wms-service.png


Às 18:23 de 05-01-2017, John Cartwright escreveu:

Thanks.  I used wireshark to trace the session and it appears that QGIS
is attempting to make the connection with TLSv1 which I think is at
least part of the problem.

Can either of you tell me what protocol and cipher suites you’re using?
 what OS you’re running on?  Is there anyway to force QGIS to use a
different protocol?

Thanks!

—john


On Jan 4, 2017, at 1:59 AM, Pasquale Di Donato
mailto:pasquale.didon...@gmail.com>> wrote:

Hi John,

I can access your service too. Using QGIS 2.14.8.
Maybe you have an issue with a proxy?

Pasquale

On Wed, Jan 4, 2017 at 12:57 AM, Jorge Gustavo Rocha mailto:j...@di.uminho.pt>> wrote:

Hi John,

I've added your WMS service and it works without any problem. I've
just added the url and the connect works. The capabilities are
displayed.

You can check the print screen [1] with your https WMS layer.

I'm using QGIS 2.18.2 on Ubuntu. Which OS are you using?

Regards,

Jorge Gustavo

[1] http://webgis.di.uminho.pt/~jgr/wms%20with%20https.png
<http://webgis.di.uminho.pt/~jgr/wms%20with%20https.png>


Às 17:42 de 03-01-2017 , John Cartwright escreveu:

Thanks for your reply Luigi!  To be clear, the WMS service
that I’m
trying to connect to does not require a username/password but
is only
available via https.  The server (https://maps.ngdc.noaa.gov
<https://maps.ngdc.noaa.gov/>) has a
valid CA certificate.  I tried adding a SSL Server Configuration
 (preferences -> authentication -> Manage Certificates ->
Server) and
while the entry appears to be valid, I still get the SSL
Handshake error
when trying add a WMS layer.

Any further ideas?  Here’s the actual URL I’m trying to add:


https://maps.ngdc.noaa.gov/arcgis/services/gebco08_hillshade/MapServer/WMSServer?request=GetCapabilities&service=WMS

<https://maps.ngdc.noaa.gov/arcgis/services/gebco08_hillshade/MapServer/WMSServer?request=GetCapabilities&service=WMS>

Thanks again for your help!

—john


On Jan 2, 2017, at 1:52 AM, Luigi Pirelli
mailto:lui...@gmail.com>
<mailto:lui...@gmail.com <mailto:lui...@gmail.com>>> wrote:

Hi John

SSL is managed storing credentials using the QGIS
Authentication
Manager that store credentials in the same way as Firefox,
in a master
pwd crypted store in your $home/.qgis2/qgis-auth.db.
You should managed credentials using
Settings->options->authentication.

QGIS uses OpenSSL => and specifically can import different
king of
credential method (using plugins => can be expanded). De
default auth
method installed are listed in the documentation:

https://docs.qgis.org/2.14/en/docs/user_manual/auth_system/auth_overview.html

<https://docs.qgis.org/2.14/en/docs/user_manual/auth_system/auth_overview.html>

what is you auth method? can you explain the workflow you
followed to
store and use your credentials?

regards
Luigi Pirelli


**
* Boundless QGIS Support/Development: lpirelli AT
boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
<https://www.linkedin.com/in/luigipirelli>
* Stackexchange:
http://gis.stackexchange.com/users/19667/luigi-pirelli
<http://gis.stackexchange.com/users/19667/luigi-pirelli>
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
*

https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition

<https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition>

**


On 29 December 2016 at 22:38, John Cartwright
mailto:john.c.cartwri...@comcast.net>> wrote:

Hello All,

I’m trying to use a WMS service over https and get the
following
error when trying to connect:

Failed to download capabili

Re: [Qgis-user] WMS via https - "SSL handshake failed"

2017-01-06 Thread Jorge Gustavo Rocha

Hi John,

I was able to use the https WMS server on Ubuntu and on Windows.

=== Ubuntu 16.04.1 LTS, QGIS 64 bit:

QGIS version
2.18.2
QGIS code revision
102ee87
Compiled against Qt
4.8.7
Running against Qt
4.8.7
Compiled against GDAL/OGR
1.11.3
Running against GDAL/OGR
1.11.3
Compiled against GEOS
3.5.0-CAPI-1.9.0
Running against GEOS
3.5.0-CAPI-1.9.0 r4084
PostgreSQL Client Version
9.5.2
SpatiaLite Version
4.3.0a
QWT Version
5.2.3
PROJ.4 Version
492
QScintilla2 Version
2.9.1


=== Windows 10, QGIS 64 bit:

QGIS version
2.18.0
QGIS code revision
0332f5a
Compiled against Qt
4.8.5
Running against Qt
4.8.5
Compiled against GDAL/OGR
2.1.1
Running against GDAL/OGR
2.1.1
Compiled against GEOS
3.5.0-CAPI-1.9.0
Running against GEOS
3.5.0-CAPI-1.9.0 r4084
PostgreSQL Client Version
9.2.4
SpatiaLite Version
4.3.0
QWT Version
5.2.3
PROJ.4 Version
493
QScintilla2 Version
2.7.2

Regards,

Jorge


Às 00:04 de 06-01-2017, John Cartwright escreveu:

Thanks Jorge, that helps confirm my suspicion.  Are you running on
linux?  Based on this ticket (https://hub.qgis.org/issues/11473), it
sounds like the supported protocols may be dependent on the version of
Qt that QGIS is using. Do you happen to know which version you’re using?

—john


On Jan 5, 2017, at 4:30 PM, Jorge Gustavo Rocha mailto:j...@di.uminho.pt>> wrote:

Hi John,

I've captured QGIS packets to/from the WMS service, after clicking
"Connect" on QGIS (to get the capabilities document).

The print screen is available at [1].

Wireshark reports the protocol as TLSv1.2.

Regards,

Jorge

[1] http://webgis.di.uminho.pt/~jgr/qgis-connect-https-wms-service.png


Às 18:23 de 05-01-2017, John Cartwright escreveu:

Thanks.  I used wireshark to trace the session and it appears that QGIS
is attempting to make the connection with TLSv1 which I think is at
least part of the problem.

Can either of you tell me what protocol and cipher suites you’re using?
what OS you’re running on?  Is there anyway to force QGIS to use a
different protocol?

Thanks!

—john


On Jan 4, 2017, at 1:59 AM, Pasquale Di Donato
mailto:pasquale.didon...@gmail.com>
<mailto:pasquale.didon...@gmail.com>> wrote:

Hi John,

I can access your service too. Using QGIS 2.14.8.
Maybe you have an issue with a proxy?

Pasquale

On Wed, Jan 4, 2017 at 12:57 AM, Jorge Gustavo Rocha
mailto:j...@di.uminho.pt>
<mailto:j...@di.uminho.pt>> wrote:

   Hi John,

   I've added your WMS service and it works without any problem. I've
   just added the url and the connect works. The capabilities are
   displayed.

   You can check the print screen [1] with your https WMS layer.

   I'm using QGIS 2.18.2 on Ubuntu. Which OS are you using?

   Regards,

   Jorge Gustavo

   [1] http://webgis.di.uminho.pt/~jgr/wms%20with%20https.png
   <http://webgis.di.uminho.pt/~jgr/wms%20with%20https.png>


   Às 17:42 de 03-01-2017 , John Cartwright escreveu:

   Thanks for your reply Luigi!  To be clear, the WMS service
   that I’m
   trying to connect to does not require a username/password but
   is only
   available via https.  The server (https://maps.ngdc.noaa.gov
   <https://maps.ngdc.noaa.gov/>) has a
   valid CA certificate.  I tried adding a SSL Server Configuration
(preferences -> authentication -> Manage Certificates ->
   Server) and
   while the entry appears to be valid, I still get the SSL
   Handshake error
   when trying add a WMS layer.

   Any further ideas?  Here’s the actual URL I’m trying to add:

   
https://maps.ngdc.noaa.gov/arcgis/services/gebco08_hillshade/MapServer/WMSServer?request=GetCapabilities&service=WMS
   
<https://maps.ngdc.noaa.gov/arcgis/services/gebco08_hillshade/MapServer/WMSServer?request=GetCapabilities&service=WMS>

   Thanks again for your help!

   —john


   On Jan 2, 2017, at 1:52 AM, Luigi Pirelli
   mailto:lui...@gmail.com>
<mailto:lui...@gmail.com>
   <mailto:lui...@gmail.com <mailto:lui...@gmail.com>>> wrote:

   Hi John

   SSL is managed storing credentials using the QGIS
   Authentication
   Manager that store credentials in the same way as Firefox,
   in a master
   pwd crypted store in your $home/.qgis2/qgis-auth.db.
   You should managed credentials using
   Settings->options->authentication.

   QGIS uses OpenSSL => and specifically can import different
   king of
   credential method (using plugins => can be expanded). De
   default auth
   method installed are listed in the documentation:
   
https://docs.qgis.org/2.14/en/docs/user_manual/auth_system/auth_overview.html
   
<https://docs.qgis.org/2.14/en/docs/user_manual/auth_system/auth_overview.html>

   what is you auth method? can yo

Re: [Qgis-user] Load Style from database dialog is blank

2017-01-13 Thread Jorge Gustavo Rocha
Hi Tony,

If you can see the styles in later_styles table, you can try to run the
two queries executed by QGIS to populate the dialog. The first is for
the styles associated with the layer. The later is for all other styles.

-- replace 'publica' with your database
-- replace 'pdm11_c_geral' with your schema
-- replace 'ran' with your table name
-- replace 'the_geom' with your geometry column

SELECT id,styleName,description
FROM layer_styles
WHERE f_table_catalog='publica' AND f_table_schema='pdm11_c_geral' AND
f_table_name='ran' AND f_geometry_column='the_geom'

SELECT id,styleName,description
FROM layer_styles
WHERE NOT (f_table_catalog='publica' AND f_table_schema='pdm11_c_geral'
AND f_table_name='ran' AND f_geometry_column='the_geom')
ORDER BY update_time DESC

Did these queries returned the any styles?

You can log your own Postgresql queries to check what is going on.

Regards,

Jorge Gustavo

Às 02:23 de 13-01-2017, Tony Bazeley escreveu:
> Hi,
> 
> I'm having some trouble attempting to work with styles in postgresql.
> 
> I can successfully save a style to the database - table layer_styles is
> created and populated.
> But attempting to load brings up the 'Load Style from database dialog'
> with messages "No styles found in database'
> 
> Am using QGIS 2.18.2 with postgresql 9.6 and postgis 2.3
> 
> Would appreciate any thoughts on how to progress.
> 
> Thanks
> Tony
> 
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] setting style units project or application-wide

2017-02-07 Thread Jorge Gustavo Rocha
Hi Barend,

As far as I know, that is not possible. But it makes sense to have it.
We could add that option to the project properties, on the default
styles dialog [1]. Every time you need to use a unit, the default unit
would already be selected for you.

Would you like to submit [2] this as a feature request?

[1]
http://webgis.di.uminho.pt/~jgr/project%20properties%20-%20default%20styles.png
[2] https://hub.qgis.org/projects/quantum-gis/issues

Regards,

Jorge Gustavo

Às 12:42 de 03-02-2017, b.j.kob...@utwente.nl escreveu:
> Hi all,
> 
> I know how to set the units of styles (e.g. from millimetres to pixels) per 
> style, but is there a way to set this as a project- or application-wide 
> default?
> 
> Yours,
>  
> --
> Barend Köbben
> Senior Lecturer – ITC-University of Twente
> PO Box 217, 7500 AE Enschede (Netherlands)
> ITC Building (room 1-065)
> @barendkobben
> +31-(0)53 4874 253
>  
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How to 'difference' in existing layer

2017-02-13 Thread Jorge Gustavo Rocha
Hi Lene,

I'm not sure if I understood the question.

I would try the clip operation. You use the second layer to cut the
first layer. But the result is another layer. But a layer with holes :-)

I hope it helps!

J. Gustavo

Às 22:41 de 13-02-2017, Lene Fischer escreveu:
> Hi
> 
>  
> 
> I have two layers of polygons
> 
> I want to make holes in the first layer using the second layer as mask.
> 
>  
> 
> I can do this by function ‘Difference’ – but the result is a third layer.
> 
> I would like the holes in the polygons to be in the first (existing) layer.
> 
>  
> 
> Any suggestions J
> 
>  
> 
> Regards
> 
>  
> 
>  
> 
> *Lene Fischer***
> 
> Associate Professor
> 
>  
> 
> *University of Copenhagen***
> 
> Department of Geoscience and Natural Resource Management
> 
> Forest and Landscape College
> 
> Nødebovej 77a
> 
> 3480 Fredensborg
> 
> Denmark
> 
>  
> 
>  
> 
> DIR +45 35331579
> 
> MOB +45 40115084
> 
> l...@ign.ku.dk <mailto:l...@ign.ku.dk>
> 
> www.ign.ku.dk <http://www.ign.ku.dk/>
> 
>  
> 
>  
> 
> cid:image001.gif@01D2444C.0C2DB110 
> 
>  
> 
>  
> 
> 
> 
> ___________
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 2.18 crashes on style by category

2017-03-23 Thread Jorge Gustavo Rocha
Hi Jonathan,

1. As Matthias suggested, after you send a kill signal, you can go back
to the gdb prompt and type bt to see the backtrace.

2. You QGIS 2.18 is not starting with a specific project, right? (The
one with style by category).

The project file is readable (hum... if XML is readable!). You can take
a look to check if there is something that might break QGIS in the
project file. To file a bug, you should add your project file to the report.

Good luck!

Jorge

PS. I can see from the gdb output that you removed the .qgis2 folder to
start with a more clean environment.


Às 17:23 de 23-03-2017, Matthias Kuhn escreveu:
> Hi Jonathan,
> 
> The most interesting part in GDB becomes visible as soon as you type
> "bt" after a crash (I think the same if you kill it but no guarantee).
> 
> Thanks
> Matthias
> 
> On 03/23/2017 06:11 PM, Jonathan Webb wrote:
>> Hi Jorge,
>>
>> I uninstalled all my plugins & that project won't even open now.
>>
>> GDB report is:
>>
>> $ gdb -ex=r --args /usr/bin/qgis.bin
>> GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
>> Copyright (C) 2014 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later
>> <http://gnu.org/licenses/gpl.html>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
>> and "show warranty" for details.
>> This GDB was configured as "x86_64-linux-gnu".
>> Type "show configuration" for configuration details.
>> For bug reporting instructions, please see:
>> <http://www.gnu.org/software/gdb/bugs/>.
>> Find the GDB manual and other documentation resources online at:
>> <http://www.gnu.org/software/gdb/documentation/>.
>> For help, type "help".
>> Type "apropos word" to search for commands related to "word"...
>> Reading symbols from /usr/bin/qgis.bin...(no debugging symbols
>> found)...done.
>> Starting program: /usr/bin/qgis.bin
>> [Thread debugging using libthread_db enabled]
>> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>> Warning: loading of qgis translation failed
>> [/usr/share/qgis/i18n//qgis_en_GB]
>> Warning: loading of qt translation failed
>> [/usr/share/qt4/translations/qt_en_GB]
>> [New Thread 0x7fffcd875700 (LWP 11457)]
>> [New Thread 0x7fffc7fff700 (LWP 11458)]
>> [New Thread 0x7fffc75cf700 (LWP 11459)]
>> [New Thread 0x7fffc6dce700 (LWP 11460)]
>> Warning: QCss::Parser - Failed to load file  "/style.qss"
>> QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No
>> such file or directory
>> [New Thread 0x7fffc65cd700 (LWP 11462)]
>> Warning: QFileSystemWatcher: failed to add paths:
>> /home/jonathan/.qgis2//project_templates
>> [New Thread 0x7fffc5dcc700 (LWP 11463)]
>> [New Thread 0x7fffc55cb700 (LWP 11464)]
>> Warning: QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack
>> "mWidgetStack", which already has a layout
>> [New Thread 0x7fff5e2e6700 (LWP 11492)]
>> [New Thread 0x7fff5dae5700 (LWP 11527)]
>> [New Thread 0x7fff5d2e4700 (LWP 11528)]
>> [New Thread 0x7fff5cae3700 (LWP 11529)]
>> Warning: QPainter::begin: A paint device can only be painted by one
>> painter at a time.
>> Warning: QPainter::setRenderHint: Painter must be active to set
>> rendering hints
>> Warning: QPainter::setBrush: Painter not active
>> Warning: QPainter::setPen: Painter not active
>> Warning: QPainter::translate: Painter not active
>> Warning: QPainter::drawPath: Painter not active
>> Warning: QPainter::end: Painter not active, aborted
>> Warning: QPainter::begin: A paint device can only be painted by one
>> painter at a time.
>> Warning: QPainter::setRenderHint: Painter must be active to set
>> rendering hints
>> Warning: QPainter::setBrush: Painter not active
>> Warning: QPainter::setPen: Painter not active
>> Warning: QPainter::translate: Painter not active
>> Warning: QPainter::drawPath: Painter not active
>> Warning: QPainter::end: Painter not active, aborted
>> [Thread 0x7fff5dae5700 (LWP 11527) exited]
>> [Thread 0x7fff5e2e6700 (LWP 11492) exited]
>> [Thread 0x7fff5d2e4700 (LWP 11528) exited]
>>
>> me killed it as unresponsive
>> [Thread 0x7fff5cae3700 (LWP 11529) exited]
>> [Thread 0x7fffc55cb700 (LWP 11464) exited]
>> [Thread 0x7fffc65cd700 (LWP 11462) exited]
>> [Thread 0x7fffc6dce700 (LWP 11460) exited]
>> [Thread 0x7fffcd875700 (LWP 11457) exited]
>> 

Re: [Qgis-user] Maximum wfs layers in qgis?

2017-08-21 Thread Jorge Gustavo Rocha
Hi Dan,

QGIS uses a local SpatiaLite database to store the features on the
client side. The cache should be in your .qgis2/cache/wfsprovider
folder. Can you check the contents of the folder?

If your WFS is a public server, can your share the service URL and the
layer/layers to reproduce the problem?

Regards,

J. Gustavo

On 21-08-2017 16:42, Dan Meerschaert wrote:
> I'm working on a plugin for QGIS 2.18.7 on Windows that (as a part of
> its other function) grabs many wfs layers at once.
> 
> The problem is, after about 30-50 simultaneous connections, QGIS throws
> up a "Cannot create temporary SpatiaLite cache" error in the WFS log
> panel and doesn't load all the data.
> 
> I'm able to repeat this by picking any given wfs layer, and duplicating
> it manually using iface.addVectorLayer (...) in the python console.
> 
> Can anyone help me out?
> 
> Respectfully,
> -Dan
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Maximum wfs layers in qgis?

2017-08-21 Thread Jorge Gustavo Rocha
u.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example23","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example24","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example25","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example26","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example27","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example28","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example29","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example20","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example31","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example32","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example33","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example34","WFS")
> 
> iface.addVectorLayer(' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\'
> typename=\'sdr:nyu_2451_34490\'
> url=\'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\
> <https://maps-public.geo.nyu.edu/geoserver/sdr/wfs%5C>' version=\'auto\'
> table="" sql=',"example35","WFS")
> 

Re: [Qgis-user] refactoring tables defaults to maximum sizes

2017-09-02 Thread Jorge Gustavo Rocha
Hi Robert,

Which kind of tables (provider) are you using?

Regards,

Jorge Gustavo

On 02-09-2017 18:26, Robert Sweeny wrote:
> Hi people
> 
> I am trying to combine a number of point files together but when I
> create new fields the length I specify is ignored and the size defaults
> to the maximum (ie 254 for string fields). When I tried editing the
> table using refactor tables the same thing happened. How can I edit the
> length of a field in an existing table from within Qgis?
> 
> thanks
> 
> Robert Sweeny
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qgis project with large number of wfs services

2017-09-07 Thread Jorge Gustavo Rocha
Hi Holger,

This subject was discussed recently in this list.
You can disable the local cache to avoid this issue. try to find the
discussion thread.

Regards,

Jorge Gustavo

On 07-09-2017 07:20, Holger Naumann wrote:
> Hi list,
> I try to load lots of wfs layers to my qgis project.
> After some layers I get a error message.
> 
> ERROR: Too many connections: max 64
> ERROR unable to initialize the SpatiaLite extension: NULL cache !!!
> ERROR: Too many connections: max 64
> ERROR 6: Creating a Spatialite database, but Spatialite extensions are
> not loaded.
> 
> All of the attribute tables where empty after this error.
> It is possible to increase the number of connections?
> 
> Greetings, Holger
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Export styles with svg and color ?

2017-09-07 Thread Jorge Gustavo Rocha
Hi Lars,

The support for SLD in QGIS3 is being improved. In QGIS3, the fill color
of SVG symbols is included in the SLD.

If you really need this feature, you might want to try QGIS3.

Regards,

Jorge Gustavo

On 07-09-2017 14:05, Lars I. Nielsen, LIFA A/S wrote:
> Hi list,
> 
>  
> 
> We’re using QGIS to style some point layers, and export the styles to
> Geoserver via SLD.
> 
>  
> 
> Unfortunately, it seems that QGIS (2.18.11) exports the
> PointSymbolyzer’s referencing SVG symbols without their color
> information (or anything else for that matter).
> 
>  
> 
> Is it completely impossible to achieve, or is there an easy work-around
> for this ?
> 
>  
> 
>  
> 
> Med venlig hilsen
> 
> Lars I. Nielsen, LIFA A/S
> GIS konsulent, FME Certified Professional
> 
> http://website.lifa.dk/docs/LIFA_GIS·IT_logo.png
> 
> *T*
> 
>   
> 
> 6313 6800
> 
>   
> 
> *@* 
> 
>   
> 
> l...@lifa.dk
> 
> *D*
> 
>   
> 
> 6313 6849
> 
>   
> 
> *W*
> 
>   
> 
> www.lifa.dk <http://www.lifa.dk> 
> 
> *M*
> 
>   
> 
> 2492 4866
> 
>   
> 
>  
> 
>   
> 
>  
> 
> 
> *Vi tilbyder interne og eksterne kurser. Du kan finde mere information i
> vores kursuskalenderVi tilbyder interne og eksterne kurser. Du kan finde
> mere information i vores **kursuskalender
> <https://www.lifa.dk/kursuskalender>*
> 
>  
> 
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] problemas con disolve

2017-10-17 Thread Jorge Gustavo Rocha
Hola Manuel,

Can you send a print screen to see what is happening?

You might want to try the convex hull after dissolve to get just one
polygon. Can you try the convex hull?

Regards,

Jorge

On 17-10-2017 08:00, Manuel Esteban Lucas Borja wrote:
> Hola Buenos días,
> He realizado un disolve de varios polígonos con un campo en común y al
> acabar la operación en el interior del polígono resultante aparecen una
> líneas que forman parte del polígono y que afean el resultado del
> disolve. ¿Existe alguna manera de eliminar estas líneas interiores y
> depurar el polígono?
> Gracias
> Manuel
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] wkt

2017-10-27 Thread Jorge Gustavo Rocha
Hi,

It seems that your data is JSON encoded.
I would suggest to write a very small Javascript (using node, for
example) to convert it from JSON to WKT.

Regards,

Jorge Gustavo

On 26-10-2017 15:49, Michael.Dodd wrote:
> I have 1000+ geometries as shown below and need to find the area of
> each, some of them have more than one chunk to the polygon. The format
> is not wkt format but is probably convertable.  Is there a way to get
> these into qgis and do the area calculations?
> 
> 
> 1 
> {"circles":[],"polygons":[[[61.438,-0.461],[57.491,-9.645],[55.00,-9.689],[54.6983,-11.579],[50.985177,-11.53],[51.06809,-6.56982],[49.0944,-6.56],[50.0914,-1.73],[50.48454,1.076],[52.90801,2.878]]],"rectangles":[]}
> 
> 
> 
> 4 
> {"circles":[],"polygons":[],"rectangles":[[[51.0951,0.03457],[51.094,0.033871]]]}
> 
> 
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Custom SVG path in Debian/Qgis 2.18.x server

2017-12-19 Thread Jorge Gustavo Rocha
Hi Pietro,

What links you have in your QGIS → Options → System → SVG Paths ?
You can customize your paths there.

Regards,

Jorge

On 19-12-2017 09:21, pieri70 wrote:
> Good morning everybody
> In the past I used to symbolize my vector layers with svg symbols in QGIS on
> windows and Qgis server on debian.
> All I had to do was to create a folder in my windows PC "myfolder" and to
> create a folder with the same name on debian under /usr/share/qgis/svg/ (i.e
> /usr/share/qgis/svg/myfolder)
> 
> Svg files used on windows were correctly used in qgis server too
> 
> Now my qgis projects aren't symbolized correctly anymore and I get a
> question mark instead of the svg used (symbol not found I guess...)
> 
> I am on debian last stable and qgis server 2.18.12.
> 
> Is there some way to solve this problem?
> Thanks for any help
> Pietro
> 
> 
> 
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] ArcSDE

2018-01-09 Thread Jorge Gustavo Rocha
Hi Jürgen,

I suspect that you are right! I used this old modules for a one time
job, to do the migration from SDE to Postgresql.

I would say that it is not possible to handle SDE data directly from
QGIS any more (using standard GDAL builds).

But someone else might have an alternative solution.

Regards,

Jorge


On 09-01-2018 16:53, Jürgen E. Fischer wrote:
> Hi Jorge,
> 
> On Tue, 09. Jan 2018 at 15:45:01 +0000, Jorge Gustavo Rocha wrote:
>> I was able to do it with ms4w_3.0.6. More details on
>> https://gis.stackexchange.com/questions/219660/get-gdal-up-and-running-with-arcsde-enabled
> 
> But only as migration path, right?   I suppose those old GDAL modules don't
> work with the current GDAL builds and wouldn't enable SDE in QGIS.
> 
> 
> Jürgen
> 
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 3 initial settings from QGIS 2

2018-02-28 Thread Jorge Gustavo Rocha
Hi,

Nathan did some work on that.
Check the thread in this list: "Settings migration from QGIS 2 to 3"

Regards,

Jorge Gustavo

On 28-02-2018 12:22, McDonaldR wrote:
> Hello David
> 
> QGIS3 writes a new configuration into a .qgis3 folder in your user profile / 
> home directory so all your old settings are in the old .qgis2 folder.  You 
> might be able to copy contents from one to the other but I'm not sure of the 
> consequences.  Proceed with caution :-)
> 
> Ross
> 
> 
> Ross McDonald | GIS Data Coordinator | Angus Council, People, IT | Angus 
> House, Orchardbank Business Park, Sylvie Way, Forfar DD8 1AT | t: 01307 476419
> 
> 
> 
> -Original Message-
> From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of David 
> Addy
> Sent: 28 February 2018 08:46
> To: qgis-user@lists.osgeo.org
> Subject: [Qgis-user] QGIS 3 initial settings from QGIS 2
> 
> I was pleased to download QGIS3 last night, and I clicked on the option to 
> include my existing settings from QGIS2.
> However, when opening Q3 it seemed to be in the full naked default situation. 
> There were no "Recent Projects" and my local CRS was not set to OSGB 36. The 
> CRS is easily corrected of course, but is there any way to get back "Recent 
> Projects" and whatever else I had previously set up in QGIS 2?
> Any advice welcome.
> Best wishes to all, and I can't wait to get into Q3 properly.
> 
> 
> 
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> This message is strictly confidential. If you have received this in error, 
> please inform the sender and remove it from your system. If received in error 
> you may not copy, print, forward or use it or any attachment in any way. This 
> message is not capable of creating a legal contract or a binding 
> representation and does not represent the views of Angus Council. Emails may 
> be monitored for security and network management reasons. Messages containing 
> inappropriate content may be intercepted. Angus Council does not accept any 
> liability for any harm that may be caused to the recipient system or data on 
> it by this message or any attachment.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Qgis 2.14 Ubuntu 16

2018-03-04 Thread Jorge Gustavo Rocha
Hi Ravi,

Please share. to test. Seems like a simple enconding issue.

Regards,

Jorge Gustavo

On 04-03-2018 15:00, Ravi Kumar wrote:
> BUG:
> unable to save Layer imported as CSV to a ESRI Shp file.
> This results in some Text in the Attribute table which is like
> Chinese/Korean script.
> 
> Can share the file, for probing.
> 
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Programmatically extract WMS data based on point layer?

2020-10-19 Thread Jorge Gustavo Rocha
Hi Bernd,

Try rlayer.dataProvider().identify()

Checks the docs at
https://docs.qgis.org/3.10/en/docs/pyqgis_developer_cookbook/raster.html#query-values

Good luck,

Jorge

Às 12:25 de 19/10/20, Bernd Vogelgesang escreveu:
> Hi there,
>
> unfortunately I am provided with data only in form of a WMS layer
> representing areas as polygons.
> These areas match with the cadastral boundaries.
> I am looking for a way how to hand over the data from the WMS to my
> cadastral units to be able to really work with these informations.
>
> I created a "Point on surface" layer of the cadastre.
> Is there any pythonic or other way to "mimic" the "Identify features"
> click on that layer with the coordinates of those points and store the
> results?
>
> I assume, that each click is a server request, so running these (in my
> case) 8000 "cĺicks" should not be sent in a millisecond, but with some
> pause.
> It doesn't really matter how long this takes, cause it only has to be
> done once and would be in any case faster than manually clicking and
> noting the data.
>
> Obviously, this is not what the provider of the data intends, but it's
> like an act of self-defence against a stubborn and bureaucratic
> administration.
> So, data rebels, come to help please ;)
>
> Cheers,
>
> Bernd
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Programmatically extract WMS data based on point layer?

2020-10-19 Thread Jorge Gustavo Rocha
Hi Richard,

This is not related with Bernd's problem, but I think you found a bug.
Thanks for testing.

If you change QgsRaster.IdentifyFormatFeature to IdentifyFormatHtml or
IdentifyFormatText you get a valid result.

result = l.dataProvider().identify( QgsPointXY(146153.5,456404.4),
 QgsRaster.IdentifyFormatHtml )
print(result.isValid())
print(result.results()[0])

You will get:


    
    Bebouwing
    
    objectBeginTijd
    LV-publicatiedatum
    relatieveHoogteligging
    inOnderzoek
    tijdstipRegistratie
    identificatieNamespace
    identificatieLokaalID
    bronhouder
    bgt-status
    plus-status
    identificatieBAGPND
    
    
    2016-08-22
    2017-03-11T17:14:11
    0
    false
    2016-08-22T15:38:22.000
    NL.IMGeo
    G0355.43ae8cce36d745a199bf13faf157fe74
    G0355
    bestaand
    geenWaarde
    035510721710
    
    
    


For some reason, the identify() is not creating the result set properly
with the format QgsRaster.IdentifyFormatFeature.

It seems like a bug, according to the documentation [1]. It is working
on the GUI. The results are properly collected by QGIS from the remote
WMS and displayed in the info panel.

Let's see if some else has trouble using this API call.

Regards,

Jorge

[1]
https://qgis.org/pyqgis/master/core/QgsRasterIdentifyResult.html#qgis.core.QgsRasterIdentifyResult.results


Às 13:07 de 19/10/20, Richard Duivenvoorde escreveu:
> Hi Jorge, Bernd,
>
> I thought to play with that, but ...
>
> although I get a valid result, I cannot get to the actual features in python:
>
> TypeError: unable to convert a C++ 'QgsFeatureStoreList' instance to a Python 
> object
>
> So I'm not sure if you could (currently) easily come to the actual feature...
>
>
> What I did (working with a national buildings WMS, and a (to me) known valid 
> x,y,width/height etc:
>
> l=qgis.utils.iface.addRasterLayer(
> "crs=EPSG:28992&layers=Bebouwingvlak&styles=&format=image/png&url=https://geodata.nationaalgeoregister.nl/kadastralekaart/wms/v4_0?";,
>  # uri
> "buildings", # name for layer (as seen in QGIS)
> "wms" # dataprovider key
> )
>
> result = l.dataProvider().identify( QgsPointXY(104606,490213), 
>  QgsRaster.IdentifyFormatFeature, 
>  
> QgsRectangle(104391.1406077263819,490161.0749502293766,104899.6563292678911,490283.3410253541078),
>  1465,
>  352,
>  96)
> print(result.isValid()) # prints True
> print(result.results())
> # prints TypeError: unable to convert a C++ 'QgsFeatureStoreList' instance to 
> a Python object
>
> Regards,
>
> Richard Duivenvoorde
>
> PS @Bernd: you are sure there is no WFS running there (if it is a Geoserver 
> instance, it often has (silently) also a WFS)?
>
> On 10/19/20 1:36 PM, Jorge Gustavo Rocha wrote:
>> Hi Bernd,
>>
>> Try rlayer.dataProvider().identify()
>>
>> Checks the docs at 
>> https://docs.qgis.org/3.10/en/docs/pyqgis_developer_cookbook/raster.html#query-values
>>
>> Good luck,
>>
>> Jorge
>>
>> Às 12:25 de 19/10/20, Bernd Vogelgesang escreveu:
>>> Hi there,
>>>
>>> unfortunately I am provided with data only in form of a WMS layer
>>> representing areas as polygons.
>>> These areas match with the cadastral boundaries.
>>> I am looking for a way how to hand over the data from the WMS to my
>>> cadastral units to be able to really work with these informations.
>>>
>>> I created a "Point on surface" layer of the cadastre.
>>> Is there any pythonic or other way to "mimic" the "Identify features"
>>> click on that layer with the coordinates of those points and store the
>>> results?
>>>
>>> I assume, that each click is a server request, so running these (in my
>>> case) 8000 "cĺicks" should not be sent in a millisecond, but with some
>>> pause.
>>> It doesn't really matter how long this takes, cause it only has to be
>>> done once and would be in any case faster than manually clicking and
>>> noting the data.
>>>
>>> Obviously, this is not what the provider of the data intends, but it's
>>> like an act of self-defence against a stubborn and bureaucratic
>>> administration.
>>> So, data rebels, come to help please ;)
>>>
>>> Cheers,
>>>
>>> Bernd
>>>
>>> _

Re: [Qgis-user] Shared/common library for PyQGIS scripts

2020-10-20 Thread Jorge Gustavo Rocha
Hi,

I think the PyQGIS Cookbook is the perfect place to share these scripts.
The Cookbook is not the API reference documentation. It is the place to
share solutions for common problems using the QGIS API.

Regards,

Jorge

Às 08:34 de 20/10/20, Charles Dixon-Paver escreveu:
> Personally I feel like this outlines a greater problem of snippet
> sharing in many developer communities and is not a problem that is
> well suited to the resource sharing plugin, or even a single
> traditional GitHub repo.
>
> My personal approach was to set up a subdirectory on GitHub with code
> snippets and add a pyqgis subdirectory (although I don't have a useful
> collection of things yet). I don't really like gists for something I
> want to maintain or have discoverable, so I use this dedicated repo
> instead. I would suggest if you plan on creating a number of different
> snippets that you create a similar one, or if you want to collaborate
> or make an occasional contribution then suggest an alternative.
>
> From my experience with the community it seems like a lot of the most
> useful snippets are scattered throughout conversations on the mailing
> lists, or within stack overflow. When working with the Esri platform
> and Web App Builder, there were a couple of repositories with custom
> widgets etc but the GeoNet forum was also probably the biggest
> resource for types of things like code snippets, although it had
> similar limitations to what I've experienced with pyqgis, perhaps with
> slightly better discoverability since I only really looked in one
> place and if I couldn't find something I didn't waste extra time
> searching across various platforms.
>
> Personally, I dislike stack overflow for a number of reasons. For one,
> I've found it's platform gamification has always led to a weird
> passive aggressive attitude from community members. The GIS site seems
> a lot more welcoming, but as a general rule, I just straight up don't
> like the platform because of this. The amount of unnecessary question
> reformats and edits for points is just painful to witness. The system
> itself has pretty funky issues as well - like flagging questions as
> duplicates but not providing links to those duplicates. Or where the
> OP directly posts links to duplicates but explicitly states the
> solutions don't work, only to have their question closed anyway... In
> any event, I think there's a lot of people like me that only end up
> there when Google/ DuckDuckGo takes us there... Which leads to the
> typical stack overflow issue of all code being horribly outdated and
> nothing actually works. Most of the snippets I find on SO are for QGIS
> 2 anyway. It's also not pyqgis specific.
>
> The mailing lists themselves I find have poor code discoverability,
> but I don't think a forum would resolve this and would likely
> just fragment the community further.
>
> For personal use, the best tool I've found for snippet management has
> been https://github.com/snibox/snibox but I don't know how well that
> scales. I used to use dokuwiki too, but it takes a lot of effort to
> format stuff and is more of a publication tool, but I don't see a
> quality wiki being maintained without significant effort.
>
> Your question has prompted me to set up
> a https://github.com/zacharlie/awesome-pyqgis repository.
>
> This way we can collectively maintain an up to date list of resources
> for PyQGIS, including up to date links for documentation, tutorials
> and training, and links to people's repositories. If something like
> this already exists and my list is redundant, please someone let me
> know so I can delete it before we put any significant work into it,
> and share something better so that the community knows about it.
>
> I'm open to other suggestions.
>
> Regards
>
>
> On Tue, 20 Oct 2020 at 00:38,  <mailto:qgis-u...@stripfamily.net>> wrote:
>
> Is there a place where folks can contribute scripts that others
> might find useful? I know about the Resource Sharing plug-in,
> which is a way to point to a repository one is maintaining. I'm
> thinking more of a common repository where some might contribute
> the odd script. There's an archived git repository in
> qgis/QGIS-Processing->scripts, but that's no longer active.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> ___
> 

Re: [Qgis-user] Saving project to geopackage

2020-10-29 Thread Jorge Gustavo Rocha
Hi António (hi Luigi),

Before saving the project, you must create a connection (in the browser
panel) to the geopackage. If you don't create the connection, you are
not able to save de project in the geopackage.

This additional step is not "user friendly", but it is required right now.

Regards,

Jorge Gustavo

Às 12:29 de 29/10/20, Luigi Pirelli escreveu:
> save the project in the same gpkg from Menu Project->Save top->geopakage
> and select the geopakage where are located all your layers
>
> Luigi Pirelli
>
> **
> * LinkedIn: https://www.linkedin.com/in/luigipirelli
> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
> * GitHub: https://github.com/luipir
> * Book: Mastering QGIS3 - 3rd Edition
> <https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition>
> * Hire a team: http://www.qcooperative.net
> **
>
>
> On Thu, 29 Oct 2020 at 12:45, António Pestana  <mailto:afsm.pest...@gmail.com>> wrote:
>
> I'm a brand new user trying to adapt my workflows to  QGIS.
> I've created a project having more than twenty layers. In order to
> keep things more manageable I've structured these layers using several
> groups. I would like to save my project (layers, groups, formatings,
> etc) and all my data using only one file and send it to one coworker
> of mine. I suppose that exporting to one geopackage-type file is the
> way to go. It seems to me that my needs shouldn't be uncommon but
> unfortunately I don't know how to do that.
>
> I've searched QGIS user guide with no luck. Can anyone help me?
>
> Regards
>
> Antonio
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Saving project to geopackage

2020-10-29 Thread Jorge Gustavo Rocha
Thanks, Etienne! Cool!

Às 13:01 de 29/10/20, Etienne Trimaille escreveu:
> Le jeu. 29 oct. 2020 à 13:42, Jorge Gustavo Rocha  <mailto:j...@geomaster.pt>> a écrit :
>
> Hi António (hi Luigi),
>
> Before saving the project, you must create a connection (in the
> browser panel) to the geopackage.
>
> It is not needed.
> You can click on the 3 dots next to the connection list and choose any
> existing GPKG.
>  
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Installing QGIS 3.14 or 3.16 on Windows: it only runs as administrator

2020-10-29 Thread Jorge Gustavo Rocha
Hi,

I'm trying to install QGIS using OSGeo4W on a new Windows 10 computer.
I've tried several options. I started with the "express desktop install".

The installation runs smoothly.

After installation, the splash screen appear and goes until the message:
QGIS is ready! But then, nothing happens. If I run QGIS with
Administrator privileges, it works.

I've also tried to install with "custom install", just for the current
user. But using this option, I get install errors (complaining about a
missing gdal301.dll).

What can I do (change some permissions?) to have QGIS running with
administrator privileges?

Disclaimer: I'm not a Windows expert. I probably missed something
obviously. I've disabled the antivirus software, just in case.

Thanks,

Jorge

-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Installing QGIS 3.14 or 3.16 on Windows: it only runs as administrator

2020-10-31 Thread Jorge Gustavo Rocha
Hi Bo,

Thanks for the feedback.

You are right. I was installing QGIS in a municipality where the
computers are configured by the IT dept. It was a brand new computer,
but I guess it was deployed with some predefined configuration.

I was able to change the QGIS startup settings and it now runs always
with "administrative privileges". But I don't like the solution and I'll
try to start it a --profiles-path path where the user is able to read
and right. I will also talk with the IT, because it is not a QGIS
problem from the feedback I've received. I hope they will contribute to
fix the issue too.

Have a nice weekend!

Jorge

Às 10:27 de 31/10/20, Bo Victor Thomsen escreveu:
>
> Hi Jorge -
>
> If it's an so-called "enterprise" setup of the new Windows PC, the IT
> department might have mucked around with all sorts of security and
> userdata setups. QGIS needs to have read/write access to the
> %userdata% path to read and write parameter settings, installing and
> loading plugins and so on.
>
> You can try:
>
>   * To start QGIS with the--noplugins qualifier. This will stop QGIS
> from loading plugins on startup.
>
>   * To start QGIS with the --profiles-path 
> The--profiles-path qualifier gets QGIS to use another directory
> for profiles storage than the default
>  must point to  an existing directory path where
> you're certain you have read/write access to.
>  
>
> If it actually works with the second suggestion, your IT department
> probably has made  the userdata directory inaccessible for QGIS. 
>
> Den 29-10-2020 kl. 18:16 skrev Jorge Gustavo Rocha:
>>
>> Hi,
>>
>> I'm trying to install QGIS using OSGeo4W on a new Windows 10
>> computer. I've tried several options. I started with the "express
>> desktop install".
>>
>> The installation runs smoothly.
>>
>> After installation, the splash screen appear and goes until the
>> message: QGIS is ready! But then, nothing happens. If I run QGIS with
>> Administrator privileges, it works.
>>
>> I've also tried to install with "custom install", just for the
>> current user. But using this option, I get install errors
>> (complaining about a missing gdal301.dll).
>>
>> What can I do (change some permissions?) to have QGIS running with
>> administrator privileges?
>>
>> Disclaimer: I'm not a Windows expert. I probably missed something
>> obviously. I've disabled the antivirus software, just in case.
>>
>> Thanks,
>>
>> Jorge
>>
>> -- 
>> Email Signature
>> Logo <https://www.geomaster.pt>  
>> *Geomaster*
>> *Jorge Gustavo Rocha* | Software Engineer
>> *e:*j...@geomaster.pt | *m:*+351 910 333 888
>> *g:*41.54094,-8.40490 | *v: *510 906 109
>> *a: * Rua António Cândido Pinto, 67, 4715-400 Braga
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> -- 
> Med venlig hilsen / Kind regards
>
> Bo Victor Thomsen
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Add Layer Search to Toolbar

2020-11-13 Thread Jorge Gustavo Rocha
Hi L.W.,

You already have a search toolbar, at the lower left corner. There are
several search options. Have you tried them?

Regards,

Jorge Gustavo

Às 14:39 de 13/11/20, L.W. escreveu:
> Hi,
>
> is there a default option / way to have a textfield for searching in a
> layer at the toolbar (or dock-window)? Ill like to get the
> "fieldname"-value of the found dataset / attribute.
>
> regards
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problem exporting to pdf

2020-11-14 Thread Jorge Gustavo Rocha
Boa noite António,

Just rename the layer (in QGIS layer tree) from "Todas as Parcelas
Áreas" to "Todas as Parcelas Areas".

Then you will be able to export the layer :-)

Please file a issue at [1]. Layers with such names should be supported.

Regards,

Jorge Gustavo

[1] https://github.com/qgis/QGIS/issues

Às 20:32 de 14/11/20, António Pestana escreveu:
> I´m using QGIS Desktop 3.16 on W10. My project (see All_Data.zip) has
> only two shapefile layers, one for polygons (Todas as Parcelas Áreas)
> and the other for lines (Todas as Parcelas Linhas). I used a very
> simple layout for exporting my map to one layered geopdf. If I use the
> default export options (see Options_NOT_OK.PNG) export aborts throwing
> the "Could not create print device" error. However if I uncheck the
> "Include Attributes" checkbox of the export options (see
> options_OK.PNG), the export is made and the resulting pdf file looks
> fine Does someone know what is happening?
>
> Regards
>
> António
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Toggle Attribute

2020-11-23 Thread Jorge Gustavo Rocha
Hi Mike,

Just create an action with something like this to see it in action:

https://www.google.pt/maps/@[% @click_x %],[% @click_y %]

This will open google maps at the place you clicked. If you want to get
something from the action called, you have to capture its output (and
return the right value from your script).

As Richard said, start with the default actions and you will see
different kinds of things that can be done with actions. Capturing the
clicked X,Y is straight forward.

Jorge

Às 13:22 de 23/11/20, Mike Flannigan escreveu:
>
> On 10/26/2014 I asked my first question in this forum:
>
> Coordinate Capture plugin allows one to click on the map, hit
> the "Copy to clipboard" button, and then use the lat/long on
> the clipboard. I want something similar, but I want to
> skip the "Copy to clipboard" button. Ideally I want to
> click on the map and it copies the lat/long to the clipboard,
> executes an external script, and puts the result on the map
> next to the place clicked. I can skip the last step if that
> is too complicated.
>
> Can that be done with "Actions"? Or is the Python Console or
> some other means a better way to get this done?
>
>
>
> It went unanswered and I have never found a way to execute a
> script upon a click.  I've seen others who wanted actions based
> on a click or hover, but no clear solutions presented.  It sounds
> like you are on to something below.
>
>
> Mike
>
>
> On 11/23/20 5:24 AM, qgis-user-requ...@lists.osgeo.org wrote:
>> I tried a little bit with "actions" but - I think you're right - there
>> is no onHover.
>>
>> anyway, I found a much more comfortable solution for the moment.
>>
>> I add the simple term "OR is_selected()" in the if clause for my symbol
>> to show the changed color (in my case I draw a line between two points)
>> and it worked like a charme.
>>
>> But, this is without the option to e.g. display a messagebox or someting
>> like that with additional informations of the feature (I know about map
>> hints/tips (I do not know the right translation).
>>
>> Yes you could made an action for that, but my goal was to show this on
>> hover, but click is okay.
>>
>> For X-Mas my wish in relation to QGIS is a hover event ... on feature on
>> map and on symbols.;-)
>>
>> Thanks for helping to everyone.
>>
>
>
> _______
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Print Legend as Features of a Layer

2020-11-29 Thread Jorge Gustavo Rocha
Hi,

I'm not really sure if I understood the question, but the option "Only
show items inside linked map" is useful to show only the legend entries
for the features on the map. You don't need to write any expression for
that.

Have fun with QGIS,

Jorge Gustavo

Às 10:17 de 29/11/20, Walt Ludwick escreveu:
> I've got a Polygon layer whose features are a series of contiguous
> LandPlots, and i want to print a map of same with a Legend that lists
> each LandPlot by name, along with its calculated area.
>
> My problem is: the Layout Composer in QGIS 3.14 seems to presume that
> one wants a list of Layers for the Legend -and, tho i can filter that
> list down to just the single "LandPlots" Layer that i want, i cannot
> get it to list the features within that Layer. 
>
> Have read the docs on this feature
> <https://docs.qgis.org/3.16/en/docs/user_manual/print_composer/composer_items/composer_legend.html>,
> which doesn't tell me how to solve this problem, unless i'm missing
> something -perhaps implicit in this "filter by expression" feature,
> which calls for more code-savvy than i've got on the ball right now <:-(
>
> Am at an impasse, so any suggestion at this point would be most
> appreciated!
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Importing raster images into Postgis and PostgreSQL versions

2021-01-09 Thread Jorge Gustavo Rocha
Hi Grant,

QGIS is able to read rasters for any available version of Postgis, as
far as I know. Make sure you have postgis_raster extension installed.

You can upload and use Postgis rasters easily with a plugin called
Raster2postgis [1]. It is experimental, so you have to enable
experimental plugins in the plugin manager to install it. It also
depends on a Python module unidecode that you have to add to your QGIS.
The installation is documented at [2].

Feel free to ask questions about the plugin and about Postgis raster
support in QGIS.

Regards,

Jorge Gustavo

Às 08:12 de 09/01/21, Grant Boxer escreveu:
> Is it possible to import raster layers into a postgis database
> (easily) and what version of PostgreSQL can the latest release and
> development versions of QGIS read?
>
> Cheers Grant Boxer
>
> Perth Western Australia
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Importing raster images into Postgis and PostgreSQL versions

2021-01-09 Thread Jorge Gustavo Rocha
Hi Grant, (now with the missing links)

QGIS is able to read rasters for any available version of Postgis, as
far as I know. Make sure you have postgis_raster extension installed.

You can upload and use Postgis rasters easily with a plugin called
Raster2postgis [1]. It is experimental, so you have to enable
experimental plugins in the plugin manager to install it. It also
depends on a Python module unidecode that you have to add to your QGIS.
The installation is documented at [2].

Feel free to ask questions about the plugin and about Postgis raster
support in QGIS.

Regards,

Jorge Gustavo

[1] https://plugins.qgis.org/plugins/raster2postgis/

[2] https://gitlab.com/geomaster/raster2postgis

Às 08:12 de 09/01/21, Grant Boxer escreveu:
> Is it possible to import raster layers into a postgis database
> (easily) and what version of PostgreSQL can the latest release and
> development versions of QGIS read?
>
> Cheers Grant Boxer
>
> Perth Western Australia
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problem connecting to Postgres13

2021-01-11 Thread Jorge Gustavo Rocha
Hi Grant,

Which error to you get in QGIS?

The access problem might not be in QGIS. Can you access the 12 and 13
servers with other applications? Each Postgresql server/service has its
own configuration and access restrictions, even if they are running on
the same machine.

Regards,

Jorge

Às 00:42 de 11/01/21, box...@iinet.net.au escreveu:
>
> I am having problems connecting QGIS 3.16.2 to Postgres 13 and 12. It
> connects fine to Postgres v1 1. Any suggestions? I am running Windows
> 10 on PC.
>
>  
>
> Version data here
>
> QGIS version
>
>   
>
> 3.16.2-Hannover
>
>   
>
> QGIS code revision
>
>   
>
> f1660f9da5 <https://github.com/qgis/QGIS/commit/f1660f9da5>
>
> Compiled against Qt
>
>   
>
> 5.11.2
>
>   
>
> Running against Qt
>
>   
>
> 5.11.2
>
> Compiled against GDAL/OGR
>
>   
>
> 3.1.4
>
>   
>
> Running against GDAL/OGR
>
>   
>
> 3.1.4
>
> Compiled against GEOS
>
>   
>
> 3.8.1-CAPI-1.13.3
>
>   
>
> Running against GEOS
>
>   
>
> 3.8.1-CAPI-1.13.3
>
> Compiled against SQLite
>
>   
>
> 3.29.0
>
>   
>
> Running against SQLite
>
>   
>
> 3.29.0
>
> PostgreSQL Client Version
>
>   
>
> 11.5
>
>   
>
> SpatiaLite Version
>
>   
>
> 4.3.0
>
> QWT Version
>
>   
>
> 6.1.3
>
>   
>
> QScintilla2 Version
>
>   
>
> 2.10.8
>
> Compiled against PROJ
>
>   
>
> 6.3.2
>
>   
>
> Running against PROJ
>
>   
>
> Rel. 6.3.2, May 1st, 2020
>
> OS Version
>
>   
>
> Windows 10 (10.0)
>
> Active python plugins
>
>   
>
> geoprocAlgos;
> geoscience;
> pluginbuilder3;
> plugin_reloader;
> Qgis2threejs;
> qlyrx;
> quick_map_services;
> SemiAutomaticClassificationPlugin;
> slyr;
> SpreadsheetLayers;
> SRTM-Downloader;
> db_manager;
> processing
>
>  
>
>  
>
> Regards Grant Boxer
>
>  
>
>  
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] create a polygon retracing a line

2021-01-20 Thread Jorge Gustavo Rocha
Ciao Azzurra,

You can use Vector → Geometry tools → Lines to Polygons...

Regards,

Jorge Gustavo

Às 22:33 de 20/01/21, Azzurra Lentini escreveu:
>
> Hi to all,
>
> I need to draw a polygon that has the same shape/area of another file
> that was created as a line (shape file geometry line).
>
> Does Qgis have any editing tool to create a polygon (shape file
> polygon) retracing a shape file line (geometry shape file: line)? 
>
> Thanks, Azzurra
>
> -- 
> Lecturer GIS University "Roma Tre"
> Consultant Environmental Risk Prevention and Hydrogeology
> AZZURRA LENTINI 
> ++
> Italy Mobile Tel.: **(39) 338 24 40 676
> ++
> SKYPE azzurrahydro
> ++
>
> *_azzurralent...@gmail.com <mailto:azzurralent...@gmail.com>_*
>
> *_azzurra.lent...@uniroma3.it
> <mailto:azzurra.lent...@uniroma3.it> _**_  _*
>
> ++
> *Par respect pour l'environnement,*
>
> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>  
>
>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Georeferencing a DXF file

2021-02-03 Thread Jorge Gustavo Rocha
Hi Walt,

Some years ago, I used a plugin called "Vector bender" [1], but I have
no idea if it is still usable.

Please check if it runs on QGIS 3.x.

Regards,

Jorge Gustavo

[1]
https://www.cursosgis.com/georreferenciar-archivos-vectoriales-dxf-en-qgis/

Às 19:10 de 03/02/21, Walt Ludwick escreveu:
> I've received a 3D AutoCAD file from an architect that i managed to
> convert into 2D .dxf format and import into my QGIS project, but it is
> out-of-scale and out-of-place, so i guess i need to add some
> georeferencing coordinates to the file.  
>
> This should be easy enough, since it's an accurate representation of a
> building that's already in the project -with an additional wing tacked
> on- so i'm thinking i could just use a few corners of that existing
> buildings as ground control points, and map them to the corresponding
> corners on this .dxf model, then maybe all other co-ordinates could be
> automatically generated by some tool, if i could just find the right
> one for the job. 
>
> Is there in fact any such easy way to do this thing?
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Install Postgresql and Postgis

2021-02-09 Thread Jorge Gustavo Rocha
Hi Nick,

I do the following in Ubuntu 20.04:

sudo apt-get install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt
$(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt update
sudo apt install postgresql postgresql-13-postgis-3
postgresql-13-postgis-3-scripts
sudo apt install --no-install-recommends postgis
sudo pg_ctlcluster 13 main start

Regards,

Jorge

Às 11:35 de 09/02/21, Nick Hopton escreveu:
> Ubuntu 20.04, QGIS 3.16.3.
>
> I'm having problems installing Postgres and Postgis, the most recent version
> of the manual I can find says:
>
> $ sudo apt install postgis
> $ sudo apt install postgresql-9.1-postgis
>
> This doesn't work any more, Postgis installs but Postgres doesn't, I think
> the relevant file is missing from the repository.
>
> I'm stuck here, can anyone help?
>
> Regards,
> Nick.
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Support - representing a graph in Qgis

2021-02-09 Thread Jorge Gustavo Rocha
Hi,

I second Chris's proposal. Using graphviz python module [1], you can
generate your graph by iterating over the features.

At the end, just call the render and you will get the rendered graph
(just add view=True) within your QGIS environment. You need to know some
Python basic stuff, but not much than the basic.

Regards,

Jorge Gustavo

[1] https://graphviz.readthedocs.io/en/stable/manual.html

Às 18:55 de 09/02/21, chris hermansen escreveu:
> Giacomo and list,
>
> On Tue, Feb 9, 2021 at 8:07 AM Giacomo Uguccioni
> mailto:giacomo.ugucci...@gmail.com>> wrote:
>
> Hello everyone, and thanks for the support.
> If this is not the place to ask for this kind of thing, I ask you
> to give me a link where I could find support.
> I'm a qgis 3.14 user. I would like to represent a tree diagram or
> functional diagram being able to draw the symbology and position
> of nodes and connections from the information contained in the
> attribute table. Example: I would like to represent the medium
> voltage grid of a city as an electrical diagram; I would like to
> represent with lines that join at nodes the roads that connect
> certain houses and schools in a city. So my goal is to be able to
> build a layout with symbology of nodes and connections derived
> from information contained in different shapefiles or within
> features, with a non-geographic but schematic / ideal criterion.
> Do you have any ideas or suggestions on how to do it? I thank you
> for every contribution.
>
>
> Not a QGIS-based solution, but I've used graphviz
> <https://graphviz.org/> to generate graphs from the command line with
> considerable success.  It offers a small but useful programming
> language that can be combined with data in text files in a really
> useful way.
>
> -- 
> Chris Hermansen · clhermansen "at" gmail "dot" com
>
> C'est ma façon de parler.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Support - representing a graph in Qgis

2021-02-09 Thread Jorge Gustavo Rocha
Hi Giacomo,

Maybe it is better to share a sketch of what you want.

0) From the description of your use case, you can use the geographic
position of the nodes, right? You might be able to do what you want just
by creating points where you want to show the grid voltage and then
create direct lines between nodes. If you can display it on the map, you
don't need a graph.

1) Yes, you can use graphviz in the python console.

2) Graphviz does not read shapefiles. You have to iterate over your
layer and generate the corresponding graph nodes and edges.

Regards,

Jorge Gustavo

Às 23:06 de 09/02/21, Giacomo Uguccioni escreveu:
> Thank you guys for the support.
> Could I work with Graphviz in the python console inside Qgis? And does
> Graphviz support shapefiles or similar as an input? 
>
> Il giorno mar 9 feb 2021 alle 20:07 Jorge Gustavo Rocha
> mailto:j...@geomaster.pt>> ha scritto:
>
> Hi,
>
> I second Chris's proposal. Using graphviz python module [1], you
> can generate your graph by iterating over the features.
>
> At the end, just call the render and you will get the rendered
> graph (just add view=True) within your QGIS environment. You need
> to know some Python basic stuff, but not much than the basic.
>
> Regards,
>
> Jorge Gustavo
>
> [1] https://graphviz.readthedocs.io/en/stable/manual.html
>
> Às 18:55 de 09/02/21, chris hermansen escreveu:
>> Giacomo and list,
>>
>> On Tue, Feb 9, 2021 at 8:07 AM Giacomo Uguccioni
>> > <mailto:giacomo.ugucci...@gmail.com>> wrote:
>>
>> Hello everyone, and thanks for the support.
>> If this is not the place to ask for this kind of thing, I ask
>> you to give me a link where I could find support.
>> I'm a qgis 3.14 user. I would like to represent a tree
>> diagram or functional diagram being able to draw the
>> symbology and position of nodes and connections from the
>> information contained in the attribute table. Example: I
>> would like to represent the medium voltage grid of a city as
>> an electrical diagram; I would like to represent with lines
>> that join at nodes the roads that connect certain houses and
>> schools in a city. So my goal is to be able to build a layout
>> with symbology of nodes and connections derived from
>> information contained in different shapefiles or within
>> features, with a non-geographic but schematic / ideal criterion.
>> Do you have any ideas or suggestions on how to do it? I thank
>> you for every contribution.
>>
>>
>> Not a QGIS-based solution, but I've used graphviz
>> <https://graphviz.org/> to generate graphs from the command line
>> with considerable success.  It offers a small but useful
>> programming language that can be combined with data in text files
>> in a really useful way.
>>
>> -- 
>> Chris Hermansen · clhermansen "at" gmail "dot" com
>>
>> C'est ma façon de parler.
>>
>> ___________
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> -- 
> Logo <https://www.geomaster.pt>   
> *Geomaster*
> *Jorge Gustavo Rocha* | Software Engineer
> *e:*j...@geomaster.pt <mailto:j...@geomaster.pt> | *m:*+351 910 333 888
> *g:*41.54094,-8.40490 | *v: *510 906 109
> *a: * Rua António Cândido Pinto, 67, 4715-400 Braga
> 
> <https://www.google.com/maps/search/Rua%0D%0A++Ant%C3%B3nio+C%C3%A2ndido+Pinto,+67,+4715-400+Braga?entry=gmail&source=g>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> -- 
> *Giacomo Uguccioni*
> *Geospatial Data Acquisition & Processing*
> +39 3920431219
> Le informazioni contenute nella presente comunicazione sono riservate
> esclusivamente ai destinatari indicati in epigrafe. La diffusione del
> documento trasmesso da parte di qualsiasi soggetto diverso dal
> mittente e dal destinatario è proibita, sia ai sensi dell’art. 616
> c.p., sia ai sensi del D.Lgs. n. 

Re: [Qgis-user] getting a base map from Mapbox

2021-02-18 Thread Jorge Gustavo Rocha
Hi Stephen,

I worked for me. I added the WMS entry using the browser panel with your
own data. Then I connected and the capabilities were retrieved. I added
the layer and it works.

Did you try the URL on the browser? This should be enough to retrieve
the capabilities using a browser:
https://api.mapbox.com/styles/v1/profsacks/ckl8hw2rm53v918o7e09ig6mq/wmts?access_token=pk.eyJ1IjoicHJvZnNhY2tzIiwiYSI6ImNrbDhnaHFlZTBhb2Yyb25sMThvMTNsd2kifQ.E7N3o-toUEV01DBOt1-FPw&SERVICE=WMS&REQUEST=GetCapabilities

I'm using last QGIS version, but this should work on almost every QGIS
version.

You can see more details about the requests sent to the server by
enabling the panel "Debuggin/Development Tools". The click on the record
button.

Can you try once more? Can you tell us your QGIS version and OS version?

Good luck,

Jorge

Às 22:38 de 18/02/21, Stephen Sacks escreveu:
> For the first time, I'm trying to use a map from Mapbox as a base map
> in QGIS.  I opened an account at Mapbox.com and made a map there using
> their "Satellite streets."    I clicked Publish and chose Publicly
> available.  I copied that map's Style URL and Access token and plugged
> them and my Mapbox username into what I believe is the correct
> endpoint template.  Then back at my desktop QGIS, I clicked  Layer >
> Add Layer >Add WMS/WMTS layer > new .  Then I entered a name and
> plugged in my custom endpoint URL.  Then I clicked OK and saw at the
> bottom "93546 of 93546 bytes of capabilities downloaded."  Then I
> clicked Connect and got the following message:  "Failed to download
> capabilities".
>   I'd be grateful if someone will tell me what I'm doing wrong.   
> Thanks, Steve
>
> Here are the specifics.
> 1. Source of instructions:
>     https://docs.mapbox.com/help/tutorials/mapbox-arcgis-qgis/
> 2. endpoint template from tutorial:
>   
> https://api.mapbox.com/styles/v1/YOUR_USERNAME/YOUR_STYLE_ID/wmts?access_token=pk.eyJ1IjoicHJvZnNhY2tzIiwiYSI6ImNrbDhnaHFlZTBhb2Yyb25sMThvMTNsd2kifQ.E7N3o-toUEV01DBOt1-FPw
>
> 3. endpoint URL with my personal specifics plugged in:
>   
> https://api.mapbox.com/styles/v1/profSacks/ckl8hw2rm53v918o7e09ig6mq/wmts?access_token=pk.eyJ1IjoicHJvZnNhY2tzIiwiYSI6ImNrbDhnaHFlZTBhb2Yyb25sMThvMTNsd2kifQ.E7N3o-toUEV01DBOt1-FPw
>      
> 4. error message:
>  Failed to download capabilities:  Download of capabilities
> failed: Error transferring
> https://api.mapbox.com/styles/v1/profsacks/ckl8hw2rm53v918o7e09ig6mq/wmts?
> access_token=pk.eyJ1IjoicHJvZnNhY2tzIiwiYSI6ImNrbDhnaHFlZTBhb2Yyb25sMThvMTNsd2kifQ.E7N3o-toUEV01DBOt1-FPw&SERVICE=WMS&REQUEST=GetCapabilities
> - server replied: Not Found
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS 3.10 Repository Ubuntu

2021-02-24 Thread Jorge Gustavo Rocha
Hi,

Version 3.10 is in Ubuntu repo. If I do a simple apt policy qgis the
packages are there.

$ apt policy qgis
qgis:
  Instalado: (nenhum)
  Candidato: 1:3.18.0+32focal
  Tabela de Versão:
 1:3.18.0+32focal 500
    500 https://qgis.org/debian focal/main amd64 Packages
 3.10.4+dfsg-1ubuntu2 500
    500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

So, you just have to do:

sudo apt install qgis=3.10.4+dfsg-1ubuntu2

Regards,

Jorge

Às 10:42 de 24/02/21, Klaus Mithöfer escreveu:
> Dear list,
>
> I would like to install the previous QGIS LTR 3.10 on my Ubuntu
> system. Is a repository for that version still available?
>
> Thanks a lot!
>
> Kind regards
>
> Klaus
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*j...@geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


  1   2   >