[Qgis-user] QGIS contributor meeting in Bratislava

2024-08-22 Thread Martin Dobias via QGIS-User
Hi everyone!

If you are planning to attend the QGIS contributor meeting in Bratislava
(11-13 September), please make sure you have added your name in the wiki:
https://github.com/qgis/QGIS/wiki/27th%E2%80%90Contributor%E2%80%90Meeting%E2%80%90in%E2%80%90Bratislava

This will help us a lot to plan for the capacity of the space... and those
who sign up late risk that they won't get a fancy T-shirt ;-)

We are looking forward to see 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 2024: Detailed schedule

2024-06-17 Thread Martin Dobias via QGIS-User
Hi all

Good news everyone - the detailed schedule is now available on the
conference website:
https://uc2024.qgis.sk/schedule/details/

We are expecting 50 talks and 15 workshops over the two days. For those
looking for a small escape from the conference buzz, there will be a large
"focus" / "quiet" room at the library right next to the conference rooms.
And after the first day of the conference, there will be a social event
with food and drinks.

A quick reminder: early bird tickets are available only until the end of
June - only two weeks left!

Those who plan to join the contributor meeting, please do not forget to add
your name to the list of participants on the wiki:
https://github.com/qgis/QGIS/wiki/27th%E2%80%90Contributor%E2%80%90Meeting%E2%80%90in%E2%80%90Bratislava

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 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&rep=rep1&type=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

[Qgis-user] Slovak QGIS users

2019-05-26 Thread Martin Dobias
Hi everyone

I am trying to reach out to QGIS users in Slovakia. We would like to
start a local QGIS Slovak user group and so it would be great to
connect with as many people as possible.

This year at the OSS Conf (http://ossconf.soit.sk/) in Zilina there
will be a full day dedicated to open source GIS on 4th of July with a
block focused on QGIS, so please consider this email do be also an
invitation to the event :-)

Of course Czech QGIS users are also very welcome! We may even discuss
creation of a joint CZ-SK users group and make use of the
geographic+language proximity...

If you are interested please feel free to also contact me directly.

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
 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  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 1:34 PM, Alexander Bruy  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] 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  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] QGIS and Computer Security (Windows)

2012-02-22 Thread Martin Dobias
On Sat, Feb 18, 2012 at 5:08 PM, Richard Males  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
On Fri, Jan 6, 2012 at 1:25 PM, Martin Dobias  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] New Labeling: conditional labels

2012-01-06 Thread Martin Dobias
Hi

On Thu, Dec 29, 2011 at 11:33 AM, Nathan Woodrow  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] graduated symbols for point layers

2011-11-28 Thread Martin Dobias
On Mon, Nov 28, 2011 at 10:37 AM, Giovanni Manghi
 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-user] Canvas Rotation

2011-11-17 Thread Martin Dobias
On Thu, Nov 17, 2011 at 1:34 PM, QGIS Brasil Comunidade brasileira
 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-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  wrote:
> Hi
>
> On Mon, Nov 14, 2011 at 3:41 PM, Martin Dobias  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] Proposed attribute table UI redesign

2011-11-14 Thread Martin Dobias
On Mon, Nov 14, 2011 at 5:54 AM, Nathan Woodrow  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] WFS reader in 1.8.0 without BBOX selection

2011-10-26 Thread Martin Dobias
On Wed, Oct 26, 2011 at 9:29 AM, Jukka Rahkonen
 wrote:
> The WFS reader used to have a check box Only request features overlapping the
> current view extent. In the current trunk version 1.8.0-Trunk revision 
> "fecb0de"
> does not have the check box. It would be essential to get it back. I have a
> layer in my WFS with 1.2 million polygons and it is never reasonable to try to
> read the whole layer.  BBOX is rather simple to use for limiting the query,
> contrary to the Filter box that is new in the version 1.8.0.

Hi Jukka

the BBOX selection from map canvas has been temporarily disabled when
porting WFS support to the new data browser. It is expected that the
option will come back soon.

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
 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] 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  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] Re: [Qgis-developer] netiquette

2011-09-26 Thread Martin Dobias
On Mon, Sep 26, 2011 at 2:22 PM, Tim Sutton  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] plugin installer with unstable internet connections

