[Qgis-developer] QEP: advanced digitizing tools (aka CAD tools)

2014-12-02 Thread Denis Rouzaud

Hi all,

A QEP has been open for adding advanced digitizing tools (aka CAD tools) 
to QGIS application.

https://github.com/3nids/QGIS-Enhancement-Proposals/blob/cadtools/QEP-advanced-digitzing-tools.rst

To comment this QEP, please do so in the associated pull request
https://github.com/qgis/QGIS-Enhancement-Proposals/pull/8

Best wishes,

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

Re: [Qgis-developer] Installin IntraMaps Roam

2014-12-02 Thread Nathan Woodrow
>>OK, now I got it, thanks (I know, I should have RTFM first). After
config, the viewer
seems to run fine. Apparently the setup creates an older version of the
project (not
2.6).

Yeah I'm working on streamlining that process.

>> BTW: any plans for a long term support of this interesting app? Wouldn't
it be nice
to include it in QGIS master, to make it easily available to all QGIS users?
Ready to help with testing if necessary.

We (DMS) support the application as we develop it. We have a lot of clients
using it so we continue to support them or anyone else that is using it.
In fact I just made the latest release about an hour ago:
http://dms-aus.github.io/Roam/

- Nathan


On Fri Nov 14 2014 at 3:22:33 AM Paolo Cavallini 
wrote:

> Il 11/11/2014 11:30, Nathan Woodrow ha scritto:
>
> > Did you build a project using the config manager first?  Roam itself is
> just the
> > viewer there is a different application to make the projects.
>
> OK, now I got it, thanks (I know, I should have RTFM first). After config,
> the viewer
> seems to run fine. Apparently the setup creates an older version of the
> project (not
> 2.6).
> BTW: any plans for a long term support of this interesting app? Wouldn't
> it be nice
> to include it in QGIS master, to make it easily available to all QGIS
> users?
> Ready to help with testing if necessary.
> All the best, and thanks.
> --
> Paolo Cavallini - www.faunalia.eu
> Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Test coverage reports

2014-12-02 Thread Nyall Dawson
Hi all,

I've sent through a pull request [1] which allows for generation of
unit test coverage reports via lcov.

A sample output from this process is available at
http://nyalldawson.net/qgis/coverage/

So, how well are we placed at the moment?.. Well, overall test
coverage (excluding ui_* and sip files) sits at 18% line coverage, 27%
function coverage, and 9% branch coverage. This is excluding the pal
labeling tests which currently fail in utopic. Unsurprisingly, there's
almost no test coverage of code in app (<2%) and plugins. Gui is also
mostly untested, with the exception of gui/attributetable (40%) and
gui/editorwidgets/core (41%).

Core is a mixed bag - there's a handful of classes with really good
test coverage, and a lot with zero test coverage.

Anyway, it makes for interesting reading, and should help with
directing efforts for creating new unit tests.

Nyall


[1] https://github.com/qgis/QGIS/pull/1712
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] attribute index

2014-12-02 Thread Siki Zoltan

Dear List Members,

is there any chance to go through the features using an attribute index?
I would like to traverse sequentially the features in an order defined by 
an attribute (int).


Thanks,
Zoltan
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Trouble with PostGis View in my Python plugin

2014-12-02 Thread Francisco Salas Rosette
Hi, 

I have a problem when try to add one view in QGis with my python plugin ,
because do not have a key  , however if I use the postgis option in QGis the
view is ploted well.  

  

How I can resolve this , some listener can help me

 

 



¿Dónde estoy? ¿Qué hay a mí alrededor? ¿A dónde quiero ir? ¿Dónde está lo que 
busco? ¿Cómo llegar? ¿Cómo anunciar mi negocio?……
Si quiere solucionar todo esto visite y descargue la nueva aplicación móvil 
disponible en http://andariego.geocuba.cu___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Saving map config, or the meaning of extent (again)

2014-12-02 Thread Sandro Santilli
I'm back to the "what's an extent?" question.
Right now only the "extent" is saved in the project file.
Such information encodes a center and a scale which is dependent
on the output size.

This is not the so-called "visible extent" (padded to retain aspect
ratio) but another "extent", supposedly the "extent of interest" ?

Once we also have rotation, what should we save ?

I'm still thinking that the triplet center,scale,rotation would be the
simplest to retain. The problem with that is that keeping the scale
might result in a different area being exposed depending on the
output size. On the other hand keeping the extent would result in
a different scale being used depending on output size.

