[Qgis-user] Exception: IllegalArgumentException: Cannot get offset of single-vertex line

2016-09-21 Thread Robin Paulson
I repeatedly get this error message in the GEOS log window when I use 
the qgis2threejs plugin to render a model of my project.
Exception: IllegalArgumentException: Cannot get offset of single-vertex 
line


As far as I'm aware, I don't have any single-vertex lines; is there any 
way to check easily?


The same project often fails to render, with the following message:
TypeError: QgsNullSymbolRenderer.symbolForFeature(QgsFeature, 
QgsRenderContext): not enough arguments


I wonder if the two are related or coincidental?

I have raised an issue on the qgis2threejs project page.

Does anyone have any ideas?

Cheers,

--
robin
___
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] rendering raster tiles from qgis; best solution?

2016-09-05 Thread Robin Paulson

hi folks,
i would like to make some raster-based leaflet/openlayers web maps for a 
couple of projects i'm working on at the moment and would appreciate 
some suggestions on the best way to go about it.


the projects are both small, the largest is 2km x 2km, with zoom from 
15-23 required. they are stored in postgis and spatialite databases.


i have tried qtiles and qmetatiles (a fork of qtiles), but both suffer 
from the same buggy rendering artefacts at zoom levels greater than 20. 
does anyone have any suggestions for alternatives? it need not be a qgis 
solution, i'm willing to consider something which connects directly to 
the databases. a mapnik render-on-request stack is probably more 
complicated than i'm willing to do. someone suggested using gdal2tiles, 
but i didn't get very far when i investigated, it appeared vastly more 
complicated than necessary the more i dug into it; that may be a 
consequence of my lack of knowledge.


i also tried qgis2web, but the qtwebkit bug discounts that tool.

cheers,

--
robin
___
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] error 50 : internet error

2016-09-01 Thread Robin Paulson

On 2016-09-01 15:56, Ronen Pelleg wrote:

getting this error when trying to download map files


where are you getting the map files from?

is your internet connection ok?

try accessing the map files from some other source, e.g. if they are 
openstreetmap files, see if you can access openstreetmap.org


--
robin
___
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] Malfunction of QTiles

2016-09-01 Thread Robin Paulson

On 2016-09-01 23:10, massimiliano crea wrote:

Hello, I'm a Qgis user for several years. Use the program to create
maps to be printed on paper. Now I created a map using OSM map data
and official of my region, working with raster and vector. I use Qgis
2.14.3 and I'm using QTiles to realize tiles for a publication on the
web. My problem is that the labels do not fit between the various
tiles. Simulating the collage of adjacent tiles, the labels are all
fragmented. How can I fix?

Can you give me some guidance?


firstly, could you create a new email thread if you want to discuss a 
new topic? merely changing the "subject" line after hitting "reply" 
breaks the threading for those of us that use it. maybe yahoo and 
certainly google mail will break it even more to make an attempt to 
describe it correctly, so you may not see this problem.


secondly, there are a few bugs in qtiles, take a look at 
https://github.com/nextgis/QTiles/issues . this is because it is 
relatively new, experimental software. i also have the bug you 
described, probably others have too.


--
robin
___
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] "live" openstreetmap data in qgis

2016-09-01 Thread Robin Paulson

On 2016-09-01 22:00, Paolo Cavallini wrote:
If your data is not that big, you could use QuickOsm processing 
scripts

to automate this a bit ( and use a macro at project opening to launch
the processing model you have build combining QuickOsm algs and others
more generic algs to do the job.)
If QuickOsm lacks some features, you should improve this plugin 
instead

of creating a new one, IMHO.


Agreed, the "live update" could be a very nice addition to QuickOSM
plugin IMHO.
All the best.


i agree with both of you in principle. it depends upon the state of the 
plugin i guess and the response of the maintainers to pull requests.


can you go into detail or point me to info about "QuickOsm processing 
scripts"? i know of quickosm, but not the script side of it. i looked at 
that plugin before writing the first email; i must have missed some key 
functionality.


cheers for the pointers,

--
robin
___
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] "live" openstreetmap data in qgis

2016-08-31 Thread Robin Paulson

On 2016-09-01 10:04, Robin Paulson wrote:

On 2016-08-29 04:24, Etienne Trimaille wrote:

You have to set up a database with the OSM diff to get an up to date
OSM database. Then you can add your PostGIS layers in QGIS.

You can have a look to this docker project :
https://github.com/kartoza/docker-osm [2]
These OSM layers are updated every two minutes by default, and you can
see these layers in QGIS.


that's excellent, i'll take a look at that, cheers.

in answer to the original question of use case:
i and others are continually adding data to osm in a particular area
which interests us, and using that data in our qgis project. we wish
to keep track of that data and how it relates to other (non-osm) data
in our qgis project. we have found it is easiest to visualise this
within the qgis project.

--
robin
___
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] "live" openstreetmap data in qgis

2016-08-31 Thread Robin Paulson

On 2016-08-29 02:56, Greg Troxel wrote:

Robin Paulson <ro...@bumblepuppy.org> writes:


at the moment there are various ways to add openstreetmap data to
qgis. as far as i can tell, they all rely upon downloading a
.osm/obf/pbf file in some semi-automated way and importing it. none of
the existing tools allow for any existing data to be deleted and
replaced with the new.

