Re: [Qgis-developer] Re: forum.qgis.org

2011-07-06 Thread Pirmin Kalberer
Marco thinks that the community members who take care of the forum could 
decide such a change. But it is always possible to send a mail to the PSC list 
and ask for their view. Since Gary didn't step into the discussion and it's 
his forum, I would suggest that Anita sends a mail to the PSC list.
The technical tasks would be
-posting an info message to the forum
-make the forum read-only
-Update qgis.org pages to point to gis.stackexchange
-Optional: Changing the DNS entry for forum.qgis.org

Regards
Pirmin

Am Dienstag, 5. Juli 2011, um 12.37:07 schrieb Anita Graser:
 Is this something that should be decided by the PSC or rather by the
 community? I guess only Gary can shut the forum down or turn it read-only.
 
 Regards,
 Anita
 
 On Tue, Jul 5, 2011 at 11:55 AM, Paolo Cavallini 
cavall...@faunalia.itwrote:
  Il 05/07/2011 11:26, Pirmin Kalberer ha scritto:
   I've played a bit with gis.stackexchange and think it's really a good
  
  idea to
  
   use it.
   Instead of forum.qgis.org we could use
   http://gis.stackexchange.com/questions/tagged/qgis
   as starting point.
  
  +1 for me.
  
   IMHO there is no realistic solution with *one* login. Migrating forum
   and
  
  wiki
  
   would reduce logins by one or two (depending whether the user has an
  
  OpenID
  
   login). According to the docs, Joomla also supports LDAP logins
   (http://docs.joomla.org/LDAP), so OSGEO logins could used there, too.
  
  Anything simpler is better.
  Thanks.
  --
  Paolo Cavallini: http://www.faunalia.it/pc
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Pirmin Kalberer
Sourcepole  -  Linux  Open Source Solutions
http://www.sourcepole.com
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Qt Error

2011-07-06 Thread uk52rob
Hi All,

 

I am still receiving the following error when trying to open QGIS:

 

The procedure entry point

?resetHeight@QGraphicsItemPrivate@@UAEXXZ could not be located

In the dynamic link library QtGui4.dll

 

I have tried all previous workarounds, such as copying the file to
Windows\System32, adding QGIS\bin directory to the %PATH% system variable,
re-installing QGIS, and copying an entire working directory of QGIS from
another PC, but nothing fixes it.

 

Any help would be much appreciated, as I am again stuck without QGIS :( 

 

Cheers,

 

Rob

 

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


Re: [Qgis-developer] Qt Error

2011-07-06 Thread Saber Razmjooei
Rob

What version of QGIS?
Is it windows 7, 64 bit or 32 bit?

Did you install your QGIS from OSGeo4W or stand alone installer?


Cheers
Saber


On Wed, 2011-07-06 at 09:41 +0100, uk52rob wrote:
 Hi All,
 
  
 
 I am still receiving the following error when trying to open QGIS:
 
  
 
 “The procedure entry point
 
 ?resetHeight@QGraphicsItemPrivate@@UAEXXZ could not be located
 
 In the dynamic link library QtGui4.dll”
 
  
 
 I have tried all previous workarounds, such as copying the file to
 Windows\System32, adding QGIS\bin directory to the %PATH% system
 variable, re-installing QGIS, and copying an entire working directory
 of QGIS from another PC, but nothing fixes it.
 
  
 
 Any help would be much appreciated, as I am again stuck without
 QGIS :( 
 
  
 
 Cheers,
 
  
 
 Rob
 
  
 
 
 ___
 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] Qt Error

2011-07-06 Thread uk52rob
Quick Update,

 

I have now solved the problem by performing the following steps:

 

1.   Renaming all Qt*.dll files in Windows\System32 to Qt*.dll.old

2.   Uninstall QGIS, restart PC

3.   Install QGIS as administrator

 

The last step may not be necessary as it should run with elevated privileges
anyway, but it worked.

 

I guess another program installed the dll's into the System32 directory, as
I had only copied Qtcore are Qtgui4 previously.. I'm just waiting for
another program to stop working now!

 

Cheers,

 

Rob

 

 

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


Re: [Qgis-developer] Re: Fwd: [Qgis-user] QgsVectorLayer causes Failed to load error

2011-07-06 Thread Giuseppe Sucameli
Hi all,

if I run the following code from a terminal:

brushtyler@Joe-Notebook:~$ python
 from qgis.core import *
 QgsApplication.setPrefixPath('/usr/local/qgis/', True)
 QgsApplication.initQgis()

I get

/home/brushtyler/projects/sources/qgis/src/core/qgsproviderregistry.cpp: 84:
(QgsProviderRegistry) Checking /usr/local/qgis//lib/qgis/plugins for
provider plugins
/home/brushtyler/projects/sources/qgis/src/core/qgsmessageoutput.cpp: 65:
(showMessage) No Data Providers:
/home/brushtyler/projects/sources/qgis/src/core/qgsmessageoutput.cpp: 69:
(showMessage) No QGIS data provider plugins found in:
/usr/local/qgis//lib/qgis/plugins
No vector layers can be loaded. Check your QGIS installation

As far as you can see, the QgsApplication searches providers in
/usr/local/qgis//lib/qgis/plugins
but in my local installation the qgis providers are in
/usr/local/lib/qgis/plugins

So just changing the code above to

 from qgis.core import *
 QgsApplication.setPrefixPath('/usr/local/', True)
 QgsApplication.initQgis()

and providers are loaded well  :)
I hope this helps.

Cheers.

On Wed, Jul 6, 2011 at 1:12 PM, leonidas leonidas_lia...@yahoo.gr wrote:

 I also have the same problem like Brian. Did anyone found the problem?

 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/Fwd-Qgis-user-QgsVectorLayer-causes-Failed-to-load-error-tp6482726p6553989.html
 Sent from the qgis-developer mailing list archive at Nabble.com.
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




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


Re: [Qgis-developer] CMake cleanup and OS X frameworks

2011-07-06 Thread Tom Elwertowski
I think we're almost there. Two info.plist.in files still need to be 
added to the top mac directory.


Tom


William Kyngesburye wrote:

D'oh! Sorry about that.  shoulda cherry-picked.  Try it now.

On Jul 5, 2011, at 6:52 PM, John C. Tull wrote:


I had this issue also, worked around it by copying that directory over. I don't 
know if this is related, but trying to access the preferences now brings up the 
shortcut dialog. Settings --  Options gets to preferences, though.

Personally, I'd love to see the menus get cleaned up so that qgis 
looks/feels/acts more like a mac application on mac platforms. This is a 
problem that arose sometime after 1.4 or 1.5, but it is now becoming more than 
a distraction. Multiple, redundant (you like that irony?) menu items, 
disorganized menu structures, Help menu not last in the menu bar, etc.

I wish I knew how to poke around in the ui files to try and fix this, but I do 
not. So no solutions provided here, only complaints. Sorry about that.

Cheers,
John

On Jul 5, 2011, at 3:50 PM, Tom Elwertowski wrote:


Hi William,

I encountered the following error using your update:

CMake Error at images/icons/CMakeLists.txt:12 (ADD_SUBDIRECTORY):
add_subdirectory given source mac which is not an existing directory.

It looks like icon files weren't moved from src/mac to images/icons/mac.

Tom


-
William Kyngesburyekyngchaos*at*kyngchaos*dot*com
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.




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


Re: [Qgis-developer] CMake cleanup and OS X frameworks

2011-07-06 Thread William Kyngesburye
Grr.  I added them back, but they didn't get into the commit.  Should be there 
now.

On Jul 6, 2011, at 8:34 AM, Tom Elwertowski wrote:

 I think we're almost there. Two info.plist.in files still need to be added to 
 the top mac directory.
 
 Tom
 
 
 William Kyngesburye wrote:
 D'oh! Sorry about that.  shoulda cherry-picked.  Try it now.
 
 On Jul 5, 2011, at 6:52 PM, John C. Tull wrote:
 
 I had this issue also, worked around it by copying that directory over. I 
 don't know if this is related, but trying to access the preferences now 
 brings up the shortcut dialog. Settings --  Options gets to preferences, 
 though.
 
 Personally, I'd love to see the menus get cleaned up so that qgis 
 looks/feels/acts more like a mac application on mac platforms. This is a 
 problem that arose sometime after 1.4 or 1.5, but it is now becoming more 
 than a distraction. Multiple, redundant (you like that irony?) menu items, 
 disorganized menu structures, Help menu not last in the menu bar, etc.
 
 I wish I knew how to poke around in the ui files to try and fix this, but I 
 do not. So no solutions provided here, only complaints. Sorry about that.
 
 Cheers,
 John
 
 On Jul 5, 2011, at 3:50 PM, Tom Elwertowski wrote:
 
 Hi William,
 
 I encountered the following error using your update:
 
 CMake Error at images/icons/CMakeLists.txt:12 (ADD_SUBDIRECTORY):
 add_subdirectory given source mac which is not an existing directory.
 
 It looks like icon files weren't moved from src/mac to images/icons/mac.
 
 Tom

-
William Kyngesburye kyngchaos*at*kyngchaos*dot*com
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.


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


[Qgis-developer] pgversion and QGIS Plugin / emaj (history versioning)

2011-07-06 Thread mayeul . kauffmann
Hi,
Followup to recent discussion on pgversion plugin:
For versioning (in the sense of history), there is emaj for postgresql:
http://pgfoundry.org/projects/emaj/
The manual is well written. Version 0.9 works very well even with postgis data 
and provides full versioning and rollback (including with tied tables). The 
only issue is that the id type is not supported by qgis; an easy workaround for 
a reasonable number of changes is to use a view like this:

CREATE OR REPLACE VIEW emaj.test_points_log_view AS (SELECT emaj_id::int4 as 
id_int4, * from emaj.public_test_points_log);

From a philosophical point of view, conflict resolution and history versioning 
share some ideas: you want to know what the other do.
From a functionality point of view, there are some related features: you can 
stop a commit (pgversion) or roll it back (emaj).

As a side note, wikipedia defines versioning in the historical sense (I never 
encountered the other one), see:
http://en.wikipedia.org/wiki/Software_versioning

Would be great somehow to somehow merge the two or make them compatible (I 
have'nt tried), or share some common tables. It also remind me, I believe, a 
plugin with a slider for versioned data with time-stamp but I cannot find it 
(was I dreaming?).
Thanks and all the best
Mayeul
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] New Plugin VectorStudio

2011-07-06 Thread Pablo Carreira

Hi,
I've uploaded a new plugin called VectorStudio, it provides tools for vectors 
(geometries) transformations in edit-time.It has an interface that allows the 
creation of new tools without changing the main code, you can write 'plugins 
for the plugin'.It's in very early stage and for now is tagged as experimental.
I would appreciate comments and suggestions.
Regards,
Pablo Torres Carreira
  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS Processing Framework

2011-07-06 Thread Camilo Polymeris
 I don't know if this is relevant to the crashes you have been getting, but
 TraitsUI and most other Enthought Qt-oriented GUI projects use version 2 of
 the SIP QString and QVariant APIs:
     https://github.com/enthought/pyface/blob/master/pyface/qt/__init__.py
 This is done so they can swap between PyQt4 and PySide without hassle and to
 get better unicode and Python 3 support. QGIS uses Version 1 of those APIs
 which is fundamentally incompatible. QGIS could upgrade to version 2 but all
 Python plugins containing code using QString or QVariant would have to
 replace these calls with plain Python strings and objects---definitely a
 2.0 sort of change.
 -Charlie

Yes, that is at least part of the problem. I'll continue without
traits ATM, as Paolo and Martin recommended.

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


[Qgis-developer] Data exchange between QGIS and SAGA [was: QGIS Processing Framework]

2011-07-06 Thread Camilo Polymeris
Hello saga developers,

in case you haven't followed the development of the QGIS Processing
Framework and SAGA interface, a short introduction:

I was selected to implement a QGIS to SAGA interface in context of
Google's Summer of Code 2011 program. The last weeks have been spent
designing and implementing basic parts of a more general framework to
processing modules. There is interest in interfacing at least SAGA,
the Orfeo Toolbox and OSSIM to QGIS. A rough design document can be
found at [1]. Note that the implementation[2, 3] differs
substantially, though.

One of the most important and difficult remaining parts is data
exchange (raster  vector). I have been studying SAGA's API [4], but
am not sure how to handle it  would appreciate comment from people
more familiar with it.

Do you think it would be easier (or cleaner) to interface SAGA's
relevant data structures to QGIS' dataproviders or layer structures?
For comparison, see the QGIS API docs.[5]

 - I/O : how will this be handled ? I'm asking this related to the recent
 mails with interest for providing ossim image chains in Qgis.
 If it must support module chaining, then there is a need for an
 abstraction
 of the i/o mechanism. is it the qgis dataproviders ? a module can take a
 raster/vector dataprovider as input and can output a raster/vector
 dataprovider ?

 Yes, qgis dataproviders, I think. Perhaps alternatives later. This is,
 IMO, one of the most dificult aspects remaining to define.

 I'd love to hear some thoughts from the Qgis gurus about this.


Any thoughts or comments welcome.

Regards,

Camilo

[1] https://github.com/polymeris/qgis/wiki/QGIS-Processing-Framework
[2] https://github.com/polymeris/qgis/tree/master/python/processing
[3] https://github.com/polymeris/qgis/tree/master/python/plugins/saga
[4] http://www.saga-gis.org/saga_api_doc/html/annotated.html
[5] http://doc.qgis.org/head/index.html
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] New Plugin VectorStudio

