[Qgis-user] QGIS User Conference 2024 - registration open

2024-04-29 Thread Martin Dobias via QGIS-User
Hi all

Just a quick note that tickets for this year's User Conference are now
available!

You can get your ticket on the web site of the conference:
https://uc2024.qgis.sk/

There are two newly added pages on the site:
- tentative schedule - https://uc2024.qgis.sk/schedule/
- practical info when attending - https://uc2024.qgis.sk/attending/

We are now in the process of going through the submitted talks and
workshops - there are over 80 proposals! We would like to publish the
program sometime in May. Most likely we will be running talks in three
rooms in parallel, plus workshops in three more rooms.

See you in Bratislava!

Regards
Martin (on behalf of the local organizing committee)
___
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] QGIS User Conference - call for papers ends soon

2024-03-27 Thread Martin Dobias via QGIS-User
Hi everyone!

Just a friendly reminder that call for papers (talks/workshops) for this
year's QGIS User Conference will be closing 31st of March, so if you plan
to submit a proposal, there are only few days left!

Conference website: https://uc2024.qgis.sk/

Submission of proposals: https://talks.osgeo.org/qgis-uc2024/cfp

Looking forward to seeing many of you in Bratislava!

Regards
Martin
___
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] QGIS User Conference: Call for papers + Call for sponsors

2024-02-19 Thread Martin Dobias via QGIS-User
Hi everyone!

This is a quick note that call for papers for QGIS User Conference
2024 is now open - deadline for submissions is 31 March 2024. See more
details on the web site:
https://uc2024.qgis.sk/call-for-papers/

We have also started call for sponsors, with sponsorship opportunities
at various levels. More details here:
https://uc2024.qgis.sk/sponsors/

Please help us spread the word and share the links in your networks - thanks!

Regards
Martin
___
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] QGIS User Conference 2024 & Contributor Meeting

2024-02-01 Thread Martin Dobias via QGIS-User
Join us for the biggest QGIS event of the year!

QGIS User Conference 2024 site is up: https://uc2024.qgis.sk/

We are happy to announce that the QGIS User Conference will take place 9-10
September 2024 in Bratislava, Slovakia! The conference will take place at
the Faculty of Civil Engineering at Slovak Technical University. The
contributor meeting will follow on 11-13 September at the same venue.

The event is being organized by the Slovak QGIS user group in collaboration
with the Faculty of Civil Engineering STU, with support from the QGIS core
project.

About the User Conference:

The QGIS User Conference is the premier event for QGIS users and
developers. It is a great opportunity to learn about the latest features
and developments in QGIS, network with other users, and share your
knowledge.

Registration & Call for Papers will be announced in the coming weeks.

About the Contributor Meeting:

QGIS Contributors Meetings are volunteer-driven events where contributors
to the QGIS project from around the world get together in a common space.
During these events, contributors to the QGIS project take the opportunity
to plan their work, hold face-to-face discussions and present new
improvements to the QGIS project that they have been working on. Everybody
attending the event donates their time to the project for the days of the
event.

Registration for the Contributor Meeting is available on GitHub:

https://github.com/qgis/QGIS/wiki/27th%E2%80%90Contributor%E2%80%90Meeting%E2%80%90in%E2%80%90Bratislava

Stay tuned for more news and we hope to see you there!

If you have any questions, please feel free to reach out to uc2...@qgis.sk

Regards

Slovak QGIS User Group
___
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] Lidar download

2021-03-05 Thread Martin Dobias
Hi

On Fri, Mar 5, 2021 at 3:13 AM Nicolas Cadieux 
wrote:

>  LiDAR is new in QGIS and i’am not sure what files formats are supported
> yet.  I had trouble with the current version.  It did show support for a
> json file format but I expect the las/laz format support will pop up once
> the bugs are worked out.  In the mean while, I would use CloudCompare
> (OpenSource) to read the cloud and create the DEM.  Then, you could import
> the DEM into QGIS to extract the contour lines.
>

QGIS 3.18 does support LAS/LAZ format to load point cloud datasets. The
problem is that some installers for some platforms (most notably the
Windows installer) do not include the PDAL library needed to read LAS/LAZ
files. There is now an experimental alternative installer which includes
also PDAL library and thus it can read LAS/LAZ files too:
https://qgis.org/downloads/QGIS-OSGeo4W-3.18.0-1.msi

Please note that 3.18.0 release has been pulled back few days ago because
of several major bugs, so please consider this as a testing release where
some things may not work.

Regards
Martin
___
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.18.0 and QGIS 3.14.4 (LTR) packages released and OSGeo4W reboot

2021-02-23 Thread Martin Dobias
Hi Jürgen

Great - thanks a lot for all your efforts!

As for PDAL / point clouds, during the development the initial requirement
for PDAL 2.2 has been later dropped to PDAL >= 1.7:
https://github.com/hobu/untwine/commit/5d83f32f81aa461a9b12f1084197aa7af5f8ec19

The current windows standalone QGIS installer is currently unable to open
LAS/LAZ files, which is confusing to users... Would it be possible to
compile QGIS with PDAL 1.8 (which is already included in osge4w packages) ?
There should be hopefully no code changes necessary. Howard says PDAL 1.8
is quite old and has some bugs, but that's still better than no LAS/LAZ
support at all :-)

Regards
Martin


On Tue, Feb 23, 2021 at 5:37 PM Jürgen E. Fischer  wrote:

> Hi there,
>
> I'm happy to announce that the QGIS packages of 3.16.4 (LTR) 'Hannover'
> and the
> our latest release 3.18.0 'Zürich' are ready on
> https://qgis.org/de/site/forusers/download.html.  This includes Linux,
> Mac and
> Windows packages.  With the availability of a new regular release the
> current
> long-term release 3.16 replaces the previous long-term release 3.10 in the
> long
> term package repositories.
>
> The Windows standalone installer are as usual made from the OSGeo4W
> packages.
>
> In OSGeo4W there has lately been a big effort to reboot it, meaning that
> it has
> been completely rebuilt using newer source versions of mostly every
> package
> using a newer compiler.  As this happened shortly before the QGIS release
> the
> new packages are still in a separate repository for testing.
>
> You can install them using the osgeo4w installer on
> http://download.osgeo.org/osgeo4w/testing/osgeo4w-setup.exe (note the
> testing -
> the old installer will also work, if you point it to the new site, but it
> will
> default to the old).
>
> Within the reboot a lot of old packages were dropped (including
> dependencies to
> old microsoft runtimes), new packages were introduced and also package
> names
> were revised.
>
> Long story short: you cannot upgrade from old installs and have to remove
> and
> reinstall or use a separate directory.  As the new OSGeo4W only supports
> 64bit
> the default root directory was changed to C:\OSGeo4W, which might help with
> that if you were on 64bit earlier.
>
> Also note that it now only has one version of Python - namely 3.9, which
> doesn't support Windows 7 anymore.  Other updates include Qt 5.15, GDAL
> 3.2,
> PROJ 7.2 and SAGA 7.8.
>
> It also has PDAL 2.2 which is required for native support of point clouds
> in
> QGIS - something that you find lacking in the "old" OSGeo4W repository and
> in
> turn in the current standalones.
>
> The new installer also doesn't require administrator privileges anymore.
> Unless you run it elevated (ie. as Administrator) the option to create
> shortcuts for all users will be unavailable.
>
> The testing repository will eventually replace the old repository and also
> be
> used to make standalone installers.   As it has grown to exceed the 2GB
> limit
> of NSIS the standalone installers will then be switched to MSI.
>
> The package recipes currently reside at https://github.com/jef-n/OSGeo4W.
>
> Please test and report packaging issues to the OSGeo4W TRAC at
> https://trac.osgeo.org/osgeo4w.
>
>
>
> Jürgen
>
> --
> Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
> Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
> Software Engineer   D-26506 Norden
> https://www.norbit.de
> QGIS release manager (PSC)  GermanyIRC: jef on FreeNode
> ___
> 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] Dropping the extra label placement algorithms?

2019-07-29 Thread Martin Dobias
Hi Nyall

On Fri, Jul 26, 2019 at 4:40 AM Nyall Dawson  wrote:
>
> Hey lists
>
> This was first discussed back in 2016 (see
> http://osgeo-org.1560.x6.nabble.com/Removal-of-labeling-search-methods-td5262743.html),
> but would anyone object if the different labeling solution algorithms
> eg "chain" / "pop music" / "falp" / etc were dropped, and we just
> leave the existing default (chain)?

As stated in the earlier email, I would not mind if we remove those.
Are you thinking about removing the option in GUI or to get rid of the
code in PAL for other methods too?


> I don't think ANYONE knows what these mean, and it's a heck of a lot
> of code (which needs fixes) to cart around for no compelling reason
> that I can see.
>
> I have no particular preference to any of the methods, so would
> happily accept a different default if anyone out there can point to
> which method is best!
>
> Googling pop music / tabu / chain only gives a handful of results
> relating to QGIS labeling engine. And googling for "falp" sounds like
> something that would get you flagged on your company's firewall.

To shed some light on the methods for those interested... a good
starting point is PAL docs [1] with links to papers, unfortunately
most links there are broken, but this paper is a good start:
Laurent et al: From Point Feature Label Placement to Map Labelling (2009)

The paper is available here [2] and gives an overview of the whole
process of labeling with PAL. Generally the idea is to turn labeling
into a general combinatoric problem and then apply some heuristic. The
paper also covers the various optimization techniques. FALP seems to
be the most basic initial solution. "Tabu" seems to be a
meta-heuristic method from 1980's [3], "chain" stands for "ejection
chains" concept somehow related to Tabu search. And finally Popmusic
is a search method co-authored from one of the authors of PAL.

I remember there was a paper with quite extensive testing of the
methods, but can't find it anymore. From what I remember, one would
higher amount of labeled features with a slower method (e.g. Popmusic)
or fewer labels with a faster method. If we decide to stick with a
single method, it may be interesting to get the opinion of original
PAL authors on what method to choose... I don't know enough about
those methods to decide.

Cheers
Martin


[1] http://pal.heig-vd.ch/index.php?page=support
[2] 
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.472.4491=rep1=pdf
[3] https://en.wikipedia.org/wiki/Tabu_search
___
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] Sunrise, Sunset, Lunar Calculations

2019-06-28 Thread Martin Dobias
Hi Calvin

On Thu, Jun 27, 2019 at 9:15 PM C Hamilton  wrote:
>
> How much interested would there be for a plugin to display sunrise and sunset 
> information for a particular location on the earth's surface. Is anyone 
> already working on this? There doesn't seem to be a capability for this, but 
> perhaps I have missed it. Are there other astronomical calculations that 
> would be worth while in QGIS? (Moon asimuth/position, phase)

Just adding another +1 vote to have something like this in QGIS :-) At
some point I would like to look into rendering of shadows of buildings
in QGIS 3D - and for this it would be important to have the ability to
calculate sun position.

Cheers
Martin
___
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] 3D map scripting

2019-05-20 Thread Martin Dobias
Hi Darrel

On Fri, May 17, 2019 at 4:03 PM Darrel Maddy
 wrote:
> I am happy with the views I am creating manually now and I have been looking 
> for a way to automate this process (as I do not want to prepare 7000 frames 
> individually). Can this be done in scripting? Or is there a macro type 
> facility that at least would ease the pain ?
>
> I am happy to write the code (in Python) if there is a way to access the 3d 
> map window. It also appears that the settings cannot be saved i.e. any 
> changes to the default view – again anyway to keep this persistent would be 
> welcome. Maybe I am just missing something obvious?

Currently there is only limited API support for 3D map views. For
example, you can set 3D renderers for your vector layers, but some
functionality is not available in Python (like access to the 3D map
view or creation of "offline" 3D renderer that would allow you to
trigger 3D rendering upon request).

Can you explain in a bit more detail what are the bits you would like
to modify for every new frame? How are the 7000 data overlays
represented? I may have some time to make the necessary API
functionality available in QGIS 3.8 which will be out soon.

Cheers
Martin
___
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 3D View: lots of empty (white) holes

2018-10-07 Thread Martin Dobias
Hi Agustin