What's more worth saving: scale of visible area ?
NOTE: currently the saved info is not the visible,
  but the "requested" extent.

--strk(confused_about_extent);

 ()  ASCII ribbon campaign  --  Keep it simple !
 /\  http://strk.keybit.net/rants/ascii_mails.txt  
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Questions about Dialog for Select by Expression

2014-12-02 Thread Nathan Woodrow
Hey Lene,

>>Nathan: It looks good with the new box – but where are the load unique
values/sample.

Still there, only shows up when you select a field like before.  It will
show up under the functions list.

- Nathan

On Tue Dec 02 2014 at 5:25:36 PM Lene Fischer  wrote:

>  Hi Junior and Nathan,
>
> Thanks for your reply-
>
> Nathan: It looks good with the new box – but where are the load unique
> values/sample.
>
> It´s quite important for many users.
>
> Regards
>
>
>
>
>
> *Lene Fischer*
>
> Associate Professor
>
>
>
> *Department of Geosciences and Natural Resource Management*
>
> University of Copenhagen
>
>
>
> MOB +45 40115084
>
> l...@ign.ku.dk
>
>
>
>
>
> [image: SCIENCE_bomaerke_UK]
>
>
>
>
>
> *Fra:* Nathan Woodrow [mailto:madman...@gmail.com]
> *Sendt:* 2. december 2014 00:11
> *Til:* Junior Delaz; Lene Fischer
> *Cc:* qgis-developer
> *Emne:* Re: [Qgis-developer] Questions about Dialog for Select by
> Expression
>
>
>
> Hey Lene and Junior,
>
>
>
> > The height of the expression frame should indeed have a minimum value,
> to avoid closing it. But this is not a new behaviour. In QGIS 2.4, you
> could already close totally this frame if you drag down enough. I think
> it's a bug and you can fill a ticket unless it's an intended behaviour (and
> it would be nice if the dev can explain why such choice - thanks).
>
>
>
> This isn't a issue anymore as the dialog has been redone in 2.8.  You can
> see what it looks like in this
> https://twitter.com/madmanwoo/status/539263306716811264
>
>
>
> >> Secondly – before there was a syntax coloring – now it´s all the same
> color.
>
>
>
> We have changed to use a better code editor for the text box and are using
> a built-in SQL lexer for the syntax. In SQL single and double quotes at the
> same thing, at least the lexer likes to think so.  I'm looking into a fix
> for 2.8
>
>
>
> - Nathan
>
>
>
> On Mon Dec 01 2014 at 9:30:24 PM Junior Delaz  wrote:
>
> Hi All
>
> Lene,
>
> The height of the expression frame should indeed have a minimum value, to
> avoid closing it. But this is not a new behaviour. In QGIS 2.4, you could
> already close totally this frame if you drag down enough. I think it's a
> bug and you can fill a ticket unless it's an intended behaviour (and it
> would be nice if the dev can explain why such choice - thanks).
>
> About syntax coloring, I have it work as expected here but I'm on 2.6.1
> (haven't tried 2.6.0). Maybe, it's already fixed or it's an OS issue (I'm
> on Windows 7  64bits, Osgeo4w advanced install).
>
> For the last one, I agree with you, we should have kept "load unique
> values" and "All" instead of "load  values" and "All unique". The first one
> seems more comprehensive to me and everybody gets that the "unique" term
> applies for "All" and "10 samples". It may be confusing now, having
> "unique" only on "All" button. No?
>
>
>
> 2014-11-30 9:30 GMT+01:00 Lene Fischer :
>
> Hi,
>
> In the dialog Select by expression there has been some changes in 2.6
>
>
>
> Window dragging in expressions must have a minimum vale so the express
> doesn’t disappear if you drag down.
>
> Secondly – before there was a syntax coloring – now it´s all the same
> color.
>
> At last – why does buttons change name – if there is no change in
> function? Here I refere to Load values.
>
>
>
> Please see the video http://screencast.com/t/VE4PvkT1 that explains the
> questions.
>
> Regards
>
>
>
>
>
>
>
>
>
> *Lene Fischer*
>
> Associate Professor
>
>
>
> *Department of Geosciences and Natural Resource Management*
>
> University of Copenhagen
>
>
>
> MOB +45 40115084
>
> l...@ign.ku.dk
>
>
>
>
>
> [image: SCIENCE_bomaerke_UK]
>
>
>
>
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Concurrent editing- postGIS/Oracle Spatial