2011-07-06 Thread Mayeul Kauffmann
Hi,
I installed the plugin I tried to play with it but could not do
anything. Maybe you could describe what it does. If you know how to make
a screencast, putting this on, e.g., youtube, is probably the most
efficent way.
Mayeul
Le mercredi 06 juillet 2011 à 14:14 -0300, Pablo Carreira a écrit :
 Hi,
 
 
 I've uploaded a new plugin called VectorStudio, it provides tools for
 vectors (geometries) transformations in edit-time.
 It has an interface that allows the creation of new tools without
 changing the main code, you can write 'plugins for the plugin'.
 It's in very early stage and for now is tagged as experimental.
 
 
 I would appreciate comments and suggestions.
 
 
 Regards,
 
 Pablo Torres Carreira 
 ___
 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] New Plugin VectorStudio

2011-07-06 Thread Pablo Carreira

 
 Hi,
 I installed the plugin I tried to play with it but could not do
 anything. Maybe you could describe what it does. If you know how to make
 a screencast, putting this on, e.g., youtube, is probably the most
 efficent way.
 Mayeul


Ok, tanks. I'll elaborate a better documentation. For now, here is a simple 
explanation:
1) VectorStudio works based is two selections: Selection A and Selection B.

2) Select the features you want and press 1 in the keyboard to set Selection 
A, press 2 to set Selection B.