On Wed, Oct 3, 2018 at 7:02 PM Agustin Lobo  wrote:
> I have a DEM for an Island with horseshoe shape, sea as no data.
> When I represent it in 3D, I get all the "no data" propagated to a
> much larger extension.
> See snapshots:
> https://www.dropbox.com/s/i6vm728481qnx2a/Captura1.JPG?dl=0
> https://www.dropbox.com/s/t35v47pg0v5b774/Captura2.JPG?dl=0

This is a known limitation. If you specify higher "Tile resolution",
the effect should be less pronounced (e.g. try 256px instead of the
default 16px). As you zoom in, the problem should also increasingly
disappear as more detailed terrain tiles get loaded. To help you
understand what is going on - the terrain entity is composed of tiles,
each tile samples height from your DEM, by default 16x16 samples per
tile. If some of the samples contain "no data" values, we cannot
create vertices in the terrain for them and so we cannot build faces
around those values.

Probably the best solution to this is to fill the "no data" values in
your DEM for better looking 3D view.

Cheers
Martin
___
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] Crayfish Plugin

2018-08-24 Thread Martin Dobias
Hi Matt

On Fri, Aug 10, 2018 at 2:00 PM Matt Boyd  wrote:
>
> Hi QGISers,
> I've started doing work (well, study and also not so much doing as learning) 
> with geological models in with time and other parameter series mesh grids.
> I'm trying to get some data in xdmf format into Crayfish. Is there anyone who 
> is working with this sort of data on this list? I'm havign trouble getting my 
> data loaded. various errors and what could be unsupported formats.

If you have problems opening some data, feel free to open a new issue
in the Crayfish bug tracker:
https://github.com/lutraconsulting/qgis-crayfish-plugin

Cheers
Martin
___
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] 3D Map Views and XYZM values

2018-06-28 Thread Martin Dobias
Hi Tyler

On Wed, Jun 20, 2018 at 4:01 PM, Tyler Veinot  wrote:
> Hi All;
> I have been experimenting with the 3D viewer in QGIS3 and was wondering how
> the ZM values are interpreted or if they are at all. When I tested with the
> points and polygons it looked like the Z was interpreted as a extrusion or
> height; but when I measure all objects seem to be the same size regardless
> of M value can someone verify if a M value is interpreted at all in the 3D
> view?

Z values are interpreted as elevation - this should work for points,
linestrings and polygons.
M values are not interpreted.


> Another question, for polygons I can use fields to define things like,
> extrusion, elevation, scale, etc...  but I cannot for points or lines in 3D;
> I was sure I could do this in the 3.0.0 build (currently at 3.0.3). Is
> adding this capability something that is being looked into for future
> versions?

Right, this is not implemented yet. Hopefully it will be added
sometime soon, but there is no roadmap for that...

Regards
Martin
___
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] qgis3 3D view vertical scale inconsistency

2018-05-03 Thread Martin Dobias
Hi Adam

On Wed, May 2, 2018 at 9:29 PM, Adam Dershowitz  wrote:
> I have been working with the new 3D view in qgis3.  I have a project where I 
> have terrain (elevation data) and then some points above the terrain in 
> space.  If I enable 3D rendered for the vector points, and set altitude 
> clamping to Absolute, and then open a new 3D view it appears to be at a 
> reasonable scale and looks good.  However, it can be useful to change the 
> vertical scale to improve the view.  If I go to 3D Configuration and change 
> the Terrain->Vertical scale to 2.0 then the terrain grows, as expected, but 
> the vector points stay at the same elevation, and some end up below the 
> surface.
> Is there a way to change the whole vertical scale for the 3D view?  It seems 
> like leaving the vector points at one vertical scale and the terrain at a 
> different one, is misleading and I would consider it a bug.  The only 
> temporary work around that has occurred to me so far is to calculate a whole 
> new vector layer, that is calculated from the original one but scaled 
> differently, and then display that one instead.  But that seems like it is 
> not the easiest solution, and means that one would have to recalculate new 
> vector layers for every change in scale.

So the point layer has Z coordinates with elevation? What method of
altitude clamping have you chosen for the point layer's 3d renderer?
It seems like you are using absolute clamping... the other two methods
respect the vertical scale.

Regards
Martin
___
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] 3D Surfaces in QGIS3

2018-03-12 Thread Martin Dobias
Hi Adam

On Fri, Mar 9, 2018 at 6:17 PM, Adam Dershowitz  wrote:
> One of the features that I was most excited about for QGIS3 was 3D views.  
> One of my projects has 3D polygons above the ground elevation surface, and I 
> was hoping to display them in QGIS.
> I figured out that I need to change the layer properties->3D View and Enable 
> 3D render.  Now, it does display the polygon in space.  But, the polygon is 
> always fully opaque.  If I change the layer opacity, it does change the 
> opacity of the projection of the polygon on the ground, but not of the actual 
> polygon in space.
> Is there anyway to change the opacity of the polygon in 3D space, so I can 
> see the ground through it?

Transparency is currently not supported in 3D view - all objects are
fully opaque. In 3D, rendering of semi-transparent objects is not
trivial and requires some advanced tricks.

Regards
Martin
___
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 3D View QGIS 3.0 - *Crash ID*: 40e66737578440d0e4a40fa8545b665a86f88731

2018-03-12 Thread Martin Dobias
Hi

On Wed, Mar 7, 2018 at 9:43 AM, Andreas Neumann  wrote:

> Hi,
>
> Yes - I also heard that certain graphic cards have issues with QGIS 3D,
> unfortunately. For these issues, the only solution is to switch to a
> different machine with a different graphics card. Lets hope that future qt
> versions will fix this issue.
>
Currently we have two bug reports (and a few duplicates) referring to this
problem:
https://issues.qgis.org/issues/17416
https://issues.qgis.org/issues/17315
(they could be probably merged into one report - the backtraces are nearly
identical.

>From what I can tell, this has been an issue just on Windows with some
Intel graphics cards. It could be related to a particular version of the
drivers as well. My laptop also has Intel graphics card, but I have not had
any crashes.

Maybe if affected users posted their graphics card model + driver version,
we could find get closer to identifying the source of the problem.

Regards
Martin
___
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 X3D processing

2017-03-27 Thread Martin Dobias
Hi Paolo

On Mon, Mar 27, 2017 at 2:15 PM, Paolo Cavallini  wrote:
>>
>> What would be a good place to learn more about QGIS3 plans to use native
>> Qt5 3d facilities ?
>
> Hi Andreas,
> I do not know much. You can probably have a look to the work of Minoru
> Akagi, who started some early development on this.
> However, I think some core devs may be interested in joining the discussion.

I have been playing with Qt 3D module recently and submitted a grant
proposal for native 3D support in QGIS. Here is my repo with a simple
3D rendering of a DEM with aerial imagery:

https://github.com/wonder-sk/qgis3d

Cheers
Martin
___
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] Autotrace working?

2016-06-22 Thread Martin Dobias
Hi Andreas

On Wed, Jun 22, 2016 at 12:42 PM, Neumann, Andreas  wrote:
> Hi all,
>
> Thank you all for your ideas.
>
> Meanwhile I found the problem: it doesn't seem to work with data containing
> circular arcs (CurvePolygon, CompoundCurve, etc.). If I load data without
> circular arcs it works fine.

Oh right - the circular arcs are not currently considered in tracing.


> Saber/Martin: could you estimate how much effort it would be to also support
> these geometry types?

A simple solution should be fairly easy, and I can do that within the
bugfixing work, but it would involve segmentation of circular arcs
(for tracing we need to compute intersections of all geometries with
GEOS). A more elaborate solution for the future could be to either use
some heuristics to reconstruct the arcs or do not include arcs in
intersection computation or handle arcs completely separately.

Would it be sufficient solution for you if the segmentation of arcs
was in place?


> I could provide sample data with circular arcs (Geopackage, GML or Postgis
> dump).

That would be useful - thanks!

Cheers
Martin
___
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] Crayfish plugin OSError: libproj.so.0

2016-05-10 Thread Martin Dobias
Hi Alexandre

On Tue, May 10, 2016 at 6:02 PM, Alexandre Neto  wrote:
> I'm using it straight from the plugins repository.
>
> Creating the link worked but now it misses another library libhdf5.so.7
>
> There is something fishy in my installation. Not sure if it's a crayfish
> problem, neither a ubuntu 15.10 one. maybe I have some mixed dependencies or
> something.
>
> It works fine in Ubuntu 14.04 with QGIS 2.14

The precompiled Crayfish binaries are done on Ubuntu 14.04 and with
the package changes in Ubuntu >= 15.10 the binaries do not work there.
I have filed a bug report to fix the problem:
https://github.com/lutraconsulting/qgis-crayfish-plugin/issues/187

In the meanwhile you should be able to compile the support library
yourself, see the instructions:
https://github.com/lutraconsulting/qgis-crayfish-plugin/blob/master/README.md

Cheers
Martin
___
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] [Qgis-developer] [Plugin presentation] LayerBender

2014-05-26 Thread Martin Dobias
Hi Olivier

On Tue, May 27, 2014 at 2:18 AM, Olivier Dalang
olivier.dal...@gmail.com wrote:
 Dear lists,

 I'm happy to present my new plugin called LayerBender.

 It's purpose is to allow to align/distort vector layers to match a source,
 very much like georefencer does for raster. It seems ArcGIS and OpenJump
 call this feature Rubber sheeting.

 Demonstration video : https://vimeo.com/96142479

Really impressive!

... and I like Futurama's Bender as the plugin's mascot :-)

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-developer] Re: [Qgis-user] PostGIS Manager compatibility issue with PostGIS 2.0

2012-05-07 Thread Martin Dobias
On Mon, May 7, 2012 at 3:25 PM, G. Allegri gioha...@gmail.com wrote:
 DB Manager works fine.
 The plugins overlap, but they are contributed plugins, so it's up to the
 user choosing wether to use DB Manager or the others.
 My note was directed to the PG Manager mantainer...

As a maintainer of PostGIS Manager I would suggest you to move to DB
Manager since I do not intend to maintain PG Manager and remove it
completely in future. DB Manager is a viable replacement.

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


Re: [Qgis-user] Re: [Qgis-developer] SEXTANTE for QGIS has been released

2012-04-02 Thread Martin Dobias
On Mon, Apr 2, 2012 at 9:59 AM, Victor Olaya vola...@gmail.com wrote:
 Thanks Radim

 That means that some distributions of QGIS might have a QT version
 lower that 4.7? The one I am using works fine, so i gues is  4.7. Is
 there any way of checking it on the fly, so I can execute that line
 only if the version is recent enough?

Hi Victor

in Python you can use 'hasattr' builtin function:
edit = QLineEdit()
if hasattr(edit, 'setPlaceholderText'): edit.setPlaceholderText('foo')

Cheers
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: [Qgis-developer] SEXTANTE for QGIS has been released

2012-04-02 Thread Martin Dobias
On Mon, Apr 2, 2012 at 1:34 PM, Alexander Bruy alexander.b...@gmail.com wrote:

 minQtVersion = '4.6.0'

 def initGui(self):
    if qVersion()  minQtVersion:
      QMessageBox.warning( self.iface.mainWindow(), Error, Your message)
      self.loadingCanceled = True
      return None

Hi Alex

there may be a problem with above code. Imagine that PyQt4 is built
with e.g. Qt 4.2 - that means that it will provide only methods
available in Qt 4.2 and below. If the user updates Qt version to 4.8,
the new methods and classes will not be available in PyQt4, however
qVersion() will return '4.8.0'. There is also PYQT_VERSION_STR
variable in PyQt4.QtCore that returns the version of Qt used to build
PyQt.

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


Re: [Qgis-user] QGIS and Computer Security (Windows)

2012-02-22 Thread Martin Dobias
On Sat, Feb 18, 2012 at 5:08 PM, Richard Males rbma...@gmail.com wrote:

 I would very much appreciate any thoughts on if/how QGIS currently
 deals with this, or references to documentation or postings on the
 issue.

Hi Richard