2011-09-14 Thread Martin Dobias
On Wed, Sep 14, 2011 at 12:11 AM, Alister Hood
 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  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] 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  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] Move python plugin to a network directory

2011-08-11 Thread Martin Dobias
On Thu, Aug 11, 2011 at 10:45 AM, HAUBOURG
 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] Move python plugin to a network directory

2011-08-11 Thread Martin Dobias
On Wed, Aug 10, 2011 at 6:02 PM, HAUBOURG
 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] 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  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  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  wrote:
>
> On 09/04/2011, at 20:20 , Martin Dobias wrote:
>
>> Hi Ramon
>>
>> On Sat, Apr 9, 2011 at 1:51 AM, Ramon Andinach  
>> 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  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  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 9:56 AM, Tim Sutton  wrote:
> Hi Martin
>
> On Wed, Mar 2, 2011 at 10:48 AM, Martin Dobias  wrote:
>> On Wed, Mar 2, 2011 at 12:25 AM, Alister Hood
>>  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] Send us your tips!

2011-03-02 Thread Martin Dobias
On Wed, Mar 2, 2011 at 12:25 AM, Alister Hood
 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] qgis OSM plugin misses features on save.

2011-02-28 Thread Martin Dobias
On Mon, Feb 28, 2011 at 8:39 PM, Manoj Bist  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


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


[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
 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  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  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  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  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
 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  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  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
On Tue, Jul 6, 2010 at 10:39 AM, Giovanni Manghi
 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


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
 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] Problems using OSM plugin

2010-06-07 Thread Martin Dobias
Hi Carlos

please file both bugs in Trac.
(for the first problem - encoding handling should be handled by the
plugin, no need to set it manually)

Martin

2010/6/6 Carlos Dávila :
> I'm trying to use OSM pluging for editing data for the first time and am
> facing some problems:
> 1- When I upload edited data I get the error below, no matter if I edit a
> saved osm file or freshly downloaded data:
>
> Upload process failed. OpenStreetMap server response: Bad Request - Cannot
> parse valid way from xml string  version="0.6" generator="OpenStreetMap server"> visible="true" timestamp="2010-04-05T10:50:23Z" user="antecessor"
> version="10" changeset="4919909"> ref="248219763"/> ref="248219766"/> ref="248219769"/> ref="412472837"/> ref="412472711"/> ref="447083436"/> ref="248219777"/> v="primary"/> v="EX-206"/> v="asphalt"/>. Fatal error: Input is not proper UTF-8, indicate
> encoding !.
> How should I indicate encoding?
>
> 2- When using "Move feature" tool, after selecting a feature, any mouse
> movement causes a Python error:
>
> Ha ocurrido un error mientras se ejecutaba el código de Python:
>
> Traceback (most recent call last):
>   File
> "/usr/local/qgis/share/qgis/python/plugins/osm/map_tools/OsmMoveMT.py", line
> 587, in canvasMoveEvent
>     (deltaX,deltaY)=self.__getDeltaForPoint(event)    # snapping is done in
> this function
>   File
> "/usr/local/qgis/share/qgis/python/plugins/osm/map_tools/OsmMoveMT.py", line
> 648, in __getDeltaForPoint
>     (self.snapFeat,self.snapFeatType)=self.dbm.findFeature(snappedPoint)
> TypeError: 'NoneType' object is not iterable
>
> Versión de Python:
> 2.6.5+ (release26-maint, May 30 2010, 13:56:50)
> [GCC 4.4.4]
>
>
> Versión de QGIS:
> 1.5.0-Trunk Trunk, 13635M
>
> Ruta de Python: ['/usr/local/qgis/share/qgis/python',
> '/home/carlos/.qgis/python', '/home/carlos/.qgis/python/plugins',
> '/usr/local/qgis/share/qgis/python/plugins', '/usr/lib/python2.6',
> '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
> '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
> '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL',
> '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6',
> '/usr/lib/python2.6/dist-packages/gtk-2.0',
> '/usr/lib/pymodules/python2.6/gtk-2.0',
> '/usr/local/lib/python2.6/dist-packages',
> u'/home/carlos/.qgis//python/plugins',
> '/usr/local/qgis/share/qgis/python/plugins/fTools/tools']
>
> ___
> 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] Find group of a layer in Python plugin

2010-05-30 Thread Martin Dobias
On Fri, May 28, 2010 at 11:02 PM, Ron Bentley  wrote:
> I'm sure the answer is right in front of me; I just haven't found it yet:
>
> Given a layer, is there any way to find out if the layer is part of a group
> in the legend, and if so which group -- from inside a Python plugin?  QGis
> 1.4.0 here.

Hi Ron

there's a QgsLegendInterface class available for this kind of tasks.
Unfortunately it currently doesn't have such functionality, though we
would welcome any patches that add such functionality.

Regards
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  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
 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 Tue, Apr 20, 2010 at 4:06 PM, Lionel Roubeyrie
 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] Adding attributes to a layer with "memory" provider

2010-04-20 Thread Martin Dobias
2010/4/19 Václav Řehák :
>> [...]
>> 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 Fri, Apr 16, 2010 at 9:56 AM, Lionel Roubeyrie
 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-19 Thread Martin Dobias
Hi Vaclav,

2010/4/19 Václav Řehák :
> 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


Re: [Qgis-user] developement on qgis

2010-04-18 Thread Martin Dobias
Hi Mahavir

On Mon, Apr 19, 2010 at 7:50 AM, mahavir trivedi
 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


[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  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  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  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] Segmentation fault...

2010-03-01 Thread Martin Dobias
On Mon, Mar 1, 2010 at 5:23 PM, Luigi Castro Cardeles
 wrote:
> Hi list,
> maybe there are other problem (relate to pyqgis):
>
> Não foi possível carregar PyQGIS.
> Suporte à Python vai ser desabilitado.
>
> Traceback (most recent call last):
>   File "", line 1, in
> RuntimeError: the sip module implements API v7.0 but the qgis.core module
> requires API v6.0

This looks like you've updated sip package in your system, however
qgis python module still awaits older version.
- if you run self-compiled qgis, just recompile it and install again.
It should adapt to newer sip version
- if you run qgis from a distribution package, request an updated
package from the packager
- you could downgrade sip package and all packages that depend on it
(PyQt, PyKDE) but I wouldn't recommend that as it might break your
system

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  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 QVector::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
 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  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] Smooth track animations

2010-01-29 Thread Martin Dobias
On Wed, Jan 27, 2010 at 9:06 PM, Rowe, Thomas  wrote:
> I’m trying to make a tool that produces animations where a large number of
> icons *smoothly* travel along waypoint paths on a map.  Is QGIS appropriate
> for this?  Any pointers into the documentation?  If not can anyone point me
> to a good tool?

Hi Thomas,

yes, it shouldn't be a problem to do animations within QGIS. Map
canvas is based on Qt Graphics View framework [1], which is very
powerful for such work. See map canvas [2] documentation. It might
find some tutorials handy [3]. They're using c++ but they're also
available in Python [4].

[1] http://doc.trolltech.com/4.6/graphicsview.html
[2] http://doc.qgis.org/head/classQgsMapCanvas.html
[3] http://blog.qgis.org/taxonomy/term/1
[4] http://blog.qgis.org/node/59

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  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] fill patterns in map printing

2010-01-21 Thread Martin Dobias
Andreas,

On Thu, Jan 21, 2010 at 3:00 PM, Andreas Neumann  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.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  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\Noli>echo %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  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


Re: [Qgis-user] Python Console and python scripts geoprocessing in QGIS

2010-01-14 Thread Martin Dobias
Hi Noli

On Thu, Jan 14, 2010 at 2:04 AM, Noli Sicad  wrote:
> [...]
>
> Did anybody manage to use qgis in python?
>
> from PyQt4.QtCore import *
> from qgis.core import *
>

Do you mean to run python scripts from command line that would use
functionality of QGIS libraries? It's possible to do it and many times
very useful. I've written several such scripts for various uses, e.g.
map rendering or aligning points with street numbers to network of
streets. It's also possible to create interactive applications using
QGIS gui library where you can use map canvas with just few lines of
code (see [1]).