3) Run the tools you want.
Pablo.
 Le mercredi 06 juillet 2011 à 14:14 -0300, Pablo Carreira a écrit :
  Hi,
  
  
  I've uploaded a new plugin called VectorStudio, it provides tools for
  vectors (geometries) transformations in edit-time.
  It has an interface that allows the creation of new tools without
  changing the main code, you can write 'plugins for the plugin'.
  It's in very early stage and for now is tagged as experimental.
  
  
  I would appreciate comments and suggestions.
  
  
  Regards,
  
  Pablo Torres Carreira 
  ___
  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] pgversion and QGIS Plugin / emaj (history versioning)

2011-07-06 Thread Marco Bernasocchi
TimeManager has a slider and deals with time data, but not really
versioned...

Marco
www.bernawebdesign.ch
(sent from my mobile)
On 6 Jul 2011 18:19, mayeul.kauffm...@free.fr wrote:
 Hi,
 Followup to recent discussion on pgversion plugin:
 For versioning (in the sense of history), there is emaj for postgresql:
 http://pgfoundry.org/projects/emaj/
 The manual is well written. Version 0.9 works very well even with postgis
data and provides full versioning and rollback (including with tied tables).
The only issue is that the id type is not supported by qgis; an easy
workaround for a reasonable number of changes is to use a view like this:

 CREATE OR REPLACE VIEW emaj.test_points_log_view AS (SELECT emaj_id::int4
as id_int4, * from emaj.public_test_points_log);