what i would like to do is add a "live" layer to my qgis projects,
such that any data is periodically and transparently re-downloaded and
updated. for those of you who are familiar with JOSM, this would be
similar to the "continuos download" [sic] plugin for that software.


Two thoughts (and note that I don't use qgis yet, but do map for OSM):

  OSM resources can be somewhat easily overwhelmed, so some care in
  understanding the load put on servers is in order, unless you are
  talking about downloading from someplace outside of OSM that you're
  paying for access, etc.


the data we are getting is currently around 1MB of .osm files. we may 
get more in future, but nowhere near enough to cause any problems.



  People sometimes import OSM into postgis, and then apply
  daily/hourly/minutely diff files to keep their database up to date.
  Doing this and having qgis operate from the live database seems like 
a

  plausible way to do what you want.  A local database could also
  support other uses such as tile generation.


yep, the workflow at the moment is to periodically use osm2pgsql to 
import new overpass-sourced data into postgis, but it's fiddly and 
requires me to maintain sql (i hate sql...) statements to process the 
data correctly, set up primary keys, maintain .style files, etc.


i was hoping for something in existence already. maybe i build a thing 
myself out of my kludgy scripts and publish it.


--
robin
___
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] "live" openstreetmap data in qgis

2016-08-27 Thread Robin Paulson
at the moment there are various ways to add openstreetmap data to qgis. 
as far as i can tell, they all rely upon downloading a .osm/obf/pbf file 
in some semi-automated way and importing it. none of the existing tools 
allow for any existing data to be deleted and replaced with the new.


what i would like to do is add a "live" layer to my qgis projects, such 
that any data is periodically and transparently re-downloaded and 
updated. for those of you who are familiar with JOSM, this would be 
similar to the "continuos download" [sic] plugin for that software.


so, any suggestions?

at present, the only solution i have is a script which runs every n 
minutes/hours to download the requisite area (based upon the boundary of 
the qgis project), deletes the contents of the existing .osm layer and 
then imports the new data. i'd like to know if anyone has other ideas or 
can point me to existing functionality/plugins.


cheers

--
robin
___
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] defining a variable width vector style

2016-08-16 Thread Robin Paulson

On 2016-08-15 08:16, Tom Lennon wrote:

It appears that you can make arrows with tapered shafts.
The shafts hasve start and end width settings and the heads could be
set small.
The shafts can also follow curved lines.
Haven't tried it yet


yep, that worked. cheers Tom.

unfortunately i realised there's a further problem: my style is more 
complicated than a simple line, so it doesn't quite work as i need. i 
may have to dive into python. can anyone recommend any good tutorials 
for getting started with qgis styles and python?


--
robin
___
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] defining a variable width vector style

2016-08-12 Thread Robin Paulson

hi folks,
i'm trying to define a style which varies along the length of the line 
it's applied to, according to the position along that line. at the 
moment, as far as i can see, all styles are continuous along the line


so, for example let's say i want the line to be drawn as a cone, i would 
define the width of the style as proportional to the position on the 
line.


something like: line_width = line_pos x 0.1

at the start of the line, the width of the style should be 0m
1m along the line, the width should be 0.1m
1.5m along the line, the width should be 0.15m
10m along the line, the width should be 1m
and so on

any ideas about the best way to do this?

i considered adding a *lot* of nodes and varying the width in small 
steps at each node, but that would be clumsy and fiddly.


cheers,

--
robin
___
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] How to sort integer value in attributes table

2016-08-12 Thread Robin Paulson


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2016-08-12 20:24, Amedeo Fadini wrote:

Hi everybody, don't know if it's been in this way from the beginning,
but today I've noticed that I'm not able to sort the attribute table
by a numeric value: it's always managed as a text.


...


I'm using Qgis 2.16.0-Nødebo rev  2f9ed29 GDAl 1.10 on Debian 8
Is it normal or is a issue? Anybody can confirm?


yep, i got this too. all attributes do this on my system, real, integer, 
etc.


- --
robin
-BEGIN PGP SIGNATURE-
Version: Mailvelope v1.5.1
Comment: https://www.mailvelope.com

wsBcBAEBCAAQBQJXrYljCRDpJZZoBiZO6QAAS6gH/37ZcASI7CXG5c5L5tuc
Dwm2nYOnMQ0vfFbB/7fkX9Vx2mF9AmF/9irf1hnDI4/dJn71uz9tozYa+XNM
nL04FrFFUlq0Lny6qOpa0Xk+/saTn3BMciKiaGqFgKUxYpg3mDWWVKcTysvD
0Abixf4yLVIKkwHCfDB27s59kPOD2mDYszpzYRSyKnbILKJFeflKZkushfgQ
IAw8+NkdCiTtJ01YZPjjLX4LVxD0eO1jZ3eO2PwxKoepJT6Eeav2I06ylx8O
TJ6eUscngeBYYxbIT0lAgbrVbdrFTo6Z1WmA1TtlWSj8XnOzfWPik4UaWsnK
mivBLHX8HJzEtEGihRrHoqs=
=P9pO
-END PGP SIGNATURE-

___
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