> I think it would be useful if some of the authors of those python
> plugins can demonstrate how to use the functions / commands in python
> script in QGIS python console or just in python CLI. We can mix and
> match command for geoprocessing to unless the power of QGIS. I know
> what can R GEO can do.

As Carson have already written, there are barely any plugins which
would have good support of interaction from QGIS python console
(although I admit it would be very useful). It depends how well is the
plugin code split into 'core' and 'gui' part: having core code bounded
tightly with the gui would make it hard to use plugin's functionality
from console. Second problem is that probably not many plugin
developers are willing to keep some code compatibility among different
versions to ensure that potential users don't have to change the code
with new versions.

Anyway, just a small example how the plugins can be accessed (PostGIS
Manager plugin is used and prints DB server info):
>>> pm = qgis.utils.plugins['postgis_manager']
>>> pm.dlg.db.get_info()
u'PostgreSQL 8.3.8 on x86_64-pc-linux-gnu, compiled by GCC
gcc-4.4.real (Ubuntu 4.4.1-3ubuntu3) 4.4.1'

Of course the plugin must be started first. Btw. this works for QGIS
>= 1.4. For QGIS <= 1.3 the first command would be:
>>> pm = plugins['postgis_manager']


[1] http://blog.qgis.org/node/59

Regards
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ół :
> 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] v1.40 polygon editing in a new layer

2009-12-20 Thread Martin Dobias
Hi,

please check in Options > Digitising whether you don't have vertex
search radius set to zero (or too small tolerance)

Martin

On Sun, Dec 20, 2009 at 12:59 AM, Fred LaPlante  wrote:
> I am unable to edit nodes in a newly created polygon layer.
>
> Using the node tool I can edit polygons in other layers created with ver 1.3
> and earlier.
>
> But after enabling edits on the new layer, and selecting the node tool, no
> amount of clicking on any node of a new polygon has any effect. Nor am I
> able to delete a new polygon feature (only effect is to remove the selection
> highlighting).
>
> I am using qGIS r12508M, loaded just a few hours ago. Running under Windows
> XP svc Pk 3.
> Install was via OSGeo4W.
>
> Fred LaPlante
> ___
> 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] Symbology-ng: field-based rotation for symbols?

2009-12-14 Thread Martin Dobias
On Mon, Dec 14, 2009 at 9:20 AM,   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ół
 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] Labelling

2009-11-20 Thread Martin Dobias
On Fri, Nov 20, 2009 at 4:10 PM, Piotr Pachół
 wrote:
> Hello Martin,
>
> 1. What I mean about angle units and angle rotation style:
> Yes, I would like that user  may choose between units (deegrees or grads)
> and between  rotation styles (geographic  and  arithmetic).
> Do you plan to add  such a possibility ?

Yes, it's planned, but I don't know when that will happen.

> 2. Now there are two possibilities of creation labels:
> - first standard: Layer properties ->labels,
> - second with your plugin.
> When I use both types of labelling each label is generated twice.
> Do you plan to integrate both types of labeling ?
> If the integration not be soon may be it would be good idea to add some
> check box.
> When the  box is on - qgis uses labelling plugin, when off qgis uses
> standard labelling.

Yes I plan to move the code from a plugin to core library and give the
user possibility to choose which implementation to use. It would be
nice if I managed to do it until the release of qgis 1.4, but I'm not
sure I'll have enough time for that.

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


Re: [Qgis-user] Scale dependent rendering connected with attributes of field

2009-11-12 Thread Martin Dobias
2009/11/11 Borys Jurgiel :
> Dnia środa, 11 listopada 2009 o 16:02:38 Piotr Pachół napisał(a):
>> Hello,
>> I would like to ask if in Qgis there is possibility to use scale
>> dependent rendering not only connected with whole layer but also with
>> attributes in particular field.
>> For instance I have one layer of roads classificated in one of field as
>> state roads, provincial roads etc. ...
>> Now I would like to use different scale dependent rendering for state
>> roads, provincial roads etc.
>> Is it possible ?
>>
>> Piotr
>
> Unfortunately, it isn't. You need to add a separate layer for every road type
> and scale range.
>
> Martin, do you plan to implement such functionality later in the NG Symbology?
> It would be great :)