From a philosophical point of view, conflict resolution and history
versioning share some ideas: you want to know what the other do.
From a functionality point of view, there are some related features: you
can stop a commit (pgversion) or roll it back (emaj).

 As a side note, wikipedia defines versioning in the historical sense (I
never encountered the other one), see:
 http://en.wikipedia.org/wiki/Software_versioning

 Would be great somehow to somehow merge the two or make them compatible (I
have'nt tried), or share some common tables. It also remind me, I believe, a
plugin with a slider for versioned data with time-stamp but I cannot find it
(was I dreaming?).
 Thanks and all the best
 Mayeul
 ___
 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] The optimal size for SVG symbols

2011-07-06 Thread Andrea Peri
Hi,

I need to create many SVG symbol to use as fill for polygons rendering.

Someone is preatty easy to do because the fill is a simple fill with
diagonal lines.
But some symbol is a more complex regular pattern of little object.
I need to know the right size of the SVG symbol to have the correct reply of
pattern without breaks.

I try with 32x32 but it seem to be no optimal.

An example:

I need to do a fill with this pattern:

 *   *   *   *   *   *
   *   *   *   *   *
 *   *   *   *   *   *
   *   *   *   *   *

I try to create a SVG with this pattern but when apply it the qgis renderize
in this mode:

 *   *   *   *   *   *
   *   *   *   *   *
   *   *   *   *   *
   *   *   *   *   *

