Profile cover photo
Profile photo
Mark Percival
Just me!
Just me!
About
Posts

I'm looking to start a default project on qgis startup - can anyone point me in the right driection - looking at cmd line to do this.

Post has attachment
Another one for you regarding Postgis. I have a default style for a layer stored in the layer_styles table in the public schema and this changes fine if I open the layer as postgres user (which I use for editing).

However, when opened using the read-only user, it won't pick up the updated style and it won't let me pick the style from the database - I get this error:

Any ideas?
Photo

I have migrated my OSMM to PostGIS and indexed the geom column etc. and all works fine but the load time when opening is really slow! Redraw is ok so it looks like initial loading is the problem - whatever the scale.

Anyone got any tips for making it fast(er) as the same data in mssql is lightning fast (I hate to say that!)?

I have a 1kmx1km grid covering the borough and I have created an atlas to print a page for each grid square (with annotations) but I only want to print those grids that intersect with the borough boundary. I don't want to mess with the grid file (it covers a rectangle so quite a few outside the borough).

Can I specify this in the Atlas feature to only print those intersecting?

I'm writing a plugin using plugin builder and I have to compile it using this: pyrcc4 -o resources.py resources.qrc but I get an error:

'pyrcc4' is not recognized as an internal or external command,
operable program or batch file.

I'm stumped as to how I proceed - searched the web and there are a number of "fixes" but I don't really know where to go from here!

Can anyone help?

Post has attachment
Has anyone had an issue with virtual tables? I get an error with all queries now. Example Select * From RoadLink
Iget this even if I enclose the layer name in quotes. I've tried on many different layers and keep getting similar errors!
Using 2.18.14

I get the same thing in DB Manager also:
SELECT "RoadLink".*
FROM "RoadLink"
returns:
"Query execution error on DROP TABLE IF EXISTS "RoadLink"; CREATE VIRTUAL TABLE "RoadLink" USING QgsVLayer(RoadLink20171115154241820);: 1 - near "text": syntax errorB"
Photo

I've just had QGIS crash (as it is want to do!) and now the processing plugin won't load and says it is broke.

Tried unistalling/reinstalling (via OSGeo4w) to no avail. I'm also missing a lot of the vector functions on the vector menu.

The stack trace is:

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

ImportError: cannot import name uic
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 333, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\__init__.py", line 37, in classFactory
from processing.ProcessingPlugin import ProcessingPlugin
File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\ProcessingPlugin.py", line 38, in
from processing.gui.ProcessingToolbox import ProcessingToolbox
File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py", line 31, in
from qgis.PyQt import uic
ImportError: cannot import name uic


Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]


QGIS version: 2.18.11 Las Palmas, 29548e7

Any help much appreciated.

Those who use virtual tables may have come across this before but I have an issue (tested on lots of different tables) whereby creating a VT, selecting an object from that layer on the map, selects a completely different record in the VT browser.

I think this may be a bug but before I report it as such is there anyone who can confirm this and replicate the behavior?

Thanks

Those who use virtual tables may have come across this before but I have an issue (tested on lots of different tables) whereby creating a VT, selecting an object from that layer on the map, selects a completely different record in the VT browser.

I think this may be a bug but before I report it as such is there anyone who can confirm this and replicate the behavior?

Thanks

Question....we use unc paths and I need to train my users in environment services to associate doucments (normally pdf's) with a layer, using 'Actions'.

I'm doing this by having the unc path as an attribute - fine. However, if I need to update the attribute of a number of records with the same path, I select the records, put the path in the box and click 'update selected' but this sees the backslash as an escape character and replaces it with a '?'!

Other than editing the path so that I escape the escape character, how can I update many records with the correct path - layer is set to UTF-8 so that's not an issue?
Wait while more posts are being loaded