I've been thinking about such renderer - it should be fairly easy to
implement. It would be actually a "proxy" renderer: for each scale
ranges it could contain a renderer (single / categorized / graduated
symbol or some other). But that could happen maybe for 1.5 or beyond
:-)

Martin
___
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  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] 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  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


Re: [Qgis-user] label placement

2009-10-15 Thread Martin Dobias
On Thu, Oct 15, 2009 at 9:08 AM, Lionel Roubeyrie
 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 :
>
> 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] label placement

2009-08-10 Thread Martin Dobias
On Mon, Aug 10, 2009 at 10:09 AM, Borys Jurgiel wrote:
> Dnia poniedziałek, 10 sierpnia 2009 o 09:33:25 Lionel Roubeyrie napisał(a):
>> Hi all,
>> is it possible to have some news about the label placement project at GSoC?
>> When can we expect it?
>> Thanks
>
> My favourite blog ;-)
> http://www.qgis.org/wiki/Label_Placement_GSoC_2009

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

For everyone who would like to follow the GSoC at osgeo more closely,
there's a mailing list with weekly reports [1].


[1] http://lists.osgeo.org/mailman/listinfo/soc

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
Blaschka 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
da 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 Lists 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
Kyngesburye 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: Re: [Qgis-developer] PostGIS manager v0.5

2009-07-10 Thread Martin Dobias
On Thu, Jul 9, 2009 at 8:59 AM, Düster Horst wrote:
> Martin
> I found out further issues related with OID Indexes (1) and table versioning
> (2) and one enhancement (3).
> 1.
> When I select a table with OID index, the meta data Indexes part shows:
> Name Column(s)
> afu_prog05_oid_idx ??? (#-2)
> afu_prog05_idx wkb_geometry

Ah, tables with oids, that's something I've completely forgotten...
Anyway, isn't it discouraged to use oids for regular tables?

> 2.
> * The schema select box content should be sortet.
> * The geometry index and all other indexes of the versionized table should
> be a patial index with the constaint "where time_end = NULL ". With a
> partial index you will have huge performance advantages. With the time the
> amount of archived or historized records will grow up. P.e. one table of our
> cadastral data contains more than 1 Mio records, but 70 of them are not
> in production state (end_time <> NULL). With the partial index these records
> don't exists for Postgres, as the result you do not have any performance
> problems with your production data.

That's why I'm not adding any indexes to the tables with versioning,
because I wasn't sure how to do it correctly. I was thinking about
using multicolumn indexes - e.g. geometry+endtime, that would probably
do the right thing too. But the partial indexes seem to be more
appropriate. Thanks for sharing.

> 3. I would be nice to add a selected table to Qgis mapcanvas.

Already on my TODO :-)

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


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

2009-07-10 Thread Martin Dobias
On Thu, Jul 9, 2009 at 8:02 AM, Micha Silver wrote:
> Hello Martin:
>
> A few more points you might take into consideration:
> 1- The "VACUUM ANALYZE" warning appears also for views. That's probably
> unnecessary.

That's right...

> 2- To get the plugin working on windows, the psycopg2 library must be
> installed. That's available when using the OSGeo4W installer, thru the
> "Advanced" option. It's worth mentioning this (somewhere...).

It could be added somewhere to the description. Hopefully at some
point in future there will be improved metadata for plugins that will
state also the dependencies.

> 3- Is it possible to  maintain the state of the Table of Contents list of
> schemas and tables from session to session? It's a minor point, but with a
> long list of tables, this might add a bit to usability.

That's an interesting idea, but how to keep the database view up-to-date?

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 3:15 PM, Andreas Neumann wrote:
> Hi Martin,
>
> Thank you for this very useful plugin. It feels to me a bit like
> ArcCatalogue in the ESRI world.
>
> I have two smaller request if it would be possible:
>
> For the map preview - could you re-use the QGIS-settings from the options
> dialogue regarding:
>
> a) mouse wheel behavior/zooming and
> b) antialiasing setting
>
> I don't know if a python plugin can read out these settings? It would be
> cool if the user would "feel at home" by getting the same as setting as in
> regular QGIS.

Hi Andreas,

that's a good idea, implemented in v0.5.2. Antialiased map looks much better :)

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


  1   2   >