I guess this is due to wrong size of my SVG symbol that not is optimal for
the pattern.
Bu I don't know the size that qgis need to have.

thx,

-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Ellipse renderer

2011-07-06 Thread Tim Sutton
Hi

I also took some time to test your branch. It works very nicely - the
only option I miss is the ability to have a transparent fill :-)


On Tue, Jul 5, 2011 at 10:19 AM, Marco Hugentobler
marco.hugentob...@sourcepole.ch wrote:
 Hi Martin

 Welcome back :-)

 Thank you for reviewing the ellipse renderer changes.

 However would not it be better to add data defined fields to the
 simple marker symbol layer instead of creating a new one? The ellipse
 symbol layer seem to duplicate a lot of code, the only difference I
 see is that ellipse marker supports unequal width and height).

 Yes, it is width-height, outlinewith option and data defined fields which 
 are
 new (whereas it lacks x-/y-shift). The idea of the ellipse renderer was to
 have minimal impact on existing classes. But yes, bringing the additions into
 the simple marker class is also my preferred solution.

 I am merely a fan of Advanced buttons that show
 this functionality (maybe in a separate dialog or by adding further
 widgets). I guess this way the regular users do not get overwhelmed
 with complexity and power users are happy.

 I don't have a strong opinion here. A dialog with an Advanced extension
 sounds good to me. Do we already have examples of such dialogs in QGIS? Tim,
 what do the HIG say?