2014-12-02 Thread Bernhard Ströbl

Hi,

no solution but some thoughts. You could store all changes of each user 
into a separate table and create a dedicated view for each user 
combining the changed datasets in his/her user table and those unchanged 
by this user from the original table.
The user table would have a field user_action::char(1) with values i, u 
or d for (INSERT, UPDATE, DELETE)


CREATE VIEW userview AS
SELECT data FROM usertable
WHERE user_action != 'd'
UNION
SELECT data FROM originaltable
WHERE id not in (SELECT DISTINCT id FROM usertable);
--assuming id is the primary key

The user would edit this view and the view would be made editable 
through rules [1].


Once the job is completed the changes can be applied to the original 
table and deleted from the user table (by means of a DB function). You 
would have to make sure that deletes are executed first, then inserts 
and then updates. Maybe a timestamp of the change is useful to have only 
the last update executed for each dataset.


The main problem I see is concurrent editing of the same feature (e.g. 
user A changes feature 1 and in the meanwhile user B deletes it, then 
the application of A's changes has no effect). There used to be a plugin 
by Horst Düster called "PG Version" to handle this but I could not just 
find it.


Hope this helps

Bernhard

[1] http://www.postgresql.org/docs/9.3/static/rules.html

Am 02.12.2014 09:05, schrieb Manoj:

Hello All,

unable to post from original id, so trying my luck with another.


I need a suggestion to implement a workflow in QGIS.

Requirement is that edits are not visible to other user until field work
is over which means edits for a user is stored in temp table or in the
same table differentiated by a attribute.


So say I have road layer which is visible to all.

Any user work on road layer, their edits are stored in road_temp table.
Only owner user is allowed to see the new edits. The entry in db is
having user’s job id to find out.


Once he marks the job completion then others can also see.

So how I can make QGIS to show a combined view of two tables based on
the job opened or just existing +job data  if stored in a same table?

For example-


Existing data is – A, B, C, D

User A-  Job1- Created – E, Deleted C

So he his map showing- A,B, D, E

UserB comes- He still sees A, B, C, D.

He created another job- and added F.
So userB in his map viewing- A,B, C, D, F

User A- marked his job to complete.

Now UserB  in his map should see- A,B, D,E, F

Or which library is rendering the feature by getting from db (postGIS or
oracle)?


Thanks






__ Information from ESET Mail Security, version of virus signature 
database 10811 (20141202) __

The message was checked by ESET Mail Security.
http://www.eset.com


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


Re: [Qgis-developer] [QGIS-Server] Enhance http://qgis.org/wms_1_3_0.xsd and WMS 1.3.0 compliance

2014-12-02 Thread René-Luc Dhont

Hi Marco,

Firstly I would like to update WMS 1.3.0 GetCapabilities for properly 
declare the request GetLegendGraphic. This request is defined in 'Styled 
Layer Descriptor profile of the Web Map Service Implementation 
Specification'. One of my customer needs it to add his QGIS-Server WMS 
layers in a GeOrchestra application.


Then I think it will be useful to have GetStyles in WMS 1.3.0 and not 
only in WMS 1.1.1. GetStyles is the motivation behind 
getSchemaExtension. The Open Geospatial Consortium gives a way to 
declare extended request in WMS 1.3.0 and MapServer use it to add this 
request.


Finally I think GetCapabilities is the right place to declare extended 
request like GetLegendGraphic or GetStyles. GetPrint has probably to be 
simplified in GetCapabilities. The extended schema is not for add all 
the project settings in GetCapabilities but to decare request for 
clients and other interoperable applications like GeoServer, GeoSource, 
GeOrchestra, etc.
It's also a way to declare QGIS-Server extended request like : 
GetProjectSettings, GetContext, etc.


Regards,
René-Luc D'Hont
3Liz

Le 02/12/2014 09:00, Marco Hugentobler a écrit :

Hi René-Luc

Is the motivation behind the getSchemaExtension only to support the 
additional features of QGIS server? Or is the schema extension also 
important in other contexts (e.g. some inspire thing that I might not 
know about)? In case the former, I'm proposing to just remove those 
elements from the GetCapabilities response and only show in 
GetProjectSettings. The QGIS schema was good to give people more time 
to switch to newer webclient versions. However at some point there 
must be a switch.


Regards,
Marco

On 01.12.2014 22:36, René-Luc Dhont wrote:

Hi dev,

I proposed this pull request
https://github.com/qgis/QGIS/pull/1715
to fix the issue 'QGIS Server getcapabilites response is not WMS 
compliant'

http://hub.qgis.org/issues/10489

What do you think about it ?

René-Luc

Le 01/12/2014 15:34, Richard Duivenvoorde a écrit :

On 01-12-14 14:55, René-Luc Dhont wrote:

Hi dev,

I would like to update http://qgis.org/wms_1_3_0.xsd to enhance
QGIS-Server compliance with WMS 1.3.0.

I didn't find where this file is stored and how to update it. Did
someone know about its ?

Hi René-Luc,

I had a look for it, and found it. It is in the web dir of the qgis.org
server. There is also a 'version.txt' there (used for the url
http://qgis.org/version.txt in QGIS).

For what I know it is not available somewhere else on github or so (if
anybody knows: plz let me know).

If you sent me/us a new version (and you are sure nothing breaks for
other people), I'm happy to put it on the server.

Maybe for future it is best to put those files in Github? So we make a
directory 'static' in https://github.com/qgis/QGIS-Website and copy the
content of that directory verbatim to the html root?

Regards,

Richard Duivenvoorde







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





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

[Qgis-developer] Concurrent editing- postGIS/Oracle Spatial

2014-12-02 Thread Manoj
Hello All,

unable to post from original id, so trying my luck with another.


I need a suggestion to implement a workflow in QGIS.

Requirement is that edits are not visible to other user until field work is
over which means edits for a user is stored in temp table or in the same
table differentiated by a attribute.


So say I have road layer which is visible to all.

Any user work on road layer, their edits are stored in road_temp table.
Only owner user is allowed to see the new edits. The entry in db is having
user’s job id to find out.


Once he marks the job completion then others can also see.

So how I can make QGIS to show a combined view of two tables based on the
job opened or just existing +job data  if stored in a same table?

For example-


Existing data is – A, B, C, D

User A-  Job1- Created – E, Deleted C

So he his map showing- A,B, D, E

UserB comes- He still sees A, B, C, D.

He created another job- and added F.
So userB in his map viewing- A,B, C, D, F

User A- marked his job to complete.

Now UserB  in his map should see- A,B, D,E, F

Or which library is rendering the feature by getting from db (postGIS or
oracle)?


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

Re: [Qgis-developer] [QGIS-Server] Enhance http://qgis.org/wms_1_3_0.xsd and WMS 1.3.0 compliance

2014-12-02 Thread Marco Hugentobler

Hi René-Luc

Is the motivation behind the getSchemaExtension only to support the 
additional features of QGIS server? Or is the schema extension also 
important in other contexts (e.g. some inspire thing that I might not 
know about)? In case the former, I'm proposing to just remove those 
elements from the GetCapabilities response and only show in 
GetProjectSettings. The QGIS schema was good to give people more time to 
switch to newer webclient versions. However at some point there must be 
a switch.


Regards,
Marco

On 01.12.2014 22:36, René-Luc Dhont wrote:

Hi dev,

I proposed this pull request
https://github.com/qgis/QGIS/pull/1715
to fix the issue 'QGIS Server getcapabilites response is not WMS 
compliant'

http://hub.qgis.org/issues/10489

What do you think about it ?

René-Luc

Le 01/12/2014 15:34, Richard Duivenvoorde a écrit :

On 01-12-14 14:55, René-Luc Dhont wrote:

Hi dev,

I would like to update http://qgis.org/wms_1_3_0.xsd to enhance
QGIS-Server compliance with WMS 1.3.0.

I didn't find where this file is stored and how to update it. Did
someone know about its ?

Hi René-Luc,

I had a look for it, and found it. It is in the web dir of the qgis.org
server. There is also a 'version.txt' there (used for the url
http://qgis.org/version.txt in QGIS).

For what I know it is not available somewhere else on github or so (if
anybody knows: plz let me know).

If you sent me/us a new version (and you are sure nothing breaks for
other people), I'm happy to put it on the server.

Maybe for future it is best to put those files in Github? So we make a
directory 'static' in https://github.com/qgis/QGIS-Website and copy the
content of that directory verbatim to the html root?

Regards,

Richard Duivenvoorde







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



--
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
marco.hugentob...@sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

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