[Qgis-user] MetaSearch error on launch with clean install

2018-11-16 Thread knussear
Hi All just installed 3.4 on a clean machine. On launch I'm getting the error

Couldn't load plugin 'MetaSearch' due to an error when calling its
classFactory() method 

Any idea how to fix this?

THX



--
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

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

2018-11-16 Thread Frederico dos Santos Soares
Hi everybody. We are working on a research project using QGIS and 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

Re: [Qgis-user] Plugin development - pyrcc4

2018-11-16 Thread Matthias Kuhn
Hi Frederick,

You might consider to not use resources at all and just put any file as
is into the plugin.

This works very well and makes deployment much easier.

Matthias

On 11/16/18 5:58 PM, Frederick Powers wrote:
> Greetings, 
>
> Are there any alternatives to using pyrcc4 for compiling resource
> files that do not require command line access?
>
> This is on Windows with QGIS 2.18.
>
> 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
-- 
Matthias Kuhn
matth...@opengis.ch 
+41 (0)76 435 67 63 
OPENGIS.ch Logo 
___
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] Plugin development - pyrcc4

2018-11-16 Thread Frederick Powers
Greetings,

Are there any alternatives to using pyrcc4 for compiling resource files
that do not require command line access?

This is on Windows with QGIS 2.18.

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

Re: [Qgis-user] Aligning georeferenced USGS historical map

2018-11-16 Thread Andre Joost

Am 16.11.18 um 14:36 schrieb Andreas Plesch:

Looking at

https://ngmdb.usgs.gov/img4/ht_icons/Browse/CA/CA_Tamalpais_301790_1897_62500.jpg

 there is a note in the lower right corner:

Polyconic projection. To place on North American datum, move
projection lines 690 ft south and 320 ft west.

https://en.m.wikipedia.org/wiki/American_polyconic_projection

explains the projection.

Unfortunately, the map does not mention which central meridian was
chosen for the projection. It may be possible to find if at the time
a single one was used for all of CA and what it would be.



Maybe related: 
https://www.usgs.gov/faqs/why-are-historic-maps-referenced-outdated-datums


Following that, the central meridian of the polyconic projection goes 
through the center of the map quadrangle.


HTH,
Andre Joost

___
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] Aligning georeferenced USGS historical map

2018-11-16 Thread Andreas Plesch
Looking at

https://ngmdb.usgs.gov/img4/ht_icons/Browse/CA/CA_Tamalpais_301790_1897_62500.jpg

there is a note in the lower right corner:

Polyconic projection. To place on North American datum, move projection
lines 690 ft south and 320 ft west.

https://en.m.wikipedia.org/wiki/American_polyconic_projection

explains the projection.

Unfortunately, the map does not mention which central meridian was chosen
for the projection. It may be possible to find if at the time a single one
was used for all of CA and what it would be.

It should also be straightforward to determine if proj  and therefore qgis
supports the polyconic projection. It probably does.

With that you can define a custom projection. Perhaps there is an EPSG code
but I could not find it.

EPSG 9818 seems to encode this projection although it does not seem to
include the actual method in the registration.

After you have defined a closely matching projection, you can translate the
minute grid points to projected coordinates and georeference.

The other mystery is the note about the datum shift. What are projection
lines and what datum is used for the printed map ? The mentioned North
American datum may be NAD27.

Andreas


From: Morgan Fletcher 

> To: qgis-user@lists.osgeo.org
> Subject: [Qgis-user] Aligning georeferenced USGS historical maps
> Message-ID:
> <
> capwdt1u+tme7cjr4gf63e13mpapywo9nsbzochj2r8ng80d...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I am new to GIS, an amateur who is curious about old roads. I have QGIS
> 3.4.0 installed on OS-X 10.13.6 using the pre-built binaries available from
> https://download.qgis.org/. If I visit the USGS topoView
>  page and download a historic map, for
> instance the geotiff archive from Tamalpais, CA 1897 (1950 ed.)
> , I can add
> a
> raster layer with the .tif file from the archive and it will be placed in
> rough correspondence with a base map in my QGIS project. In my case my
> basemap is OpenStreetMap. (crs=EPSG:3857&format&type=xyz&url=
> http://a.tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png&zmax=19&zmin=0
> )
> The problem is that the maps don't line up, visually. For example:
>
>
>  Screen Shot 2018-11-02 at 8.51.02 AM.png
> <
> https://drive.google.com/a/hahaha.org/file/d/0B-OybZpGWIkHUWhuWEZLS2xWZEhTUC1MMkN4X2dfZGkxQm1J/view?usp=drive_web
> >
>
>
> I can solve it better with georeferencer. Before I viewed Hans van der
> Kwast's excellent Georeferencing a scanned map and digitizing vectors in
> QGIS  video, I simply started finding common
> points; now I understand that using the correct CRS, projection and the
> grid is perhaps perhaps the best strategy.
>
> My questions are:
>
>
>- If I download a geotiff archive from topoView, is QGIS 3.4.0 correctly
>parsing the data in the .tif file, or the other files (.prj, .tfw) in
> the
>extracted directory, and placing the map correctly? Can it be adjusted
> to
>align better, and if so, how?
>- Should I use EPSG:26710 for the Tamalpais
> map, and
>attempt to georeference it myself, using its minute grid? Why does the
> map
>border show a skew at the top left and right corners? (see below)
>- I have found that, to get a hand-drawn, antique map to align with a
>modern base map, I often have to add so many points in georeferencer
> that
>the rendered map has to be very distorted. What is the best method to
> get
>old maps to line up, so that historical roads can be related to modern
>roads?
>
> Skew mentioned in second point:
>
>
>  Screen Shot 2018-11-08 at 8.20.56 AM.png
> <
> https://drive.google.com/a/hahaha.org/file/d/0B-OybZpGWIkHeEE0aDMyQVFCZ0F1R01pRGhKeEJVTzYxaEpj/view?usp=drive_web
> >
>
>
> I couldn't find a searchable archive of qgis-user; my apologies if these
> are already answered somewhere. I did ask a variation of these questions on
> StackExchange
>  >,
> where it was heavily edited by 'Vince', and has no answers after a week, so
> asking here.
>
> Morgan
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-user/attachments/20181108/3300eb80/attachment.html
> >
>
> --
>
> Subject: Digest Footer
>
> ___
> 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
>
> --
>
> End of Qgis-user Digest, Vol 153, Issue 23
> **
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/m

[Qgis-user] Auto Updating Virtual Layer

2018-11-16 Thread Tyler Veinot
I am trying to make a pie chart that only compares feature attributes of
the features in the current extent. My first approach was to make a python
function that returned the current extent as a polygon and use that returns
with the within function. Unfortunately the python function only returns an
extent if I go in and click the load button. If I move the extent I have to
reload the python script to get my new extent. This wont work well for my
purposes, so now I am thinking about a virtual layer as an attribute table
that only contains features in the current extent. Has anyone done
something similar with a virtual layer that could help me, I cannot find an
sql command that returns the map canvas. My data is in postgresql.
Thanks;
Tyler
___
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-Developer] QGIS Processing "R" Provider -- 3.x beta available

2018-11-16 Thread Tim Sutton
Hi

Tested here on macOS QGIS 3.4.1 (Williams build) here:

I installed R.app into /Applications

I unpacked the plugin and in settings for processing providers set my R folder 
like this:

/usr/local/bin/

To test I ran the R-> test processing module but couldn’t actually figure out 
how to provide it the inputs it needs to run. Can someone share a ‘hello’ world 
R processing module that I can use to test more completely?

It might be good to add my notes about paths above  to your README for the 
plugin because I first tried to use the R executable in 
/Applications/R.app/Contents/MacOS but that one won’t work.


Regards

Tim

> On 16 Nov 2018, at 00:49, Alex Mandel  wrote:
> 
> Nyall,
> 
> I can confirm the plugin loads without error on QGIS 3.4.1, Ubuntu 16.04
> I'll need to find an R script or two to test with.
> 
> Thanks this is very appreciated,
> Alex
> 
> On 11/15/18 14:34, Nyall Dawson wrote:
>> Hi lists,
>> 
>> Just a quick announcement that the Processing provider for R scripts
>> in QGIS, which was dropped for QGIS 3.0, is now available as a beta
>> for QGIS 3.4. It's now published as a standalone plugin which must be
>> manually installed (together with manual installation of the
>> underlying R software!).
>> 
>> This is a pre-release beta version only -- the script syntax may
>> change in the final release, so be warned that you may need to update
>> scripts as a result. But the good news is that this should be 100%
>> compatible with Processing R scripts from 2.x, with no change required
>> to the scripts!
>> 
>> To reflect its beta status, the plugin is currently only available via
>> manual download from GitHub, and isn't (yet) available via the
>> standard QGIS plugin repository. To install, download the zip release
>> from https://github.com/north-road/qgis-processing-r/releases/tag/v0.0.2,
>> and then install via the Plugins -> Manage and Install Plugins >
>> Install from ZIP tab. After the plugin is installed you'll need to
>> enable the provider via the Settings > Options > Processing >
>> Providers > R > Activate checkbox.
>> 
>> Testing feedback is sought and very welcome -- just file issues on
>> https://github.com/north-road/qgis-processing-r/issues with a detailed
>> description of any issues you encounter.
>> 
>> This release was made possible thanks to a funding grant by QGIS.org.
>> 
>> Regards,
>> Nyall
>> ___
>> QGIS-Developer mailing list
>> qgis-develo...@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> 
> 
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

—








Tim Sutton

Co-founder: Kartoza
Ex Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

___
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] WMTS fail on loading - QGIS 3.4

2018-11-16 Thread Michel Stuyts
Did you set your own API token, because the word YOUR_API_TOKEN in the uri in 
the error suggests you didn't.


Michel

Van: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] Namens Ian Reese
Verzonden: vrijdag 16 november 2018 0:30
Aan: qgis-user@lists.osgeo.org
Onderwerp: [Qgis-user] WMTS fail on loading - QGIS 3.4

Hi QGIS

I'm currently using QGIS 3.4, on Windows 7.