Marco we had quite a long discussion about the symbol editor
functionality in QGIS in Lisbon. The short version is that we would
like to make some generic widgets for representing symbols (and other
common ui patterns like managed lists and so on). For now I think your
tabs are ok (and better than having another popup dialog).

Regards

Tim


 One more technical issue: in the ellipse symbol layer you store
 indexes together with the field names. This is suboptimal and the
 field indexes should be resolved in startRender() method.

 I agree, storing only the name would be more robust towards attribute changes
 (e.g. storing projects, inserting fields into the db with external programs,
 then reopen again).
 Is there a way to resolve the indexes from within the symbol layer? Maybe it's
 something obvious that I just don't see. The symbollayer needs to know
 attribute name and index (name to say which attributes it needs, index in
 renderPoint). However, it does not know the vectorlayer to get the relation
 between name and index.

 Regards,
 Marco


 Am Montag, 4. Juli 2011, 15.53:18 schrieb Martin Dobias:
 Hi Marco

 finally I'm back :-)

 On Tue, Jun 14, 2011 at 3:48 PM, Marco Hugentobler

 marco.hugentob...@sourcepole.ch wrote:
  - A pointer to the rendered QgsFeature* has been added to
  QgsSymbolV2RenderContext (such that the symbollayer has the possibility
  to check the data defined attribute values)
 
  - A symbollayer has the possibility to specify which attribute fields it
  needs for rendering (by default, QgsSymbolLayerV2::usedAttributes
  returns an empty set).
 
  - The symbollayer widgets receive a pointer to their vector layer. Normal
  symbol layer widgets don't use it, the widgets of  data defined symbol
  layers get the available fields through that pointer.

 I have looked at the code and these changes look OK to me.

 However would not it be better to add data defined fields to the
 simple marker symbol layer instead of creating a new one? The ellipse
 symbol layer seem to duplicate a lot of code, the only difference I
 see is that ellipse marker supports unequal width and height).
 Additionally it will probably make sense to add such data defined
 rendering also e.g. for simple line and simple fill.

 Regarding the widget for symbol layer properties - I do not really
 like the tabbed approach (the second tab with lots of combo boxes
 looks scary :-), though I am not sure what would be the most user
 friendly approach. I am merely a fan of Advanced buttons that show
 this functionality (maybe in a separate dialog or by adding further
 widgets). I guess this way the regular users do not get overwhelmed
 with complexity and power users are happy.

 One more technical issue: in the ellipse symbol layer you store
 indexes together with the field names. This is suboptimal and the
 field indexes should be resolved in startRender() method.

 This is going to be another nice addition to the new symbology!

 Regards
 Martin


 --
 Dr. Marco Hugentobler
 Sourcepole -  Linux  Open Source Solutions
 Churerstrasse 22, CH-8808 Pfäffikon SZ, 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




-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit 

[Qgis-developer] Provider native raster band stats

2011-07-06 Thread Tim Sutton
Hi

During the Lisbon hackfest (between all those meetings!) I worked on
updating the raster providers to be able to generate stats themselves.
The raster provider base class has a default (and historically
inefficient as we all know) implementation for collecting stats by
walking over every cell in the raster twice. This method remains, but
the providers can now supply stats themselves (heopfully using more
efficient mechanisms). I have implemented gdal native stats already.
Over the last few weeks I did some further testing and cleanups to
this work. From my testing some of my worst case files opened in
~1minute rather than ~8+ minutes. It would be great if interested
parties could test (details below) before I put it into master.

git remote add timlinux git://github.com/timlinux/Quantum-GIS.git
git fetch timlinux
git branch --track timlinux raster-stats
git checkout raster-stats

I look forward to your feedback.

Regards

-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Re: Fwd: [Qgis-user] QgsVectorLayer causes Failed to load error

2011-07-06 Thread Tim Sutton
Hi