Contributed QGIS python plugins have similar security issues like any
other extension code that can be downloaded. It is important to note
that with _any_ python plugin downloaded from repository you cannot be
100% sure that no malicious code is inside. The server could have been
hacked, an author's credentials could be stolen or even a previously
trusted author could put on his black hat (and add some malicious code
intentionally)...

In case you are aiming for maximum security I would recommend to use
one of following approaches:
1. host a local repository within your organization with known and
safe plugins. It is really easy to set up one (a web server +
repository xml file + plugin archives). A customized installation of
QGIS would use this repository by default. This is a flexible approach
and allows upgrading/adding plugins quickly by the admin and it is
convenient for users.
2. disable python plugin installer completely in a customized
installation, put there only chosen plugins. Less flexible, but more
secure - no new plugins, no updates to plugins. (But still possible to
add plugin installer or other plugins manually)
3. provide an installation without qgispython library - that
effectively disables running python code within QGIS. Most secure,
least flexible.

Anyway, AFAIK qgis itself should never try to do anything where it
would need admin rights. So another piece of security (for users with
some admin privileges) would be to disable qgis to escalate its
rights.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] New Labeling: conditional labels

2012-01-06 Thread Martin Dobias
Hi

On Thu, Dec 29, 2011 at 11:33 AM, Nathan Woodrow madman...@gmail.com wrote:
 It would be handy to add condition statements to QgsExpression so we can
 support this kind of thing, Martin would be the guy to talk to about adding
 this kind of thing.  He knows the most about QgsExpression.

SQL recognizes CASE statement with following alternate syntax:

1. if equivalent:
CASE
  WHEN x  10 THEN 'big' ELSE 'small'
END

2. switch equivalent:
CASE x
  WHEN 5 THEN 'five'
  WHEN 6 THEN 'six'
  ELSE 'something else'
END

The else is not required, if there is no matching when then NULL
is returned.

Some SQL engines add further functions for convenience:
- MySQL [1]: IF(), IFNULL(), NULLIF()
- PostgreSQL [2]: COALESCE(), NULLIF()

I would suggest to implement the CASE statement to stay compliant with
SQL syntax (although I find It a bit verbose).

Regards
Martin

[1] http://dev.mysql.com/doc/refman/5.0/en/control-flow-functions.html
[2] http://www.postgresql.org/docs/8.1/static/functions-conditional.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] New Labeling: conditional labels

2012-01-06 Thread Martin Dobias
On Fri, Jan 6, 2012 at 1:25 PM, Martin Dobias wonder...@gmail.com wrote:
 SQL recognizes CASE statement with following alternate syntax:

 1. if equivalent:
 CASE
  WHEN x  10 THEN 'big' ELSE 'small'
 END

Just pushed a commit implementing that.

The syntax is:
CASE WHEN cond1 THEN exp1 [WHEN cond2 THEN exp2]* [ELSE exp3] END

There may be one or more WHEN/THEN clauses. If no condition matches,
the expression from ELSE is evaluated - if none is specified then
NULL is returned.

Note: the other syntax with base expression (CASE x WHEN y THEN z
... END) is not supported yet.

Have fun!
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] graduated symbols for point layers

2011-11-28 Thread Martin Dobias
On Mon, Nov 28, 2011 at 10:37 AM, Giovanni Manghi
giovanni.man...@gmail.com wrote:
 This is tricky:

 if you select advanced - select scale field *before* hitting
 classify then the size symbols won't be scaled.

 If you do the other way it will work as expected.

Feel free to open a ticket for that issue.

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


Re: [Qgis-developer] Re: [Qgis-user] Proposed attribute table UI redesign

2011-11-17 Thread Martin Dobias
On Thu, Nov 17, 2011 at 4:18 AM, Tim Sutton li...@linfiniti.com wrote:
 Hi

 On Mon, Nov 14, 2011 at 3:41 PM, Martin Dobias wonder...@gmail.com wrote:

 8-snip---

 nice stuff. One more thing I have been thinking about is that we could
 do the search in a way the browsers nowadays do it: keep the widgets
 for search hidden by default, saving further vertical space. The
 search bar would be opened only after clicking a search button or
 pressing the usual ctrl+F or / shortcut.


 Martin what is the possibility of making the search tool work across
 all columns efficiently? I know from training courses I give that
 selecting the appropriate column when making a search is a common
 stumbling block for many users.

Right, by default we should search in all columns - I also find it
tedious to always select the right column. To make it efficient we
should probably just skip the search using the expressions and
directly search for specified string within attributes of features.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Canvas Rotation

2011-11-17 Thread Martin Dobias
On Thu, Nov 17, 2011 at 1:34 PM, QGIS Brasil Comunidade brasileira
qgisbra...@gmail.com wrote:
 Hi list,

 Is it possible rotate canvas and put the north to another direction than the
 top?

Hi Arthur

I believe it should be possible to use a custom Proj4 projection that
would rotate the entire map. The north arrow decoration in QGIS
computes the actual direction to the north, so it would be updated
automatically.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Proposed attribute table UI redesign

2011-11-14 Thread Martin Dobias
On Mon, Nov 14, 2011 at 5:54 AM, Nathan Woodrow madman...@gmail.com wrote:
 Hi all,
 Today I was looking at some different ways to redesign and optimize the
 attribute table UI and have come up with a design that I think works well
 but would like to get some feedback first.
 I have made two screenshots, showing the old and new dialog at the same size
 and using the same Qt theme.
 Just a plain comparison screenshot
 : http://dl.dropbox.com/u/6170988/Plain.png
 Comparison screenshot with notes
 : http://dl.dropbox.com/u/6170988/Noted.png

Hi Nathan

nice stuff. One more thing I have been thinking about is that we could
do the search in a way the browsers nowadays do it: keep the widgets
for search hidden by default, saving further vertical space. The
search bar would be opened only after clicking a search button or
pressing the usual ctrl+F or / shortcut.

Final ideas:
- show selected only may become a checkable tool button in the group
of selection buttons
- IMHO the move selected to top button may be removed. It used to be
there from the ancient times of the attribute table when there was no
show selected only option

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] how to invoke the save as image from the python console

2011-10-07 Thread Martin Dobias
On Fri, Oct 7, 2011 at 12:05 PM, Rhys A.D. Stewart
rhys.stew...@gmail.com wrote:
 Greetings,

 hoping for a quick answer before i go diving through the API. is there
 a quick way to invoke the save as image dialogue from the console? o
 have a list of coordinates and would like to zoom in and get an image
 of each area around the coords? But since i have about 250 or so
 coords am not too keen on doing it manually...so then i really
 dont want the save as image box to come up really i want the
 functionality from the console.

You can directly use QgsMapRenderer class to render the map to
whatever target - in your case it would be a QImage that you can save
to a file. PyQGIS cookbook gives an example how to construct and use
map renderer. If you are going to use map canvas contents you may take
advantage of map renderer from map canvas (
qgis.utils.iface.mapCanvas().mapRenderer() ) and only change extents
and trigger the rendering.

[1] http://www.qgis.org/pyqgis-cookbook/composer.html

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


Re: [Qgis-user] Re: [Qgis-developer] netiquette

2011-09-26 Thread Martin Dobias
On Mon, Sep 26, 2011 at 2:22 PM, Tim Sutton li...@linfiniti.com wrote:
 Rather something like:

 - please disable html mode in your mail client
 - please post inline, inserting your comments after each point in the
 original poster's message
 - please clip away extraneous / irrelevant content from the thread as
 the conversation goes on
 - please don't email posters offlist unless specifically invited to do so
 - please refrain from using expletives and making inflammatory comments
 - if you disagree with someone, please provide a considered and
 logical response explaining why a different approach should be taken

Frankly I do not believe that posting these rules (or a link to them)
will improve the communication :-) ... mainly because the people who
do not respect the usual netiquette also tend to ask wrong questions,
do not read documentation or even forget to sign themselves at the end
of a mail.

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


Re: [Qgis-user] Error when i try to install qgis1.7

2011-09-26 Thread Martin Dobias
On Fri, Sep 23, 2011 at 5:44 PM, Jules Kouadio seked...@gmail.com wrote:

 I get :

 qgsexpressionparser.yy:54.14-19: syntax error, unexpected string, expecting 
 =
 make[2]: *** [src/core/qgsexpressionparser.cpp] Erreur 1
 make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Erreur 2
 make: *** [all] Erreur 2

 Can someone help me ?

Most probably you have an old version of 'bison' tool. However cmake
should complain about that if you use a recent checkout from git.
Could you please check what is the output if you run the following
command?

$ bison --version

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] plugin installer with unstable internet connections

2011-09-14 Thread Martin Dobias
On Wed, Sep 14, 2011 at 12:11 AM, Alister Hood
alister.h...@synergine.com wrote:

 A shared directory *on a network server*?  Is there a standard way to
 point QGIS to it?


Yes. Use QGIS_PLUGINPATH environment variable to set additional paths
where to look for python plugins. Multiple paths can be separated by
semicolons (windows) or colons (unix).

The priorities when loading plugins are following:
1. plugins from QGIS_PLUGINPATH
2. plugins from user's home directory
3. plugins from qgis installation directory

Please note that plugin installer always saves newly downloaded
plugins to user's home directory.

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


Re: [Qgis-user] error message: Couldn't load PyQGIS. Python support will be disabled

2011-08-22 Thread Martin Dobias
On Sun, Aug 21, 2011 at 11:01 AM, zehari zehari mridua...@gmail.com wrote:
  dear all,
  is there any among you who can help me, I get an error message like
 the following:

 Couldn't load PyQGIS.
 Python support will be disabled.

 Traceback (most recent call last):
  File , line 1, in
 RuntimeError: the PyQt4.QtCore module is version 1 but the qgis.core
 module requires version -1

 Python version:
 2.7.2+ (default, Aug 16 2011, 07:56:26)
 [GCC 4.6.1]

 QGIS version:
 1.8.0-Trunk 'Trunk', exported

 Python path:
 ['/python', '/home/zehari/.qgis/python',

Hi

the invalid python path suggest there is some clash with the
libraries/modules. Please make sure to completely clean up your qgis
installation and try again. This could be a result of some old c++
plugins in the (prefix)/lib/qgis directory or something similar - have
you done any updates of Qt4, PyQt4 or sip recently?

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


Re: [Qgis-user] Move python plugin to a network directory

2011-08-11 Thread Martin Dobias
On Wed, Aug 10, 2011 at 6:02 PM, HAUBOURG
regis.haubo...@eau-adour-garonne.fr wrote:

 Hi list,
 I am looking after a simple method to deploy some custom python plugins on 
 several servers inside our company network.

 As I understand it, today we have 3 solutions:
  1- copy the plugins in C:\Program Files\Quantum GIS 
 Wroclaw\apps\qgis\python\plugins of each server. We need to disturb our admin 
 sys for this.
  2-  copy the plugins in each personnal user directory of these server: I 
 prefer the first method... and my admin sys too
  3- create a repository and let the users install and update plugins 
 themselves.. They won't do the job I'm afraid.

 Ideally, we would like to put the plugins on a single shared network 
 directory. Is there a way to have qgis look in it? No symbolic link on 
 windows xp as far as I know.

You can set QGIS_PLUGINPATH environment variable with a list of extra
paths where to look for plugins. If specifying more one path then
split them using semicolon on windows (colon on linux).

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


Re: [Qgis-user] Move python plugin to a network directory

2011-08-11 Thread Martin Dobias
On Thu, Aug 11, 2011 at 10:45 AM, HAUBOURG
regis.haubo...@eau-adour-garonne.fr wrote:
 Thanks Martin,
 we tried it unsuccessfully. Does this work for python plugins?  Do we have to 
 modify he registry key to add the new plugin?

Yes it shall work for python plugins. No need to modify registry.
You can check whether QGIS has picked up the extra paths: open the
python console in QGIS and type:

 qgis.utils.plugin_paths

It will print a list of paths used to search for python plugins. By
default there is always the system plugin path and per user plugin
path.

 Cheers,
 Régis

 PS: Good news that night, our sys admin did the qgis 1.7 install to our 70 
 GIS citrix potential users...

Nice. It would interesting to hear how do you use QGIS in your organization.

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


Re: [Qgis-user] python raw_input broken

2011-08-11 Thread Martin Dobias
raw_input() method reads data from standard input stream. I am afraid
this will not work well on windows. We should probably redirect the
standard input to the qgis python console in order to make this method
working.

Martin

On Wed, Aug 10, 2011 at 1:59 AM, z x ph27g...@gmail.com wrote:
 With QGIS 1.6.0 python console on XP, input(), raw_input(), etc. don't
 work using the Enter key, returns EOFError when reading a line.  What
 is wrong?
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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


Re: [Qgis-user] PyQGIS: how to create a layer in the console ?

2011-04-30 Thread Martin Dobias
Hi gene

On Thu, Apr 28, 2011 at 8:38 PM, gene martin.lal...@gmail.com wrote:
 Hello, I'm trying to directly import Excel files with the Python module xlrd
 in the console:

     from PyQt4.QtCore import *
     import xlrd
     wb = xlrd.open_workbook('testxy.xls')
     sh = wb.sheet_by_index(0)
     for rownum in range(sh.nrows):
    ...            print sh.row_values(rownum)
    ...
    [u'id', u'x', u'y', u'test']
    [1.0, 235.0, 424.0, u'a']
    [2.0, 245.0, 444.0, u'b']
    
  It gives the xy values and the attributes
 So, I use the script create layer from
 http://www.qgis.org/wiki/Python_Bindings
 http://www.qgis.org/wiki/Python_Bindings   with no problem  for adding the
 layer and the points to the canvas except for the attribute table that
 remains empty

 The question is how to create a valid layer in the console?

Please post a relevant part of your script that creates a layer and
adds the data. Knowing your QGIS version would be helpful, too.

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


Re: [Qgis-user] symbol rotation in Ruled based symbology

2011-04-16 Thread Martin Dobias
On Sat, Apr 16, 2011 at 8:32 PM, Saber razmjoo...@faunalia.co.uk wrote:
 Hi all,

 Is there an option to rotate a symbol in the New Symbology  Ruled Based

Yes :)
In case you would like to rotate the symbol using a data-defined
rotation while using the rule based renderer then the answer would be
no.

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


Re: [Qgis-user] Rule renders and colour ramps

2011-04-10 Thread Martin Dobias
On Sun, Apr 10, 2011 at 2:54 AM, Ramon Andinach cust...@westnet.com.au wrote:

 On 09/04/2011, at 20:20 , Martin Dobias wrote:

 Hi Ramon

 On Sat, Apr 9, 2011 at 1:51 AM, Ramon Andinach cust...@westnet.com.au 
 wrote:
 On a related thought to the recent questions about rule renders. Mostly I'm 
 using the rules to define colour schemes that I can't work out how to get 
 otherwise.

 Is there a way to define custom colour ramps?
 Particularly I'm thinking of colour brewer ramps.
 If there is, could someone point me in the right direction?

 Yes it is possible to define custom color ramps: either in Style
 manager dialog (menu Options - Style manager) or when selecting a
 color ramp for categorized/graduated renderer, the last item in the
 combo box is new color ramp. There is a support for gradients,
 random colors and colorbrewer ramps.

 Thanks for that.
 If I see properly, for colour brewers, I get to choose a colour pattern 
 suite, how many colours are there and that's about it.
 Now, what happens if I was looking for something that was approximately like 
 the Spectrum colourbrewer, but with the colours backwards (blues low, reds 
 high) (or even define whole new colour suites).
 Is that possible?

Unfortunately this is not (yet?) possible. We are still missing
discrete color ramps which would allow you to define custom colors,
allow reversing of colors etc.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Rule renders and colour ramps

2011-04-09 Thread Martin Dobias
Hi Ramon

On Sat, Apr 9, 2011 at 1:51 AM, Ramon Andinach cust...@westnet.com.au wrote:
 On a related thought to the recent questions about rule renders. Mostly I'm 
 using the rules to define colour schemes that I can't work out how to get 
 otherwise.

 Is there a way to define custom colour ramps?
 Particularly I'm thinking of colour brewer ramps.
 If there is, could someone point me in the right direction?

Yes it is possible to define custom color ramps: either in Style
manager dialog (menu Options - Style manager) or when selecting a
color ramp for categorized/graduated renderer, the last item in the
combo box is new color ramp. There is a support for gradients,
random colors and colorbrewer ramps.

Btw. you are doing a great job with the how do I do pages on the wiki!

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Understanding the rule-based renderer

2011-04-08 Thread Martin Dobias
On Fri, Apr 8, 2011 at 11:36 AM, Andreas Neumann a.neum...@carto.net wrote:
 Hi,

 I am trying to better understand the rule based renderer.

 Which version is correct?

 a) QGIS is rendering all features of the first rule, then the second rule,
 etc, Features of the first rule are rendered first, features of the second
 rule on top of features from the first rule
 b) QGIS is rendering each feature on by one and decides which rule applies.

 I hope it is not version b), I hoped it behaves like version a) but it
 behaves a bit odd with my data. For my data it seems like the order of the
 rule has no influence on the rendering order ;-(

Hi Andreas

the rule based renderer uses the b) option: it goes through the
features one by one and applies all matching rules (in the order in
which they appear). Mayeul Kaufmann has done some work in order to
support option a) by implementing support for symbol levels so that
the rendering order can be overridden.

My ultimate goal is to only support the option a) in a way how SLD
specifies it: rules are grouped and these groups are rendered one
after each other.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Send us your tips!

2011-03-02 Thread Martin Dobias
On Wed, Mar 2, 2011 at 12:25 AM, Alister Hood
alister.h...@synergine.com wrote:
 But I think symbol levels should probably be enabled by
 default, in which case this tip wouldn't be necessary :)

Rendering with symbol levels is more costly, so -1 for me to enable it
by default.

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


Re: [Qgis-user] Send us your tips!

2011-03-02 Thread Martin Dobias
On Wed, Mar 2, 2011 at 9:56 AM, Tim Sutton li...@linfiniti.com wrote:
 Hi Martin

 On Wed, Mar 2, 2011 at 10:48 AM, Martin Dobias wonder...@gmail.com wrote:
 On Wed, Mar 2, 2011 at 12:25 AM, Alister Hood
 alister.h...@synergine.com wrote:
 But I think symbol levels should probably be enabled by
 default, in which case this tip wouldn't be necessary :)

 Rendering with symbol levels is more costly, so -1 for me to enable it
 by default.


 I remember debating this with you at Wroclaw. Is it more costly also
 in situations where symbols are simple and have 1 layer each only? In
 the case of multilayer symbols I would say 99% of the time I want
 symbol levels on. I do quite a lot of training and the symbol levels
 is something that a) new users struggle to comprehend and b) gets
 forgotten as a detail after the training and then people come back to
 me asking why their maps look funny. I think from a user friendliness
 point of view, there would be a lot gained by enabling it by default
 (performance issues notwithstanding). Maybe we should add it as
 another item in our endless options panel (which I will reorganise in
 Lisbon)?

Hi Tim

yes, it's more costly also for symbols with just one symbol layer. The
idea is that the features in current view are loaded into memory first
(with a reference to symbol that will be used) and then rendered. So
there is some memory overhead and some cpu overhead (unsure about the
total amount). The case with just one symbol layer could be probably
optimized to some degree.

I am not sure what to do here. The concept of symbol level is quite
advanced and becomes more complex when drawing things like highway
crossing (I still haven't found time to write a blog post explaining
how that could be done). Maybe another topic for upcoming hackfest?
:-)

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


Re: [Qgis-user] qgis OSM plugin misses features on save.

2011-02-28 Thread Martin Dobias
On Sun, Feb 27, 2011 at 6:53 AM, Manoj Bist manoj.bi...@gmail.com wrote:
 Hi,
 I am using qgis version 1.6.0 on ubuntu-karmic.
 The OSM plugin is missing out quite a few osm features on Save.
 This is what I am doing.

 Load an OSM file. (Step 1)
 Add a way. (Step 2)
 Save to a new OSM file.  (Step 3)

 The new OSM file that I saved in step 3 does not have all the features
 including the ones that were in the original OSM file loaded in step 1.
 I would really appreciate any insight into resolving this.
 I've spent quite a bit of time on this.

Hi

please create a ticket for this issue in our bug tracker and attach as
much details as possible:
http://trac.osgeo.org/qgis

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] qgis OSM plugin misses features on save.

2011-02-28 Thread Martin Dobias
On Mon, Feb 28, 2011 at 8:39 PM, Manoj Bist manoj.bi...@gmail.com wrote:
 Hi Martin,
 I will open a ticket.
 I can volunteer to fix this myself. I would really appreciate if someone
 could point me to OSM plugin code/any other document to get started.

Hi

you are welcome to fix the problem. You will need some Python and Qt
knowledge and learn a bit of QGIS API. The recommended starting points
are:
PyQGIS developer cookbook:
http://www.qgis.org/pyqgis-cookbook/
QGIS API documentation:
http://doc.qgis.org/head/

And there are various other tutorials and blog posts floating on the web...

I would suggest you to first check out qgis source code from SVN
repository. The code of OSM plugin is in python/plugins/osm directory.
This might be useful, too:
http://www.qgis.org/wiki/Building_QGIS_from_Source

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


[Qgis-user] Re: [Qgis-developer] hackfest Lisbon, Hotels

2011-02-21 Thread Martin Dobias
On Mon, Feb 21, 2011 at 1:57 PM, Giovanni Manghi
giovanni.man...@gmail.com wrote:
 Hi all,

 Paolo and Giuseppe had already reserved their flights and hotel room.

 They will stay here

 http://www.ibishotel.com/gb/hotel-2117-ibis-lisboa-saldanha/index.shtml

 that is 30 minutes away from the venue by walk or 10/15 by metro.

 I suggest everyone that want to come to the hackfest to start thinking
 book early their flights and hotels as the hackfest days are near Easter
 holidays and many tourist are expected to visit Lisbon.

 You can find many good links at the usual page

 http://www.qgis.org/wiki/5._QGIS_Hackfest_in_Lisbon_2011

Hi Giovanni

it would be good if you could pick e.g. one hostel and one hotel for
us which are preferred, so that the number of locations where people
stay is minimized. It is simpler and more pleasant when you can meet
with others in lobby in the morning, have a breakfast and go to the
venue in a group.

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


Re: [Qgis-user] QgsVectorLayerDataProvider problem?

2011-01-19 Thread Martin Dobias
On Fri, Jan 14, 2011 at 8:39 PM, Gary Smith gary.smith@gmail.com wrote:
 Hello,

 I am not sure whether this is the right forum but extensive Google searches
 have not helped. I am writing a plugin to convert the segments of a polyline
 to a layer of individual 2 vertex line features.

 This is the code I used to do the job

     feat = QgsFeature()
     p = 0
     while p  cl.featureCount():
     cl.featureAtId(p, feat, True, True)
     geom0 = QgsGeometry(feat.geometry())
     vl = QgsVectorLayer(LineString, Mylines, memory)
     provider = vl.dataProvider()
     provider.addAttributes( [ QgsField( id , QVariant.String),
 QgsField( agl , QVariant.String) ])
     pnt10 = QgsPoint( geom0.vertexAt(0) )
     segfeat = QgsFeature()
     itr = 1
     while ( QgsPoint( geom0.vertexAt(itr) )  QgsPoint(0,0) ):
     pnt10 = QgsPoint( geom0.vertexAt(itr -1) )
     pnt11 = QgsPoint( geom0.vertexAt(itr)    )
     newGeom = QgsGeometry.fromPolyline( [ pnt10, pnt11 ] )
     segfeat.setGeometry( newGeom )
     segfeat.setAttributeMap( { 0 : QVariant( str(itr) ), 1 :
 QVariant( str(agl) ) } )
     provider.addFeatures( [segfeat] )
     itr += 1
     p += 1
     vl.commitChanges()
     QgsMapLayerRegistry.instance().addMapLayer(vl)

Hi Gary

I'm not sure what exactly you are trying to do. From the code snippet
it looks that for each feature of the original layer you create a new
layer! That's probably not what you want, is it?

I have few more suggestions:
- iterate over the input using select() and nextFeature() methods
instead of featureAtId(). Generally IDs of features are not increasing
from 0. The former approach guarantees you that you will not miss any
features
- to work with geometry, you can call geometry's asPolyline() method
to get a list of points - more convenient than calling vertexAt()
- no need to call vl.commitChanges() since you do changes directly to
the provider

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


Re: [Qgis-user] error postgis manager

2010-11-23 Thread Martin Dobias
On Tue, Nov 23, 2010 at 3:29 PM, Dario dari...@yahoo.com.br wrote:
 [...]
   File C:\Documents and
 Settings\Dgalvao/.qgis/python/plugins\postgis_manager\DatabaseModel.py,
 line 77, in constructTreeFromDb
     list_tables = db.list_geotables()
   File C:\Documents and
 Settings\Dgalvao/.qgis/python/plugins\postgis_manager\postgis_utils.py,
 line 256, in list_geotables
     items[i] = geo_item
 IndexError: list assignment index out of range

Hi,
does this happen every time you try to connect to your database?

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


Re: AW: Re: Fwd: [Qgis-user] QGIS Near

2010-10-30 Thread Martin Dobias
On Thu, Oct 28, 2010 at 7:48 AM, Ziegler Stefan stefan.zieg...@bd.so.ch wrote:
 Hi Giuseppe

 thanks for looking into this. Do you think it's worth filling out a bug 
 report since the nearestNeighbor method does not the  keep the promise or is 
 this the normal behaviour of a spatial index based method?

Spatial index uses only the bounding boxes of geometries for two
reasons: most importantly the intersection test (used when traversing
the data structure) is much faster when compared to testing
intersection of real geometry. Second, this would require spatial
index to store all geometries - this memory overhead can be
significant for bigger layers.

So as David already suggested, to ensure you are really working with
the nearest geometry, you should check the real distance.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] 'snapSegmentWithContext' with Quantum Navigator

2010-10-18 Thread Martin Dobias
Hi Joe

the Quantum Navigator project has been dead for several years, so such
errors from old API calls can jump at you from any corner. I'm quite
busy nowadays, so I guess you're on your own :-(

btw. for your particular error: try to have a look at the
QgsVectorLayer class. There are other snap*() functions which I
believe have replaced that snapSegmentWithContext method.

Regards
Martin

On Sun, Oct 17, 2010 at 5:54 PM, Joe Larson joela...@gmail.com wrote:
 Hello All,

 I'm trying to get Quantum Navigator
 http://www.mapserver.sk/~wonder/qnavigator/ going on Maverick Meerkat, built
 against QGIS trunk.

 jef on IRC helped me with the API switch past QGIS 1.0, which got me past
 the initial 'make' compile. I got through ./dgbuild and can run
 qnavigator.py, but when I am in the 'Routing' tab and pass a Start event
 from(to) the map.

 seems 'snapSegmentWithContext' is stumping me:


 Traceback (most recent call last):
   File /home/joe/dev/qnavigator/python/gui/tools.py, line 21, in
 canvasReleaseEvent
     self.callback(self.pos)
   File /home/joe/dev/qnavigator/python/gui/main.py, line 257, in gotStart
     pnt = self.routing.setStart(pos)
   File /home/joe/dev/qnavigator/python/routing/routing.py, line 159, in
 setStart
     self.start  = self.layer.findNearestPoint(point)
   File /home/joe/dev/qnavigator/python/routing/routing.py, line 84, in
 findNearestPoint
     (result, point, vertexIndex, fid, geom) =
 self.snapSegmentWithContext(point, RoutingLayer.tolerance)
 AttributeError: 'RoutingLayer' object has no attribute
 'snapSegmentWithContext'


 does anyone have any advice? i tried adjusting the tolerance, researching
 besides that...thank you,

 ~joe

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


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


Re: [Qgis-user] QgsVectorDataProvider.deleteAttributes(), PyConsole problem

2010-10-07 Thread Martin Dobias
Hi Chris

On Wed, Sep 29, 2010 at 5:32 PM, Chris Carleton
w_chris_carle...@hotmail.com wrote:

 import qgis.core
 import qgis.gui
 import PyQt4.QtCore
 import PyQt4.QtGui
 vlayer = qgis.utils.iface.activeLayer()
 provider = vlayer.dataProvider()
 feat = QgsFeature()
 newField = QgsField(azimuth,QVariant.Double)
 provider.addAttributes([newField])
 newFieldIndex = provider.fieldNameIndex(newField.name())
 vlayer.commitChanges()

 When I try to use the following code to delete the column, the function
 returns 'false';

 provider.deleteAttributes([newFieldIndex])

Not all providers support all editing operations. For example, OGR
library does not support deleting attributes. To check what operations
are working, use provider's capabilities() method:

print delete supported?, provider.capabilities() 
QgsVectorDataProvider.DeleteAttributes


One more note: in the above code, you use layer's commitChanges()
method. This is not necessary (nor correct) here, here's the deal:
When calling provider's editing methods, the changes are immediately
written to the data store (file / database etc). On the other hand,
editing methods of QgsVectorLayer use a temporary buffer and the
workflow is as follows:
1. call vlayer.startEditing() ... otherwise the layer's editing
functions will fail
2. call layer's editing methods ... all changes are kept in the editing buffer
3. call vlayer.commitChanges() ... to push the pending changes to the provider
Alternatively instead of committing changes, you could do a rollback:
vlayer.rollback() to discard any changes.
Both commitChanges() and rollback() quit the editing mode, so you
would have to call startEditing() again.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Print composer and Python

2010-07-26 Thread Martin Dobias
Hi Stefan

On Sat, Jul 24, 2010 at 8:16 PM, Ziegler Stefan stefan.zieg...@bd.so.ch wrote:
 Hi

 I'm trying to access the print composer with python:

        self.iface.actionPrintComposer().trigger()
        composerList = self.iface.activeComposers()
        composerView = composerList[composerList.index(max(composerList))]

        composition = composerView.composition()
        composer = composerView.composerWindow()
        composition.setPaperSize(float(width),  float(height))
        composer.show()


 This works twice but the third time two windows will open: one with the 
 standard papersize and one with my custom papersize.

I think the problem is that composers within QGIS are stored in a QSet
(and not in QList data structure) which makes the ordering of
composers different from the order how new composers are added. So the
new composer you trigger will not always be the last one you retrieve
in the list.

You could work this around by checking activeComposers() before and
after triggering a new composer and finding out which composer is the
new one. Not optimal, but probably sufficient.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Configuring line decorations (e.g. arrowheads)

2010-07-16 Thread Martin Dobias
Hi Andreas

On Fri, Jul 9, 2010 at 9:40 AM, Andreas Neumann a.neum...@carto.net wrote:
 In the new symbology I can add a line decoration, such as an arrowhead.
 However, I think most of the configuration options are not exposed (or am
 I missing something).

 I would expect being able to configure the following:

 * select SVG symbol (currently the default is an arrowhead, but new symbol
 chooser dialogue)
 * select decoration placement: start, end, middle of the line
 * select symbol size

 Currently I can only select the symbol color and the arrowhead is always
 placed at the end of the line - no way to add a decoration at the
 beginning of a line.

 Am I missing a dialogue or something hidden in the GUI? Or are these
 options simply not yet implemented/exposed?

The configuration options are not yet implemented, it's not just
missing GUI. I agree with you that more options like symbol type, size
and placement are desired - code contributions implementing them are
welcome.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Serious bug returns to Qgis revision 13878

2010-07-06 Thread Martin Dobias
Hi

On Tue, Jul 6, 2010 at 8:35 AM, Marco Hugentobler
marco.hugentob...@sourcepole.ch wrote:
 Hi William

 Ah, good to know it is the icon generation that makes loading projects with
 many raster layers slow.

 Making a user option to disable layer icons sounds good. However, this would
 involve a string change (option dialog). String freeze for 1.5 is already over
 for a while now. So (unless there is a better solution for the problem without
 string change) something for 1.6...

in my opinion, we could actually remove this feature. I don't find it
particularly useful (a raster scaled down to 16x16 pixels usually
doesn't provide a good overview), it adds additional overhead when the
raster layer is loaded and further complicates the complex raster
code. Another argument could be that vector layer also don't have an
icon containing the preview.

I'm just afraid of creating too many configurable options that barely
anyone will understand their purpose.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Serious bug returns to Qgis revision 13878

2010-07-06 Thread Martin Dobias
On Tue, Jul 6, 2010 at 10:39 AM, Giovanni Manghi
giovanni.man...@gmail.com wrote:
 Hi,

 in my opinion, we could actually remove this feature. I don't find it
 particularly useful (a raster scaled down to 16x16 pixels usually
 doesn't provide a good overview)


 actually it helps quite a lot when working with (many) layers as rasters
 with different color maps are easily identified.

Would it be sufficient if only the color map would appear in the icon?

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


[Qgis-user] Re: [Qgis-developer] venue for the next hackfest

2010-05-28 Thread Martin Dobias
Hi Milena!

On Mon, May 24, 2010 at 2:00 PM, Milena Nowotarska do.mile...@gmail.com wrote:
 Hi all,

 thinking about the next hackfest we could organize it in Wroclaw,
 Poland, at the University.
 Wroclaw is an old, beautiful city easily accesible by train or plane.

 The venue we propose is Department of Climatology and Atmosphere
 Protection, University of Wroclaw. It is located in the most beautiful
 part of Wroclaw and is freely available from June to September. But
 having in mind Barcelona conference, we think it would be convenient
 to plan the hackfest for begining of July, lets say 2nd-5th of July.

This could be a nice QGIS summer camp :-)
Hopefully there will be enough interest in developer community to participate...

Bye
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] limits of delimited text plugin

2010-04-22 Thread Martin Dobias
On Thu, Apr 22, 2010 at 8:20 AM, maning sambale
emmanuel.samb...@gmail.com wrote:
 Hi,

 I am importing the GNS names textfile in to a point vector.  Th etext
 file has 117,000 lines  using the delimited text plugin I was able to
 import on 81,665.  Is there a limit to the number of records we can
 import with the delimited txt plugin?

There is no such limit on feature count, maybe there were some
problems during the parsing. Please file a ticket for that with a link
to the data.

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


Re: [Qgis-user] color ramp

2010-04-20 Thread Martin Dobias
On Fri, Apr 16, 2010 at 9:56 AM, Lionel Roubeyrie
lionel.roubey...@gmail.com wrote:
 Hi all,
 Is there a way to make a gradient color ramp with more than 2 colors
 (adding intermediates colors)? The style manager doesn't give more
 choices and for displaying large dataset this can be very usefull and
 would give better rendering...

Hi,

it is possible from r1.

bye
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Adding attributes to a layer with memory provider

2010-04-20 Thread Martin Dobias
2010/4/19 Václav Řehák rehak...@gmail.com:
 [...]
 You can add attributes using this code:

 pr = self.lines.dataProvider()

 # add fields - to preserve correct order they must be added one-by-one
 (d'oh)
 pr.addAttributes( { name : string } )
 [...]

 I have tried your suggestion, but it also doesn't work for me:

 self.lines = QgsVectorLayer(LineString, temporary_lines, memory)
 pr = self.lines.dataProvider()
 self.lines.startEditing()
 added = pr.addAttributes( { label : string } )
 QgsMapLayerRegistry.instance().addMapLayer(self.lines)
 self.lines.commitChanges()

Ouch, sorry I was wrong, I've mistakenly pasted an invalid snippet.
This is how to do it:

lines = QgsVectorLayer(LineString, temporary_lines, memory)
pr = lines.dataProvider()
ret = pr.addAttributes( [ QgsField(label, QVariant.String) ] )
QgsMapLayerRegistry.instance().addMapLayer(lines)

(can be used from python console, too)

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] color ramp

2010-04-20 Thread Martin Dobias
On Tue, Apr 20, 2010 at 4:06 PM, Lionel Roubeyrie
lionel.roubey...@gmail.com wrote:
 \o/ Excellent! \o/
 but... just one problem, opening the svn version, look at the color
 ramp, closing it and back to 1.4, all my customs gradients (not
 brewers) are now in black to black. However, now I can live without
 them :)

I believe this incompatibility has been introduced by some earlier
changes in 1.5 that add alpha channel to the representation of colors.

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


Re: [Qgis-user] developement on qgis

2010-04-19 Thread Martin Dobias
Hi Mahavir

On Mon, Apr 19, 2010 at 7:50 AM, mahavir trivedi
mahavir.triv...@gmail.com wrote:
 dear all friend


 i wish to know that how can customize qgis source code

 where it download from ?

http://qgis.org/en/download.html


 which editor i used ?

Whichever editor you prefer.


 what technology used ?

C++ and Qt libraries.

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


Re: [Qgis-user] Adding attributes to a layer with memory provider

2010-04-19 Thread Martin Dobias
Hi Vaclav,

2010/4/19 Václav Řehák rehak...@gmail.com:
 Hi,

 in my plugin I create a layer using the following code:

 self.lines = QgsVectorLayer(LineString, temporary_lines, memory)
 self.lines.startEditing()
 field = QgsField(label, QVariant.String)
 field.setLength(100)
 ret = self.lines.addAttribute(field)
 QgsMapLayerRegistry.instance().addMapLayer(self.lines)
 self.lines.commitChanges()

 However, the field is not added to the layer and ret is false. I realized

You can add attributes using this code:

pr = self.lines.dataProvider()

# add fields - to preserve correct order they must be added one-by-one (d'oh)
pr.addAttributes( { name : string } )
pr.addAttributes( { age : int } )
pr.addAttributes( { size : double } )

Your approach should ideally work too, but as I'm looking into the
code, there are some missing bits that prevent your code to work as
well. I'll fix it, but the solution I've posted above will work with
older qgis releases, too.

 I am not even able to add the attribute in the GUI using layer Properties
 dialog - the Type dropdown in Attributes - Add column window is empty. Is it
 bug or a feature that I cannot add attributes to memory layer?

That's the same problem you had with python code: there is missing a
list of native types.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: [Qgis-developer] Simplify the download pages

2010-04-12 Thread Martin Dobias
On Mon, Apr 12, 2010 at 1:09 AM, Alex Mandel tech_...@wildintellect.com wrote:
 Based on some feedback I've gotten from some users the download pages
 are still too complicated and have too many choices. It's not clear to
 anyone but advanced and involved users what the right thing to get is.

I also get feedback from people that the pages are confusing. I post
my suggestions that might improve the usability (not limited to
downloads):

1. Main page
The text content is too dull to read it. People are in a hurry and
usually want to know a) what is qgis, b) how does it look like c) how
to get it.
Therefore I suggest:
- a short statement about QGIS in larger font + link: learn more
(leading to about QGIS page)
- big download button on the right side
- small screenshot below the download button + link: more screenshots
- below this there could be a news section (hackfests, releases, ...)

2. About page
I would suggest to merge it with features page and make the
screenshot smaller (again with link to more screenshots) because
otherwise it doesn't bring any news besides the short history.

3. Download page
For a good orientation, I would suggest to have these 4 options
(aligned in a 2x2 table, large font):
- Current version
- Long term support version
- Plugins
- Sample data
Each option would be a link to a separate page and could have a small
annotation text below the link.
Finally at the end of the page there could be a list of pages for
older releases.

4. Download page for any version
First a short introduction what the version is about (current release
/ LTS / older release).
No tables, just a section (ideally with a platform icon for easier orientation):
- WINDOWS
  - standalone - with/without grass
  - osgeo4w - instruction
- MAC - instructions
- LINUX - instructions for various distributions
- SOURCE


I believe this would make the first impression a bit better...

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QuantumGIS sailing sponsorship

2010-04-01 Thread Martin Dobias
On Thu, Apr 1, 2010 at 10:48 AM, Paolo Cavallini cavall...@faunalia.it wrote:

 Hi all.
 It is a great pleasure to announce that QuantumGIS is the sponsor of a
 racing sailing
 boat (Quantum racing):
 http://www.youtube.com/watch?v=uLfekPLvUvE
 Thanks to our sponsors, who allowed us to increase our visibility on
 international markets, putting us on a par with older software houses who
 sponsor this kind of competitions since long.

Paolo,

that is really exciting news! I believe this sponsorship only
underlines our intent to keep our #1 leadership in the field GIS
solutions. Additionally, with recent addition of live GPS tracking we
prove that Quantum GIS is ready to dominate also the sector of GPS
software (especially the segment of marine GPS) and continues to win
the world market with immense innovations.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Segmentation fault...

2010-03-01 Thread Martin Dobias
On Mon, Mar 1, 2010 at 7:16 PM, Micha Silver mi...@arava.co.il wrote:
 Luigi Castro Cardeles wrote:

 Thanks Martin,

 i use a compiled qgis.
 For Fedora Users, i think that this update comes with kde-4.4.0 updates.
 []'s

 I also have a self compiled qgis 1.4.  After updating to the new PyQt4 and
 sip (also updated qt and qt-x11 packages) last week, I recompiled, and still
 get the segfault. And again, after switching to xfce, QGIS starts fine.
 Under Gnome, QGIS will start only if run as super user. So my guess is that
 the problem is some interaction between Gnome and Qt in the newer packages.

To check whether this hypothesis is correct, you can try to run some
other Qt application(s) within your gnome environment.

Another reason of the crash could be a malfunctioning plugin...

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


Re: [Qgis-user] crash during line editing

2010-02-18 Thread Martin Dobias
On Fri, Feb 12, 2010 at 4:17 PM, Giovanni Pasini jynx...@gmail.com wrote:
 Hello,
 I have problem attemting to editing a new linear feature and also alter
 an existing one. I open a new qgis session, create a line shapefile,
 start editing, make some vertices, rigth-clik to end and qgis crash
 with this message:

 Fatal: ASSERT failure in QVectorT::operator[]: index out of range,
 file /usr/include/qt4/QtCore/qvector.h, line 337

Fixed in r12954.

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


Re: [Qgis-user] postgis layer cannot edit anymore after adding version in PostGIS Manager

2010-02-12 Thread Martin Dobias
On Fri, Feb 12, 2010 at 9:49 AM, maning sambale
emmanuel.samb...@gmail.com wrote:

 I tried adding an area column and used the the Data Processing to
 compute for the area.  Next, I used the versioning table which added
 additional columns id_hist, time_start, time_end

 Now when I tried editing the postgis layer, I cannot save my edits.
 An error report says:

 ERROR:  invalid input syntax for integer: 197461.982774913
 CONTEXT:  PL/pgSQL function parcel_stat_calc_area line 3 at assignment


 Any idea how to solve this?  Totally a newbie with postgis (liking it so far).

Looks like you've set the trigger function for automatic area
calculation to a field with integer type. The returned area is a
double precision number and PostgreSQL obviously doesn't want to cast
it automatically to int.

For an easy solution I would recommend you to change the column from
'int' to 'double precision' type. Just to get rid of the error, you
can delete the trigger function parcel_stat_calc_area in postgis
manager - but the areas won't get updated.

Anyway, if there's anyone more PostgreSQL savvy than me, he/she could
advise how tell PostgreSQL to play nicely also with int type, i.e. how
to modify this line:
NEW.id_water := area(NEW.the_geom);


 Another question, I saw this video:
 http://www.youtube.com/watch?v=2ShYUU-e4JM

 Showing postgis/geoserver edit versioning with history, rollback, etc.
  Are there plans for a similar QGIS plugin?

I'm not aware of such a plugin (or plans to make it), but definitely
it would be handy.

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


Re: [Qgis-user] Geoprocessing question

2010-02-06 Thread Martin Dobias
On Fri, Feb 5, 2010 at 12:36 PM, Zoran Jankovic zoran.janko...@zisis.hr wrote:
 OK list, here is one more philosophical GIS question, with more than one
 answer possible.
 Task: create one layer with street names, house numbers and city name
 Set up:
 - vector layers are all shapefiles
 - one layer with points, attribute filed is house_number (presumably,
 someone will input this data point by point, by digitizing or GPS
 surveying...)
 - the second layer is street buffer - created from streets, contains
 street_name field, among others

I had a similar task some time ago: match address points with street
name and house number to a roads layer, then assign house number
intervals for each road segment (also taking care whether the point is
on left/right side).

If you're not afraid of some python scripting, it's a powerful way to
go. I've ended up with doing these steps:
1. load roads layer to memory and create a spatial index for quick
access (using QgsSpatialIndex)
2. go through points one-by-one, find close road segments and check
whether road's name matches to the one of the point, determine on
which side of the road the point lies
3. assign the intervals to the roads layer

I've even found an old screenshot visualizing matched points with roads:
http://mapserver.sk/~wonder/qgis/adr_body.png
... from the picture you can see I was using ancient 0.8 release :-)

To your question about storing data in PostGIS: that never hurts.
Having your data in database is usually very convenient even if you're
not going to do some complex queries. And you can use indexes for
faster access.


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


Re: [Qgis-user] fill patterns in map printing

2010-01-21 Thread Martin Dobias
Andreas,

On Thu, Jan 21, 2010 at 3:00 PM, Andreas Neumann a.neum...@carto.net wrote:
 I saw, however, another problem (probably bound to antialiasing problems).
 There are some artefacts behind the SVG pattern when the layer below has a
 darker fill.

 See these two examples:
 * http://www.carto.net/neumann/temp/svg_pattern_antialiasing_problem.png
 * http://www.carto.net/neumann/temp/svg_patttern_antialiasing_problem_1.png

try r12810 whether it helps - it should rasterize the svg with
transparent background (instead of white)

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


Re: [Qgis-user] Qgis slow start up

2010-01-21 Thread Martin Dobias
On Thu, Jan 21, 2010 at 9:35 PM, Peter Ersts er...@amnh.org wrote:

 stock GDAL v1.5.4 on Ubuntu 9.10 segfaults on every image in the 18sth
 directory. As Marco mentioned it will be good to hear from William or Tom
 regarding which version of GDAL is being used if their load times are slow.
 I will have to try with a different version of GDAL.

I'm also experiencing a segfault - within libjasper library - so GDAL
is not the one to blame.
(other applications using libjasper crash too)

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


Re: [Qgis-user] qgis.core and qgis.gui DLL bug in Qqis Windows?

2010-01-16 Thread Martin Dobias
On Sat, Jan 16, 2010 at 2:57 AM, Noli Sicad nsi...@gmail.com wrote:
 Martin

 I think the problem is that even if you run python from osgeo4w
 console, the qgis python modules won't get loaded because the path to
 the qgis libraries is not set. I guess you need to do something like:
 SET PATH=c:\qgis\bin;%PATH%
 (with the correct path to QGIS bin directory)

 This is my windows PATH:

 C:\Documents and Settings\Noliecho %PATH%

 [...]
 ;C:\OSGeo4W\apps\qgis-unstable\lib;C:\OSGeo4W\apps\qgis-unstable\python\qgis;C:\
 OSGeo4W\apps\qgis-unstable\python;C:\OSGeo4W\apps\qgis-unstable\python\plugins;C
 :\OSGeo4W\apps\qgis-unstable\bin;C:\OSGeo4W\apps\Python25\Lib\site-packages\qgis
 ;C:\Python25\Scripts;C:\BORLAND\BCC55\BIN;

So then the PYTHONPATH variable is not set correctly. This is the
custom search path for python modules. Try:

SET PYTHONPATH=C:\OSGeo4W\apps\qgis-unstable\python;%PYTHONPATH%

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


Re: [Qgis-user] qgis.core and qgis.gui DLL bug in Qqis Windows?

2010-01-15 Thread Martin Dobias
On Thu, Jan 14, 2010 at 2:58 PM, Noli Sicad nsi...@gmail.com wrote:
 Hi,

 I am not really sure if this problem has been address already. It
 seems that there is problem in importing ggis.core and qgis.gui in
 windows installation.

 http://www.mail-archive.com/qgis-user@lists.osgeo.org/msg04198.html

I think the problem is that even if you run python from osgeo4w
console, the qgis python modules won't get loaded because the path to
the qgis libraries is not set. I guess you need to do something like:
SET PATH=c:\qgis\bin;%PATH%
(with the correct path to QGIS bin directory)

Anyway I'm not currently on windows so can't confirm.

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


[Qgis-user] Re: labelling point layer

2010-01-07 Thread Martin Dobias
Hi Piotr,

this functionality is planned, but I can't give you currently any
estimate when to expect it.

Regards
Martin

2010/1/6 Piotr Pachół piotr.pac...@wodgik.katowice.pl:
 Hello Martin,

 Is it possible to add one function in your labeling plugin ?:
 It means the possibility of choosing one of layer attributes as a field
 where an angle for labels is kept.
 It would be very usefull for point layers and perhaps for polygon layers.
 For instance I must visualize map with address numbers. Each number should
 be rotated differently.
 Now there is only possibility to rotate all labels with the same angle.

 Regards,
 Piotr

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


Re: [Qgis-user] Symbology-ng: field-based rotation for symbols?

2009-12-14 Thread Martin Dobias
On Mon, Dec 14, 2009 at 9:20 AM,  luca_mangane...@comune.trento.it wrote:

 Hi,

 I discovered that field-based rotation for symbols in symbology-ng is not
 supported. Is it true?

That's true. Hopefully it will get implemented in some future version.

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


Re: [Qgis-user] Labelling

2009-11-20 Thread Martin Dobias
Hi Piotr

On Thu, Nov 19, 2009 at 4:40 PM, Piotr Pachół
piotr.pac...@wodgik.katowice.pl wrote:
 Hello,
 I've just had for the first time possibility to see how labelling plugin
 works (Qgis 1.4 r.12167).
 Martin - I must say it was fantastic job.

 Nevertheless I would like to add some sugestions:
 1. Labels without line objects - when we have a line layer with
 classificated symbology
 and we delete some classes we still can see labels for line objects from
 deleted class value.

Thanks for pointing out, that should be fixed in r12206.

 2. Labelling points with angle defined in one of fields – it is partially
 made because we can't change:
 a) angle units (degrees, grads, radians),
 b) angle rotation style:
 - geographic (zero north, clockwise direction) which is necessary for me,
 - arithmetic (zero east, anticlockwise direction) which is used in Qgis,

 May be defining angle units in whole project of Qgis is necessary?

I think it's sufficient to use only degrees within user interface as
it's most common unit (ok, some might want use grads). But for
data-driven rotation of labels it could be considered to give the user
chance to set both units type and rotation style.


 3. What about conflict detection between labels on different layers?

The conflict resolution is done for all layers at once. In the
labeling settings dialog you can also set priority for each layer.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] remove menu item from QGIS menu bar - python plugin

2009-11-10 Thread Martin Dobias
Hi,

it's possible to get a reference to any menu (QMenu instance) from
QgisInterface. Then it's possible to get list of actions calling
menu's actions() method and finally to call removeAction() method. See
QWidget reference for details.

Martin

On Sun, Nov 8, 2009 at 4:29 PM, Ivan Mincik ivan.min...@gmail.com wrote:
 Hi list,
 is there any possibility of removing item from QGIS menu bar using Python ?
 For example to remove some item from 'Help'.

 Looking to QGIS class reference does not give me simple ideas.

 Thanks
 Ivan
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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


[Qgis-user] Re: [Qgis-developer] Some feedback on the hackfest (Vienna 2009)

2009-11-10 Thread Martin Dobias
On Tue, Nov 10, 2009 at 12:32 AM, Mailing Lists li...@linfiniti.com wrote:
 Dear all

 I have written up some thoughts on the hackfest on my blog here:

 http://linfiniti.com/2009/11/report-back-on-the-qgis-hackfest-in-vienna-november-2009/

 Hopefully other attendees will chime in here with more thoughts on the event.

Nice report Tim, thanks!

It was a really nice meeting, hope to meet you all soon!

Just to keep you informed, I plan to merge symbology-ng branch
sometime during the weekend... (no time before)


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


Re: [Qgis-user] label placement

2009-10-15 Thread Martin Dobias
On Thu, Oct 15, 2009 at 9:08 AM, Lionel Roubeyrie
lroubey...@limair.asso.fr wrote:
 Hi all,
 just to know if the label placement code from the GSoC will be integrated in
 the next QGIS release or if it's possible to activate it from the SVN code
 (and how)?

Hi,

the code from my GSoC project (with some more code regarding symbology
[1]) can be found in SVN in this branch:
http://svn.osgeo.org/qgis/branches/symbology-ng-branch/

I'm back from my vacation so hopefully there will be some progress in
the following weeks.

Regards
Martin

[1] http://www.qgis.org/wiki/Symbology_RFC
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] label placement

2009-08-10 Thread Martin Dobias
2009/8/10 Martin Dobias wonder...@gmail.com:

 Hm is that wiki running from a backup? I swear I put report for
 week #10 on it some time ago...

Just read Otto's announcement from the other thread - yes the wiki is
run from a backup :-)

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


Re: [Qgis-user] Qgis segfaults on Kubuntu

2009-08-08 Thread Martin Dobias
On Sat, Aug 8, 2009 at 9:40 PM, Albin
Blaschkaalbin.blasc...@standortsanalyse.net wrote:

 Hello,

 I can reproduce the problem: Same here: QGIS starts, the splash screen
 appears until loading python-plugins and then segfaulting, nothing is
 written to the console. The package uim-qt3 is *not* installed...

 System: Kubuntu Jaunty Jackalope, KDE 4.3
 Python 2.6.2

I've run probably into the same segfault on kubuntu after upgrade to
kde 4.3 too. The problem lies in some incompatibility between
different versions of sip/PyQt4: I suppose the default jaunty PyQt
version is something like 4.4.x, while kde 4.3 installs version 4.5.2.
When I recompiled qgis python bindings with this newer version, the
segfault was gone. If you don't want to compile QGIS on your own,
probably you'll have to either downgrade python-qt4 (and friends) back
to original version or uninstall python support in qgis.

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


Re: [Qgis-user] postgis manager plugin feedback

2009-07-20 Thread Martin Dobias
Hi Ricardo

On Mon, Jul 20, 2009 at 4:28 PM, Ricardo Filipe Soares Garcia
daricardo.garcia.si...@gmail.com wrote:
 Hello list and Martin
 I've been trying out the postGIS Manager plugin. It's great! I would
 like to leave some of the problems I found/wishlist for improvement.

 PROBLEMS:

 - When I import a shapefile to my existing postgisDB the GUI doesn't
 refresh the table list. I have to close the plugin and reopen it to
 see my newly imported table.

I know, I should fix it :-)
As a workaround, you don't have to close and reopen the whole plugin,
just click again on the current database connection in menu, it will
reconnect and refresh the list.


 - I am not able to run some SQL commands in the SQL window. For example:

 CREATE TABLE formacoesmeridional AS
 SELECT ST_INTERSECTION(f.the_geom, b.the_geom) as the_geom,
 f.codlito, f.comp_lit, f.per_geol, f.designa, f.pgid
 FROM formacoeslitologicas f, bacias b
 WHERE ST_INTERSECTS(f.the_geom, b.the_geom) AND b.gid=1

 this won't work. Why is that? It also doesn't give me any error or
 warning as to why it failed. I'm pretty sure the SQL code is correct
 because I can run this query just fine when using pgAdminIII.

The problem is that the executed commands are not automatically
committed. So if you add a commit command, it will do what you need.
But probably it would be good to do commits automatically...


 WISHLIST:

 - It would be very nice if there was a button to carry out the task of
 manually updating the geometry_columns table. As you can see by my SQL
 example, I was creating some a  new table as a result of a spatial
 intersection between existing tables. This kind of operation forces me
 to manually update the geometry_columns table with the info from my
 new table. If this could be done with a button press in the postGIS
 Manager it would be sweet.

I have this feature in my mind for some time. So it will likely be
implemented someday :-)


 - It would be great if you and the author of the pgQuery plugin would
 join both plugins into one. The pgQuery plugin has some nice
 functionality like the ability to perform queries using multiple
 tables, a nice pane for postgis functions, the ability to save query
 templates for common tasks and also the aility to load the results of
 a query directly to the Qgis canvas.

I see that there currently several nice plugins that focus on
different aspects of PostGIS databases. Of course it would be great to
have all such functionality in one plugin. However joining several
pieces of software is often harder than it seems to users. I would
welcome patches for postgis manager from authors of other plugins that
would incorporate the functionality they've developed. But I don't
have that much time to step up and start integrating others' work to
postgis manager myself.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-developer] [Fwd: Re: [Qgis-user] Poll on website]

2009-07-19 Thread Martin Dobias
On Sun, Jul 19, 2009 at 8:20 PM, Mailing Listsli...@linfiniti.com wrote:
 - Promote the 1.x releases on the download pages etc
 - Keep the 1.0.x description and down load page there (in a less
 prominant position).
 - Do occasional 1.0.x releases  - I will backport any commits I can to
 the 1.0.x branch and make occasional releases
 - Release 1.2 with the current feature set as Marco and others have suggested
 - Incorporate Martins NG and Labelling stuff into the future 1.3 release
 - Lets work to get some kind of proper metrics in place - an opt in
 first-run wizard that is invoked each time a user uses QGIS + unique
 version that pings a server with OS + Version. I will do the server
 side stuff if someone else can pitch in with the QGIS part.

Agreed... +1 for me

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


Re: [Qgis-user] to Mac OSX users

2009-07-15 Thread Martin Dobias
Hi William

On Wed, Jul 15, 2009 at 4:07 PM, William
Kyngesburyewokl...@kyngchaos.com wrote:
 I missed these because I don't check Trac tickets...  It would be helpful if
 they were posted to the dev list (like GRASS does) or there was a new ticket
 list (like the commit list).

there's a dedicated list:
http://lists.osgeo.org/mailman/listinfo/qgis-trac

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


[Qgis-user] Re: [Qgis-developer] PostGIS manager v0.5

2009-07-08 Thread Martin Dobias
On Wed, Jul 8, 2009 at 8:53 AM, Düster Horsthorst.dues...@bd.so.ch wrote:
 Hi Martin
 Great enhancements of the plugin thank you very much. I have some feedback:
 1. The schema list in Database view should be sorted
 2. On some tables (not in all cases) I do get the following error message:
 [...]
 /home/barpadue/.qgis//python/plugins/postgis_manager/MetadataBrowser.py,
 line 249, in showTableInfo
 keys += self._field_by_number(key, fields).name
 AttributeError: 'NoneType' object has no attribute 'name'

Hi Horst,

both are fixed in 0.5.1. Anyway I don't really understand the reason
of 2nd problem - it seems like there's a constraint on column that
doesn't exist... or something goes wrong in the plugin :-) Could you
post me the contents of the metadata tab for such table(s)?

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


[Qgis-user] PostGIS manager v0.5

2009-07-07 Thread Martin Dobias
Hi all,

I'd like to announce new version of PostGIS Manager - already in the
repositories (both in mine and in contributed plugins at pyqgis.org):
- shows triggers and rules, able to delete or enable/disable them
- faster GUI as it loads only content for current tab (and not all of
them as before)
- geometry processing - allows you to do area/length calculation and
(optionally) set a trigger that updates the field on inserts and
updates
- table versioning (experimental) - modifies a table so it stores all
history of the changes
- various updates and bug fixes I've incorporated from the feedback I've got

Any feedback is welcome as usual :)

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


Re: [Qgis-user] Python Plugin Directory variable

2009-06-04 Thread Martin Dobias
On Wed, Jun 3, 2009 at 3:22 PM, Sampson, David
david.samp...@nrcan-rncan.gc.ca wrote:
 Is there a variable I can call that points to the various plugin
 directories?

 I have a plugin that I am developiong and I want to use relative file paths
 but it screams at me unl;ess I call qgis from the directory that the plugin
 is in.

There are two directories which contain QGIS plugins:
- the master directory with plugins installed directly in QGIS installation
   QgsApplication.pkgDataPath() + /python/plugins
- user's directory with plugins installed by user (using plugin installer)
   QgsApplication.qgisSettingsDirPath() + /python/plugins

The reason is that the master directory is usually read-only for
normal user, so installing plugins into user's home directory is the
way to go.

Typical paths (on linux):
- pkgDataPath is /usr/share/qgis when using distribution's package,
/usr/local/share/qgis when built manually
- qgisSettingsDirPath is /home/someuser/.qgis

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


[Qgis-user] New snapshot of OpenStreetMap plugin

2009-06-01 Thread Martin Dobias
Hi all,

for those interested in the QGIS-OSM integration, there's a good news:
today the qgis-mapper team is releasing a new snapshot for public
testing.

Features:
- download OSM data
- load and display .osm files
- identify nodes, ways and relations
- edit data: create, modify, delete objects
- upload changes to OSM server
- automatic pre-defined styles for OSM data

How does it look like:
http://mapserver.sk/~wonder/qgis/qgis-openstreetmap.png
(showing OSM data in center of Prague)

Currently there is virtually no documentation available for usage of
the plugin. This will be fixed in the following weeks.

We welcome any comments, suggestions or bug reports from you!

Hopefully at some point of time in future this work will be integrated
into QGIS codebase. Currently it's necessary to install provider
separately.

== Installation ==

Requirements: you need QGIS sources, at least v1.0.0, preferably SVN trunk.

1. download OSM provider:
http://mapserver.sk/~wonder/qgis/osm_provider-snapshot-090601.tar.gz

2. unpack to source into src/providers/

3. modify src/providers/CMakeLists.txt - add osm to the list of subdirectories

4. recompile and install qgis

5. using plugin installer, fetch the OpenStreetMap plugin from my repository:
http://mapserver.sk/~wonder/qgis/plugins-sandbox.xml

6. restart qgis and you're ready for street mapping!


Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] python core.sbf :file not found

2009-05-18 Thread Martin Dobias
On Mon, May 18, 2009 at 2:25 PM, rahulp rahul.pachagh...@tcs.com wrote:

 [ 65%] Generating core/Makefile, gui/Makefile
 Parsing SIP files for 'core' library...
 /usr/bin/sip -c core -b /home/Rahul/QGIS/qgis_1.0.0/python/core/core.sbf -I
 /usr/share/sip/PyQt4 -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t
 Qt_4_3_3 -g /home/Rahul/QGIS/qgis_1.0.0/python/core/core.sip
 sip: /usr/share/sip/PyQt4/QtCore/qglobal.sip:229: syntax error
 [...]

 I have installed PyQt-x11-gpl-4.4.4 at my home and sip 4.7.9 in side PyQt
 installation directory.Is the Qgis compilation using this or not?I am not
 getting this.
 Please suggest a solution to this problem...

It seems that there's incompatibility between some recent sip and pyqt releases.
See this ticket for a very similar problem:
http://trac.osgeo.org/qgis/ticket/1641

Are you sure you're using sip 4.7.9? Because the error you're getting
suggests you're running sip  4.7.8.
I have sip 4.7.9 on my system with pyqt 4.4.4 and it works fine.

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


Re: [Qgis-user] your oders please ;) Hackfest Vienna

2009-05-14 Thread Martin Dobias
Fine for me too!

Martin

On Wed, May 13, 2009 at 5:36 PM, Werner Macho werner.ma...@gmail.com wrote:
 I put all data in the unofficial wiki ..

 http://www.qgis.org/wiki/index.php/2._QGIS_Hackfest_in_Vienna_2009

 (5.) 6. Nov - (8.) 9. Nov is ok for everyone who is willing to attend?

 I'll wait another 2 weeks for answers and start slowly organizing at
 beginning of June ..

 regards
 Werner
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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


Re: [Qgis-user] Metaedit error

2009-05-04 Thread Martin Dobias
On Mon, May 4, 2009 at 5:22 PM, Agustin Lobo alobolis...@gmail.com wrote:
 According to Synaptic (I'm runing ubuntu 8.04) I have:

 python-qt3 (should I get rid of it?)
 python-qt4 4.3.3-2
 libqt4-* 4.4.0

 is this a problem of python-qt4 4.3.3-2  ? There is nothing newer for ubuntu
 8.04, as far as I've been
 able to find out.

Yes, I think pyqt 4.3.3 can't be used as a wrapper for new classes in qt 4.4.

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


Re: [Qgis-user] Multiple Symbolization Rules per Layer

2009-04-22 Thread Martin Dobias
On Wed, Apr 22, 2009 at 1:56 PM, Andreas Neumann a.neum...@carto.net wrote:

 For a future QGIS version it would be cool if there would either support for:

 * multiple symbolization rules
 * data-defined styling for stroking/filling - as you already do with
 data-defined text-styles.

 Multiple symbolization would also be cool for multiple symbolizations of
 the same layer for different map scales (without having to load the layer
 multiple times). Autodesk Map3D handles this nicely.

It would be surely nice to have these features...
The new generation symbology I'm developing doesn't include neither of
them, but I'm trying to keep it extensible so such addition in future
would be possible. I think this is one of the features where creating
usable GUI is actually harder than the implementation itself :)

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


Re: [Qgis-user] Multiple Symbolization Rules per Layer

2009-04-20 Thread Martin Dobias
On Mon, Apr 20, 2009 at 11:13 AM, Andreas Neumann a.neum...@carto.net wrote:
 Hi,

 I have to symbolize our community's waste water network. My problem is
 that I need more than one symbolization rules per Layer.

 As an example the stroke should be derived from one attribute while the
 stroke-style (e.g. different stroke-dashing) should be derived from a
 different attribute. This means I would need more than one symbolization
 rule to correctly style this layer.

 Is this possible with QGIS or would I need to create a new attribute
 combining those attributes in a single attribute for symbolization?

Hi Andreas,

currently it's possible to use only one attribute for the
symbolization, so combination of the two attributes should do the job.

Another option would be to write a special renderer class, however
this has its own glitches.

Regards
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How to run synchronously stable and unstable qgis versions

2009-04-20 Thread Martin Dobias
On Mon, Apr 20, 2009 at 3:24 PM, Nikos Alexandris
nikos.alexand...@felis.uni-freiburg.de wrote:
 Hi list!

 With grass it is possible to compile  install  run grass64, grass65,
 grass7, etc.

 When compiling  installing qgis from source it's always _one_ binary
 called qgis. How could I do with qgis the same as I do with grass?

You can install qgis to different prefixes - e.g. ~/apps/qgis0.11/ and
~/apps/qgis1.0/
Then just create symlinks for each installation:
sudo ln -s ~/apps/qgis0.11/bin/qgis /usr/bin/qgis0.11

 P.S. My actual problem is that I am unable to use old qgis project
 files. Is there a work-around or an import/convert old _qgs_ files?

What's the problem with old project files? From some version (0.11 I
think) there is a mechanism for transformations of old project files
to newer ones. So you might try to find out, someone from the devs may
be able to add the transformation :-)

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


Re: [Qgis-user] Relational Databases and PostGIS formatting of Vector Data

2009-04-09 Thread Martin Dobias
On Thu, Apr 9, 2009 at 7:53 PM, Peter Willis pet...@borstad.com wrote:
 Carson Farmer wrote:

 Peter,

 What tool did you use to import the layer into POSTGIS?

 Quantum GIS.

 My guess is you actually used the SPIT plugin, which is a C++ plugin
 included with QGIS, and is a gui frontend to shp2pgsql...

Just to clarify: SPIT plugin is not a frontend to shp2pgsql, it has
its own logic.

In addition to SPIT you can try to shp2pgsql command line tool or
PostGIS manager plugin for qgis which actually is a simple shp2pgsql
GUI :)

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


Re: [Qgis-user] styles for osm

2009-03-27 Thread Martin Dobias
On Fri, Mar 27, 2009 at 3:34 PM, Werner Macho werner.ma...@gmail.com wrote:
 Is there already a working Openstreetmap plugin for QGIS?


Hi Werner,

somewhere in the qgis-developer archive (about a month ago) you might
find a link for openstreetmap provider + plugin we've done. Our
qgis-mapper group is still hard working on it and soon we'd like to
release another testing version. There are some problems when it comes
to editing of geometries (due the specific format osm has), but basic
tasks like opening .osm files, downloading data from server or some
editing tasks (change object's tags, create or delete nodes/ways) work
fine. Stay tuned :)

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


Re: [Qgis-user] #1211 Relative paths within QGIS project file

2009-03-04 Thread Martin Dobias
On Wed, Mar 4, 2009 at 9:41 AM, Agustin Lobo agustin.l...@ija.csic.es wrote:
 Magnus,

 Maybe there is a simpler, temporary workaround that would make
 users lives easier on this regard. When QGIS does not find
 a layer as stated in the qgs project, the user could have the
 choice of modifying the path that is going to be searched for that
 given layer and for the rest of layers. Note that, in 99% of the
 cases, the problem arises when the layers are in a portable
 disk that has been mounted on a different computer and gets
 a different path (i.e., in windows yo would have G:\mylayers
 instead of F:\mylayers and on linux you would have
 /media/transcend/mylayers instead of /disk/transcend/mylayers).
 So just a box to be optionally clicked stating Upgrade default
 path according to browsed layer (or something like that) in the same dialog
 in which the user is prompted to browse for the layer  would
 not be the optimum solution but a very good one.

Maybe the simplest way would be to add a checkbox Save with relative
paths to file dialog when saving a project. The paths to layers will
be automatically saved relatively to project's directory. This might
need probably some heuristics on determining whether layer's URI is a
file but seems like a simplest option, since when moving the files
anywhere, it should just work.

(my two cents)

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


Re: [Qgis-user] Ideas for QGIS plugin?

2009-02-03 Thread Martin Dobias
On Tue, Feb 3, 2009 at 10:33 PM,  pcr...@pcreso.com wrote:
 Is it possible to have a second transparent map canvas, analogous to the 
 Mapinfo cosmetic layer.

 This would allow, for example, a complex background map to remain static so a 
 gps layer in the new canvas can be quickly refreshed without refreshing the 
 entire map  all the background layers, unless, of couser, the map extent 
 changes.

 There are several times I've made simple changes to a small layer  QGIS 
 takes some time to re-render everything, when 99% of the refresh doesn't 
 actually change anything.

 This could be accomplished by having two map canvases, so users could add 
 static layers to the bottom one  more dynamic ones to the top one, to suit 
 their needs.

This is already possible. But instead of cosmetic layer we talk about
canvas items: map canvas contains rendered map and optionally any
number of other map canvas items (see QgsMapCanvasItem class). Canvas
items can be updated whenever needed and no re-render of map is
required. Also rubber band (see QgsRubberBand) which is used for
measuring distances and areas is a canvas item.

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


Re: [Qgis-user] PostGIS Manager plugin issue

2009-02-02 Thread Martin Dobias
On Sat, Jan 31, 2009 at 9:43 PM, Joe Larson j...@joelarson.com wrote:
 [...]

 /home/joe/.qgis//python/plugins/postgis_manager/postgis_utils.py, line
 113, in get_info
   self._exec_sql(c, SELECT version())
  File
 /home/joe/.qgis//python/plugins/postgis_manager/postgis_utils.py, line
 504, in _exec_sql
   raise DbError(e.message, e.cursor.query)
 DbError: MESSAGE: current transaction is aborted, commands ignored until
 end of transaction block

Check out newly uploaded version 0.4.7, maybe it will fix this problem.

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


Re: [Qgis-user] Ideas for QGIS plugin?

2009-02-02 Thread Martin Dobias
On Mon, Feb 2, 2009 at 11:43 PM, Christopher Barker
chris.bar...@noaa.gov wrote:
 Paolo Cavallini wrote:

 I've always been confused by that. But anyway, you could do it with Open
 Street Map tiles.

 Better take the vector data from OSM (see my previous suggestion): you
 can do more with that.

 Not if you want a nice streetmap as a basemap for something else -- it would
 take a lot of work to get QGIS to draw a map nearly as nice as the OSM ones.
 Indeed, I don't think it's possible.

Chris,
could you please explain your statement why it isn't possible?

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


  1   2   >