I am getting an error when I try to connect to a WMTS layer:

Invalid Layer: Raster layer Provider is not valid (provider: wms, URI: 
SmoothPixmapTransform=1&contextualWMSLegend=0&crs=EPSG:2193&dpiMode=7&featureCount=10&format=image/png&layers=set-4702&styles=style%3Dauto&tileMatrixSet=EPSG:2193&url=https://data.linz.govt.nz/
 services;key=YOUR_API_TOKEN/wmts/1.0.0/set/4702/WMTSCapabilities.xml

The sample WMTS can be accessed here:
https://data.linz.govt.nz/set/4702-nz-aerial-imagery/webservices/

I tested the same WMTS connection using QGIS 2.18, 2.6 and ArcMap also and 
received no error.

The WMTS connection shows an error no matter what layer I try to access from 
our data service.

If I use an a connection from outside our data service: 
https://tiles.maps.linz.io/nz_colour_basemap/WMTSCapabilities.xml, everything 
works fine

Cheers,

Ian C Reese
Senior Spatial Analyst
Location Information Data Services

E  ire...@linz.govt.nz | DDI 04 6504

Wellington Office, Level 7, Radio New Zealand House, 155 The Terrace
PO Box 5501, Wellington 6145, New Zealand | T 04 460 0110
W  www.linz.govt.nz | 
www.landonline.govt.nz | 
data.linz.govt.nz




This message contains information, which may be in confidence and may be 
subject to legal privilege. If you are not the intended recipient, you must not 
peruse, use, disseminate, distribute or copy this message. If you have received 
this message in error, please notify us immediately (Phone 0800 665 463 or 
i...@linz.govt.nz) and destroy the original message. 
LINZ accepts no responsibility for changes to this email, or for any 
attachments, after its transmission from LINZ. 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

Re: [Qgis-user] Fwd: qgis - v.vol.rst from grass

2018-11-16 Thread Luigi Pirelli
follows these steps

1) install plugin "reload" that allow you to reload plugin (e.g.
processing) without restart qgis... this is useful to test your algoritm.
Btw, for the nature of some temporary path classes in aprocessing, the
plugin would continue to generate temporary stuffs in the session id of the
previous processing session... in few word, reload processiong can have
some side effects. btw this are side effects only for developers

2) clone the qgis code in https://github.com/qgis/QGIS
3) read carefully the guide in:
https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/grass7.txt
(r in your local clone)
4) find a similar grass algoritm to that has similar input or output
prameters => step 5
5) check how the interface is specified in one of descriptors in
https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/description
6) generate you new alg descriptor in
https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/description
7) copy the entire directory in the your local plugin directory (depends on
platform) or do a link directly to
https://github.com/qgis/QGIS/blob/master/python/plugins/processing/
8) reload processing plugin (or restart qgis) and test
9) open
https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/TODO.md
10) repeat from 6 until TODO list is empty ;)

cheers and thanks to add support to another algorithm... as you can see any
qgis user can develop the correct interface to grass algorithms giving an
important contribution to the community.

Luigi Pirelli

**
* 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
* Hire me: http://goo.gl/BYRQKg
**


On Fri, 16 Nov 2018 at 01:38, Francois Chartier 
wrote:

> Hi
>
> I am not a coder but i have some time and perseverence to integrate this
> module in qgis, but I would need guidance. Is anybody interested?
>  This tool would be great for a lot of discipline in environmental, soil
> sciences etc.
>
> On Mon, Oct 29, 2018, 04:12 Luigi Pirelli 
>> Hi Francois
>>
>> is it just matter to create appropriate algorithm descriptop in qgis
>> core? e.g. doing a Pull Request (with tsts) to have the algoritym supported?
>>
>> This guid sould give you the appropriate hints
>> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/grass7.txt
>> and obviously all the descriptors available in:
>>
>> https://github.com/qgis/QGIS/tree/master/python/plugins/processing/algs/grass7/description
>>
>> this is one of the QGIS part where users can help a lot adding new
>> backend algorithms with related tests. To create tests for a not tested
>> algorithms please see this guide:
>>
>> http://www.opengis.ch/2016/02/04/increasing-the-stability-of-processing-algorithms/
>>
>> a TODO list for grass is here:
>>
>> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/TODO.md
>>
>> regards
>>
>> Luigi Pirelli
>>
>>
>> **
>> * 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
>> * Hire me: http://goo.gl/BYRQKg
>>
>> **
>>
>>
>> On Sun, 28 Oct 2018 at 16:01, Francois Chartier 
>> wrote:
>>
>>> Hi
>>>
>>> Is the plugin v vol rst available from within qgis?  i didnt see it in
>>> the list of vector plugin from grass.
>>> i am looking for a 3d interpolator and i believe only grass can do this
>>> in open source.
>>> Are there other plugins that can do 3d interpolation?
>>> by 3d i am not referring to interpolation of elevation, but by
>>> interpolation of 3d dataset with xyz + attribute (ex: soil moisture), with
>>> data points vertically stacked, and would need to interpolate verically and
>>> horizontally.
>>>
>>> thks
>>> f
>>> ___
>>> 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-u