2011/7/6 Giuseppe Sucameli sucam...@faunalia.it:
 Hi all,

 if I run the following code from a terminal:

 brushtyler@Joe-Notebook:~$ python
 from qgis.core import *
 QgsApplication.setPrefixPath('/usr/local/qgis/', True)
 QgsApplication.initQgis()

Try using /usr/local rather (assuming your install prefix was
/usr/local). It works for me:


 from qgis.core import *
 QgsApplication.setPrefixPath('/usr/local/', True)
 QgsApplication.initQgis()
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
84: (QgsProviderRegistry) Checking /usr/local//lib/qgis/plugins for
provider plugins
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libcoordinatecaptureplugin.so : ..invalid
(no type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libcopyrightlabelplugin.so : ..invalid
(no type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libdelimitedtextplugin.so : ..invalid (no
type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libdelimitedtextprovider.so : ... loaded
ok (null file filters)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libdiagramoverlay.so : ..invalid (no
type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libdisplacementplugin.so : ..invalid (no
type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libdxf2shpconverterplugin.so : ..invalid
(no type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libevis.so : ..invalid (no type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libgdalprovider.so : ... loaded ok (null
file filters)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libgeorefplugin.so : ..invalid (no type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libglobeplugin.so : ..invalid (no type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libgpsimporterplugin.so : ..invalid (no
type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libgpxprovider.so : ... loaded ok (null
file filters)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libgrassplugin.so : ...invalid (lib not
loadable): Cannot load library
/usr/local//lib/qgis/plugins/libgrassplugin.so: (libgrassprovider.so:
cannot open shared object file: No such file or directory)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libgrassprovider.so : ... loaded ok (null
file filters)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libgrassrasterprovider.so : ... loaded ok
(null file filters)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libinterpolationplugin.so : ..invalid (no
type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libmemoryprovider.so : ... loaded ok
(null file filters)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libnortharrowplugin.so : ..invalid (no
type)
/home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsproviderregistry.cpp:
217: (QgsProviderRegistry) Checking
/usr/local//lib/qgis/plugins/libofflineeditingplugin.so : ..invalid
(no type)
/home/timlinux/dev/cpp/Quantum-GIS/src/providers/ogr/qgsogrprovider.cpp:
1354: (createFilters) Driver count: 44
/home/timlinux/dev/cpp/Quantum-GIS/src/providers/ogr/qgsogrprovider.cpp:
1550: (createFilters) fileVectorFilters, unknown driver: REC
/home/timlinux/dev/cpp/Quantum-GIS/src/providers/ogr/qgsogrprovider.cpp:
1550: (createFilters) fileVectorFilters, unknown driver: Memory
/home/timlinux/dev/cpp/Quantum-GIS/src/providers/ogr/qgsogrprovider.cpp:
1550: (createFilters) fileVectorFilters, unknown driver: NAS

[Qgis-developer] cmake install and includes

2011-07-06 Thread David Burken

All,

Just some cmake feedback.  On linux when I do a cmake build on linux with

-DCMAKE_INSTALL_PREFIX=/usr/local

and do a:

make
make install

The includes go to:

/usr/local/include/qgis

Which is good:

So in my qgis plugin I namespace my includes like:

// QGIS Specific includes
#include qgis/qgisinterface.h

All is good, I have a single include path of /usr/local/include.

But on window includes install to:

C:\Program Files\qgis1.7.0\include

Note no qgis sub dir.

So then:
#include qgis/qgisinterface.h

Does not work.

So it would be nice if the install went one way or the other on all 
platforms.  I like the namespaced sub directory, i.e. 
install_prefix/include/qgis.


Just some feedback...

Take care,
Dave

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


Re: [Qgis-developer] The optimal size for SVG symbols

2011-07-06 Thread Andreas Neumann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Andrea,

There is no expected size of your SVG document. I would recommend
using a square size for your document.

Creating seamless patterns in SVG can be hard. The hard part is to make
sure that the tiles can repeat and one cannot see the tile borders.

Here is a small tutorial on how to create SVG patterns in Inkscape:
http://ffaat.pointclark.net/blog/archives/143-Creating-and-Adding-Custom-Patterns-to-Inkscape.html

I will later see at my workplace if I can find a pattern similar to what
you want.

For diagonal patterns I would recommend to create straight horizontal or
vertical lines and then set the pattern rotation. It is easier to create.

Note that in trunk there is now a new feature that allows you to
overwrite colors and other settings to re-use the same patterns for
different colors. See Sourcepole blog: http://www.sourcepole.ch/

Andreas


On 07/06/2011 10:00 PM, Andrea Peri wrote:
 Hi,
 
 I need to create many SVG symbol to use as fill for polygons rendering.
 
 Someone is preatty easy to do because the fill is a simple fill with
 diagonal lines.
 But some symbol is a more complex regular pattern of little object.
 I need to know the right size of the SVG symbol to have the correct reply of
 pattern without breaks.
 
 I try with 32x32 but it seem to be no optimal.
 
 An example:
 
 I need to do a fill with this pattern:
 
  *   *   *   *   *   *
*   *   *   *   *
  *   *   *   *   *   *
*   *   *   *   *
 
 I try to create a SVG with this pattern but when apply it the qgis renderize
 in this mode:
 
  *   *   *   *   *   *
*   *   *   *   *
*   *   *   *   *
*   *   *   *   *
 
 I guess this is due to wrong size of my SVG symbol that not is optimal for
 the pattern.
 Bu I don't know the size that qgis need to have.
 
 thx,
 
 
 
 
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOFTHRAAoJELiCsGDopvBCI3EIAKPq0UCVuxf92Kszz3CFrVE2
QWZYSTxl5MOlKltMwqDQkUTtsK0VI/Lr5eyyIJj5xTZK5/kpYakLbF4vx8Vovmzv
aubBUhRpWCE/6Zikrr7z5Z5PC9QrV3UZ8Nws68GMJKvMGbmW3rOZCr/l7i9qhc8R
/sFX7kBzZ3CcjmIENltB4OUMAx9qd8FqY6JY9wIbfzVQMHl4eALcz5/SrBCigFIg
rZdje5PGyjjDwkHreuv5rMOJtDnWIVTjHzwgzwqP0k/SID/LzCe9uLL20HtquvtF
8HvTlslqBIl58uQLqusOiN9FJ1uDFOcfSrMbSxuhcvCPB0AkBLRNopODJA8QTug=
=D9nb
-END PGP SIGNATURE-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Re: Fwd: [Qgis-user] QgsVectorLayer causes Failed to load error

2011-07-06 Thread leonidas
I'm trying to run the following example:
http://desktopgisbook.com/Creating_a_Standalone_GIS_Application_1
http://desktopgisbook.com/Creating_a_Standalone_GIS_Application_1 
I set *qgis_prefix = /usr/local*
but the script gives me the same error (Failed to load ) at layer =
QgsVectorLayer(mydata.shp, mydata, ogr)
My current sub-directories in /usr/local are:
   .
   |-bin
   |-etc
   |-games
   |-include
   |-lib
   |---python2.7
   |-dist-packages
   |-site-packages
   |---site_ruby
   |-1.8
   |---i686-linux
   |-sbin
   |-share
   |---ca-certificates
   |---fonts
   |---man
   |---ppd
   |---sgml
   |-declaration
   |-dtd
   |-entities
   |-misc
   |-stylesheet
   |---xml
   |-declaration
   |-entities
   |-misc
   |-schema
   |-src
 I also set qgis_prefix  to */usr/share* and* /usr/lib* but it also failed.


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fwd-Qgis-user-QgsVectorLayer-causes-Failed-to-load-error-tp6482726p6557120.html
Sent from the qgis-developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer