Re: [Qgis-user] plugin help

2012-07-12 Thread chathura silva
Is there any way to change it to editable mode ?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] beautiful maps made by QGIS

2012-07-12 Thread G. Allegri
Could you provide links to these resources?

giovanni

2012/7/12 Tyler Mitchell 

> Hi Maning,
>
> You gotta see some of Jeremy's (cc'd) forestry field maps, if you want
> some more technical examples.. I was quite impressed what he pulled off :)
>
> Tyler
>
> On 2012-07-11, at 6:37 PM, maning sambale wrote:
>
> > Dear everyone,
> >
> > I have a brief presentation on styling with QGIS and I want to
> > highlight some examples of really nice cartography made purely with
> > QGIS.
> > Most of my inspirations comes from Underdark and Tim Sutton's blogs.
> >
> > If others have examples of QGIS outputs you want to showcase, please
> > share a link.  Thanks!
> >
> > --
> > cheers,
> > maning
> > --
> > "Freedom is still the most radical idea of all" -N.Branden
> > wiki: http://esambale.wikispaces.com/
> > blog: http://epsg4253.wordpress.com/
> > --
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> -
> Tyler Mitchell, Publisher
> Locate Press, i...@locatepress.com
> Open Source "geo" Books
> http://www.locatepress.com
>
>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Polygonizer plugin

2012-07-12 Thread Micha Silver

  
  
Trying to install the Polygonizer plugin on Windows 7 32 bit and I'm
getting this error:

The plugin is broken. Python said:
126

Am I missing some dependency?? (python-shapely installed OK)
Thanks,
Micha
  

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


Re: [Qgis-user] plugin help

2012-07-12 Thread Richard Duivenvoorde

On 07/12/2012 09:16 AM, chathura silva wrote:

Is there any way to change it to editable mode ?


Please describe your problem a little more instead of one sentence 
questions, for others it also costs time to answer your question.


If you mean 'is it possible for a python plugin to set a layer in the 
modus editing' the answer is:


yes

but I think you also would like to see some pointers (after you tried to 
google a little ;-) ):


Have a look here:

http://qgis.org/pyqgis-cookbook/vector.html#modifying-vector-layers

I'm also setting a layer into editing mode, see

http://hub.qgis.org/projects/xytools/repository/revisions/a249004832f44334f9861483ff9d4da08bb91e81/entry/xytools.py

at line 334

Regards,

Richard Duivenvoorde


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


[Qgis-user] Which android tablet

2012-07-12 Thread watercress
Hi,

has anyone tested the performance of qgis on android.

I want to collect and store the position of 50 trouts tagged with radio
transmitters directly in the field.


What I did so far:
I have to aim at the targets from different locations at the river bank.
What I do now is simply draw lines on printed orthophotos. The fish is
located where the lines intersect. It is always quite a mess to
determine your own position. I could save the origin with a gps-device
but this takes too much time, would include "postprocessing" and adding
another step will increase the source of error.

... and it is not possible to walk into the stream ...


I am thinking of using a tablet, locally store the orthophotos (5 to 8
pieces, format: .jp2, each around 130 MB) and save the points (e.g.
postgis). All metadata could be entered at once. No paper work. I know
where I am and can easily store, edit,.. fish data in the field.

But I am bit worried about the performance. I takes about two til four
minutes to load those raster-layers at my desktop (Ubuntu 12.04, 16GB
Ram, QuadCore,...). The performance appears very poor.

What can I expect from a tablet solution? Anything missing in my chain
of thoughts?

I really appreciate any hints, ideas ,..I also would like to contribute
my experience as a case study for the qgis-website.

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


Re: [Qgis-user] Which android tablet

2012-07-12 Thread Bernhard Ströbl



Am 12.07.2012 11:48, schrieb watercr...@gmx.de:

Hi,

has anyone tested the performance of qgis on android.

I want to collect and store the position of 50 trouts tagged with radio
transmitters directly in the field.


What I did so far:
I have to aim at the targets from different locations at the river bank.
What I do now is simply draw lines on printed orthophotos. The fish is
located where the lines intersect. It is always quite a mess to
determine your own position. I could save the origin with a gps-device
but this takes too much time, would include "postprocessing" and adding
another step will increase the source of error.

... and it is not possible to walk into the stream ...


I am thinking of using a tablet, locally store the orthophotos (5 to 8
pieces, format: .jp2, each around 130 MB) and save the points (e.g.
postgis). All metadata could be entered at once. No paper work. I know
where I am and can easily store, edit,.. fish data in the field.

But I am bit worried about the performance. I takes about two til four
minutes to load those raster-layers at my desktop (Ubuntu 12.04, 16GB
Ram, QuadCore,...). The performance appears very poor.


This is weird. I am not a specialist with raster formats but one of my 
aerial photos (geotif) 281 MB loads and displays within seconds, this is 
with pyramids (maybe you need to build these?)
I even put some 50 of these photos into a GDAL virtual raster (VRT), it 
takes some 20 seconds to load but displays almost immediately.
My machine is similar to yours hardwarewise (less RAM, though) running 
OpenSUSE 64 bit.


Bernhard



What can I expect from a tablet solution? Anything missing in my chain
of thoughts?

I really appreciate any hints, ideas ,..I also would like to contribute
my experience as a case study for the qgis-website.

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





__ Information from ESET Mail Security, version of virus signature 
database 7291 (20120712) __

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


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


Re: [Qgis-user] Which android tablet

2012-07-12 Thread Tim Sutton
Hi

On Thu, Jul 12, 2012 at 12:01 PM, Bernhard Ströbl
 wrote:
>
>
> Am 12.07.2012 11:48, schrieb watercr...@gmx.de:
>
>> Hi,
>>
>> has anyone tested the performance of qgis on android.
>>
>> I want to collect and store the position of 50 trouts tagged with radio
>> transmitters directly in the field.
>>
>>
>> What I did so far:
>> I have to aim at the targets from different locations at the river bank.
>> What I do now is simply draw lines on printed orthophotos. The fish is
>> located where the lines intersect. It is always quite a mess to
>> determine your own position. I could save the origin with a gps-device
>> but this takes too much time, would include "postprocessing" and adding
>> another step will increase the source of error.
>>
>> ... and it is not possible to walk into the stream ...
>>
>>
>> I am thinking of using a tablet, locally store the orthophotos (5 to 8
>> pieces, format: .jp2, each around 130 MB) and save the points (e.g.
>> postgis). All metadata could be entered at once. No paper work. I know
>> where I am and can easily store, edit,.. fish data in the field.
>>
>> But I am bit worried about the performance. I takes about two til four
>> minutes to load those raster-layers at my desktop (Ubuntu 12.04, 16GB
>> Ram, QuadCore,...). The performance appears very poor.
>
>
> This is weird. I am not a specialist with raster formats but one of my
> aerial photos (geotif) 281 MB loads and displays within seconds, this is
> with pyramids (maybe you need to build these?)
> I even put some 50 of these photos into a GDAL virtual raster (VRT), it
> takes some 20 seconds to load but displays almost immediately.
> My machine is similar to yours hardwarewise (less RAM, though) running
> OpenSUSE 64 bit.
>

I think the jp2 drivers are quite slow. A nice solution is to load
your rasters into an mbtiles sqlite database - its not the best for
size, but its very good for performance.

Note it needs a recent (unreleased?) version of GDAL.. Otherwise
convert your data to tiffs as Bernhard has done and optimise them for
performace by e.g. creating pyramids.

Regards

Tim

> Bernhard
>
>
>>
>> What can I expect from a tablet solution? Anything missing in my chain
>> of thoughts?
>>
>> I really appreciate any hints, ideas ,..I also would like to contribute
>> my experience as a case study for the qgis-website.
>>
>> Regards,
>> Jens
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>
>
> __ Information from ESET Mail Security, version of virus signature
> database 7291 (20120712) __
>
> The message was checked by ESET Mail Security.
> http://www.eset.com
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
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-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] plugin help

2012-07-12 Thread chathura silva
I try to edit a vector layer using qgisaffine tool. But it says layer is
not in editabale mode. how can I cange it to editable mode




On Thu, Jul 12, 2012 at 1:27 AM, Richard Duivenvoorde
wrote:

> On 07/12/2012 09:16 AM, chathura silva wrote:
>
>> Is there any way to change it to editable mode ?
>>
>
> Please describe your problem a little more instead of one sentence
> questions, for others it also costs time to answer your question.
>
> If you mean 'is it possible for a python plugin to set a layer in the
> modus editing' the answer is:
>
> yes
>
> but I think you also would like to see some pointers (after you tried to
> google a little ;-) ):
>
> Have a look here:
>
> http://qgis.org/pyqgis-**cookbook/vector.html#**modifying-vector-layers
>
> I'm also setting a layer into editing mode, see
>
> http://hub.qgis.org/projects/**xytools/repository/revisions/**
> a249004832f44334f9861483ff9d4d**a08bb91e81/entry/xytools.py
>
> at line 334
>
> Regards,
>
> Richard Duivenvoorde
>
>
>
> __**_
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS-Anwendertreffen am 21. September in Kassel

2012-07-12 Thread Claas Leiner

Liebe QGIS-Anmwender,

Wie im letzten Jahr, wird es auch in diesem September ein 
deutschsprachiges Quantum-GIS-Anwendertreffen mit Vorträgen und 
Praxis-Workshops an der Universität Kassel geben. Otto Dassau 
(QGIS-Community-Team)  und Claas Leiner (Portal Gis und Geodaten an der 
Uni Kassel) organisieren das Treffen gemeinsam.


Wir suchen für den 21. September noch Referenten, die aus der Praxis 
über interessante Einsatzfelder von QGIS berichten können.


Wer einen interessanten Vorschlag für einen Vortrag anzubieten hat, 
schicke mir einfach eine Mail, (claas.lei...@uni-kassel.de)


Viele Grüße,

Claas Leiner

Info: http://qgis.org/en/user-meetings/kassel-092012.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis-user Digest, Vol 77, Issue 41

2012-07-12 Thread watercress
Am 12.07.2012 12:25, schrieb qgis-user-requ...@lists.osgeo.org:
> Message: 7
> Date: Thu, 12 Jul 2012 12:11:53 +0200
> From: Tim Sutton 
> To: Bernhard Str?bl 
> Cc: qgis-user@lists.osgeo.org
> Subject: Re: [Qgis-user] Which android tablet
> Message-ID:
>   
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi
>
> On Thu, Jul 12, 2012 at 12:01 PM, Bernhard Str?bl
>  wrote:
>>
>> Am 12.07.2012 11:48, schrieb watercr...@gmx.de:
>>
>>> Hi,
>>>
>>> has anyone tested the performance of qgis on android.
>>>
>>> I want to collect and store the position of 50 trouts tagged with radio
>>> transmitters directly in the field.
>>>
>>>
>>> What I did so far:
>>> I have to aim at the targets from different locations at the river bank.
>>> What I do now is simply draw lines on printed orthophotos. The fish is
>>> located where the lines intersect. It is always quite a mess to
>>> determine your own position. I could save the origin with a gps-device
>>> but this takes too much time, would include "postprocessing" and adding
>>> another step will increase the source of error.
>>>
>>> ... and it is not possible to walk into the stream ...
>>>
>>>
>>> I am thinking of using a tablet, locally store the orthophotos (5 to 8
>>> pieces, format: .jp2, each around 130 MB) and save the points (e.g.
>>> postgis). All metadata could be entered at once. No paper work. I know
>>> where I am and can easily store, edit,.. fish data in the field.
>>>
>>> But I am bit worried about the performance. I takes about two til four
>>> minutes to load those raster-layers at my desktop (Ubuntu 12.04, 16GB
>>> Ram, QuadCore,...). The performance appears very poor.
>>
>> This is weird. I am not a specialist with raster formats but one of my
>> aerial photos (geotif) 281 MB loads and displays within seconds, this is
>> with pyramids (maybe you need to build these?)
>> I even put some 50 of these photos into a GDAL virtual raster (VRT), it
>> takes some 20 seconds to load but displays almost immediately.
>> My machine is similar to yours hardwarewise (less RAM, though) running
>> OpenSUSE 64 bit.
>>
> I think the jp2 drivers are quite slow. A nice solution is to load
> your rasters into an mbtiles sqlite database - its not the best for
> size, but its very good for performance.
>
> Note it needs a recent (unreleased?) version of GDAL.. Otherwise
> convert your data to tiffs as Bernhard has done and optimise them for
> performace by e.g. creating pyramids.
>
> Regards

Hi Tim and Bernhard,

thanks a lot. the displaying performance highly increased after
converting the raster set to geotif.

Regards,

Jens

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


Re: [Qgis-user] CRS being read differently by 1.8 on different OS

2012-07-12 Thread Etienne Tourigny
The difference is *probably* due to differences in gdal and/or PROJ.4
versions in the two environments.
You can check that out with running 'gdalinfo ' or 'gdalsrsinfo
' on both enviromnents.

Could you post a link to the file (ideally a subset of it)?

Shapefile CRS recognition has suffered from many problems in the past
(which should be fixed in 1.8), but I haven't seen this kind of
problem with raster data.

Etienne

On Thu, Jul 12, 2012 at 2:19 AM, Ramon Andiñach  wrote:
> Hi,
>
> I realise that this probably isn't strictly a QGIS problem, but I've noticed 
> something odd about a raster file that I've been handed to look at.
>
> On MacOS (using William's 1.8 build), the file and its associated meta files 
> is reporting as a custom CRS (+proj=longlat +a=6378249.145 
> +b=6356514.966395495 +no_defs)
> On Win7-64bit (using OSGeo), the same file and associated meta files is 
> reporting as Cape EPSG:4222.
>
> This seems a little odd, and I wondered if anyone had any thoughts.
>
> -ramon.
> ___
> 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] plugin help

2012-07-12 Thread Richard Duivenvoorde


Hi,

ok, this is more clear :-)

You can toggle editing mode of a vector layer via the little crayon 
button or via menu layer/toggle editing


but looking into the code, which I downloaded from 
http://pyqgis.org/repo/contributed/


it seems to me that after every transformation, the result is 'commited' 
which toggles OFF again the edit mode...


If you feel brave, uncomment line 118 in qgsAffine.py:
# vlayer.commitChanges()

But maybe Mauricio can update the code for us, and also move his plugin 
to the new repositiry :-)


Regards,

Richard

ps I will send you my .py file offline


On 07/12/2012 12:25 PM, chathura silva wrote:

I try to edit a vector layer using qgisaffine tool. But it says layer is
not in editabale mode. how can I cange it to editable mode




On Thu, Jul 12, 2012 at 1:27 AM, Richard Duivenvoorde
mailto:rdmaili...@duif.net>> wrote:

On 07/12/2012 09:16 AM, chathura silva wrote:

Is there any way to change it to editable mode ?


Please describe your problem a little more instead of one sentence
questions, for others it also costs time to answer your question.

If you mean 'is it possible for a python plugin to set a layer in
the modus editing' the answer is:

yes

but I think you also would like to see some pointers (after you
tried to google a little ;-) ):

Have a look here:

http://qgis.org/pyqgis-__cookbook/vector.html#__modifying-vector-layers


I'm also setting a layer into editing mode, see


http://hub.qgis.org/projects/__xytools/repository/revisions/__a249004832f44334f9861483ff9d4d__a08bb91e81/entry/xytools.py



at line 334

Regards,

Richard Duivenvoorde



_
Qgis-user mailing list
Qgis-user@lists.osgeo.org 
http://lists.osgeo.org/__mailman/listinfo/qgis-user





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




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


Re: [Qgis-user] plugin help

2012-07-12 Thread chathura silva
hey Its difficult . Is there any simple way to change to edit mode


On Thu, Jul 12, 2012 at 5:41 AM, Richard Duivenvoorde
wrote:

>
> Hi,
>
> ok, this is more clear :-)
>
> You can toggle editing mode of a vector layer via the little crayon button
> or via menu layer/toggle editing
>
> but looking into the code, which I downloaded from http://pyqgis.org/repo/
> **contributed/ 
>
> it seems to me that after every transformation, the result is 'commited'
> which toggles OFF again the edit mode...
>
> If you feel brave, uncomment line 118 in qgsAffine.py:
> # vlayer.commitChanges()
>
> But maybe Mauricio can update the code for us, and also move his plugin to
> the new repositiry :-)
>
> Regards,
>
> Richard
>
> ps I will send you my .py file offline
>
>
>
> On 07/12/2012 12:25 PM, chathura silva wrote:
>
>> I try to edit a vector layer using qgisaffine tool. But it says layer is
>> not in editabale mode. how can I cange it to editable mode
>>
>>
>>
>>
>> On Thu, Jul 12, 2012 at 1:27 AM, Richard Duivenvoorde
>> mailto:rdmaili...@duif.net>> wrote:
>>
>> On 07/12/2012 09:16 AM, chathura silva wrote:
>>
>> Is there any way to change it to editable mode ?
>>
>>
>> Please describe your problem a little more instead of one sentence
>> questions, for others it also costs time to answer your question.
>>
>> If you mean 'is it possible for a python plugin to set a layer in
>> the modus editing' the answer is:
>>
>> yes
>>
>> but I think you also would like to see some pointers (after you
>> tried to google a little ;-) ):
>>
>> Have a look here:
>>
>> http://qgis.org/pyqgis-__**cookbook/vector.html#__**
>> modifying-vector-layers
>>
>> > modifying-vector-layers
>> >
>>
>> I'm also setting a layer into editing mode, see
>>
>> http://hub.qgis.org/projects/_**_xytools/repository/revisions/**__**
>> a249004832f44334f9861483ff9d4d**__a08bb91e81/entry/xytools.py
>>
>> > a249004832f44334f9861483ff9d4d**a08bb91e81/entry/xytools.py
>> >
>>
>> at line 334
>>
>> Regards,
>>
>> Richard Duivenvoorde
>>
>>
>>
>> __**___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org 
>> > >
>> 
>> http://lists.osgeo.org/__**mailman/listinfo/qgis-user
>> 
>> 
>> >
>>
>>
>>
>>
>>
>> __**_
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/**mailman/listinfo/qgis-user
>>
>>
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] plugin help

2012-07-12 Thread Giovanni Manghi
You may want to have a look at the editing toolbars and to the qgis
manual...
On Jul 12, 2012 1:55 PM, "chathura silva"  wrote:

>
> hey Its difficult . Is there any simple way to change to edit mode
>
>
> On Thu, Jul 12, 2012 at 5:41 AM, Richard Duivenvoorde  > wrote:
>
>>
>> Hi,
>>
>> ok, this is more clear :-)
>>
>> You can toggle editing mode of a vector layer via the little crayon
>> button or via menu layer/toggle editing
>>
>> but looking into the code, which I downloaded from
>> http://pyqgis.org/repo/**contributed/
>>
>> it seems to me that after every transformation, the result is 'commited'
>> which toggles OFF again the edit mode...
>>
>> If you feel brave, uncomment line 118 in qgsAffine.py:
>> # vlayer.commitChanges()
>>
>> But maybe Mauricio can update the code for us, and also move his plugin
>> to the new repositiry :-)
>>
>> Regards,
>>
>> Richard
>>
>> ps I will send you my .py file offline
>>
>>
>>
>> On 07/12/2012 12:25 PM, chathura silva wrote:
>>
>>> I try to edit a vector layer using qgisaffine tool. But it says layer is
>>> not in editabale mode. how can I cange it to editable mode
>>>
>>>
>>>
>>>
>>> On Thu, Jul 12, 2012 at 1:27 AM, Richard Duivenvoorde
>>> mailto:rdmaili...@duif.net>> wrote:
>>>
>>> On 07/12/2012 09:16 AM, chathura silva wrote:
>>>
>>> Is there any way to change it to editable mode ?
>>>
>>>
>>> Please describe your problem a little more instead of one sentence
>>> questions, for others it also costs time to answer your question.
>>>
>>> If you mean 'is it possible for a python plugin to set a layer in
>>> the modus editing' the answer is:
>>>
>>> yes
>>>
>>> but I think you also would like to see some pointers (after you
>>> tried to google a little ;-) ):
>>>
>>> Have a look here:
>>>
>>> http://qgis.org/pyqgis-__**cookbook/vector.html#__**
>>> modifying-vector-layers
>>>
>>> >> modifying-vector-layers
>>> >
>>>
>>> I'm also setting a layer into editing mode, see
>>>
>>> http://hub.qgis.org/projects/_**_xytools/repository/revisions/**__**
>>> a249004832f44334f9861483ff9d4d**__a08bb91e81/entry/xytools.py
>>>
>>> >> a249004832f44334f9861483ff9d4d**a08bb91e81/entry/xytools.py
>>> >
>>>
>>> at line 334
>>>
>>> Regards,
>>>
>>> Richard Duivenvoorde
>>>
>>>
>>>
>>> __**___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org 
>>> >> >
>>> 
>>> http://lists.osgeo.org/__**mailman/listinfo/qgis-user
>>> 
>>> 
>>> >
>>>
>>>
>>>
>>>
>>>
>>> __**_
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> http://lists.osgeo.org/**mailman/listinfo/qgis-user
>>>
>>>
>>
>>
>
> ___
> Qgis-user 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] plugin help

2012-07-12 Thread Nathan Woodrow
:S difficult?

layer.startEditing()
layer.commitChanges()

On Thu, Jul 12, 2012 at 10:54 PM, chathura silva  wrote:
>
> hey Its difficult . Is there any simple way to change to edit mode
>
>
>
> On Thu, Jul 12, 2012 at 5:41 AM, Richard Duivenvoorde 
> wrote:
>>
>>
>> Hi,
>>
>> ok, this is more clear :-)
>>
>> You can toggle editing mode of a vector layer via the little crayon button
>> or via menu layer/toggle editing
>>
>> but looking into the code, which I downloaded from
>> http://pyqgis.org/repo/contributed/
>>
>> it seems to me that after every transformation, the result is 'commited'
>> which toggles OFF again the edit mode...
>>
>> If you feel brave, uncomment line 118 in qgsAffine.py:
>> # vlayer.commitChanges()
>>
>> But maybe Mauricio can update the code for us, and also move his plugin to
>> the new repositiry :-)
>>
>> Regards,
>>
>> Richard
>>
>> ps I will send you my .py file offline
>>
>>
>>
>> On 07/12/2012 12:25 PM, chathura silva wrote:
>>>
>>> I try to edit a vector layer using qgisaffine tool. But it says layer is
>>> not in editabale mode. how can I cange it to editable mode
>>>
>>>
>>>
>>>
>>> On Thu, Jul 12, 2012 at 1:27 AM, Richard Duivenvoorde
>>> mailto:rdmaili...@duif.net>> wrote:
>>>
>>> On 07/12/2012 09:16 AM, chathura silva wrote:
>>>
>>> Is there any way to change it to editable mode ?
>>>
>>>
>>> Please describe your problem a little more instead of one sentence
>>> questions, for others it also costs time to answer your question.
>>>
>>> If you mean 'is it possible for a python plugin to set a layer in
>>> the modus editing' the answer is:
>>>
>>> yes
>>>
>>> but I think you also would like to see some pointers (after you
>>> tried to google a little ;-) ):
>>>
>>> Have a look here:
>>>
>>>
>>> http://qgis.org/pyqgis-__cookbook/vector.html#__modifying-vector-layers
>>>
>>> 
>>>
>>> I'm also setting a layer into editing mode, see
>>>
>>>
>>> http://hub.qgis.org/projects/__xytools/repository/revisions/__a249004832f44334f9861483ff9d4d__a08bb91e81/entry/xytools.py
>>>
>>>
>>> 
>>>
>>> at line 334
>>>
>>> Regards,
>>>
>>> Richard Duivenvoorde
>>>
>>>
>>>
>>> _
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org 
>>> http://lists.osgeo.org/__mailman/listinfo/qgis-user
>>> 
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
>>
>
>
> ___
> Qgis-user 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] plugin help

2012-07-12 Thread Nathan Woodrow
and if you want to enabled editing for a layer in the UI.  Right-click
Layer in Legend -> Enabled Editing...

On Thu, Jul 12, 2012 at 10:57 PM, Nathan Woodrow  wrote:
> :S difficult?
>
> layer.startEditing()
> layer.commitChanges()
>
> On Thu, Jul 12, 2012 at 10:54 PM, chathura silva  wrote:
>>
>> hey Its difficult . Is there any simple way to change to edit mode
>>
>>
>>
>> On Thu, Jul 12, 2012 at 5:41 AM, Richard Duivenvoorde 
>> wrote:
>>>
>>>
>>> Hi,
>>>
>>> ok, this is more clear :-)
>>>
>>> You can toggle editing mode of a vector layer via the little crayon button
>>> or via menu layer/toggle editing
>>>
>>> but looking into the code, which I downloaded from
>>> http://pyqgis.org/repo/contributed/
>>>
>>> it seems to me that after every transformation, the result is 'commited'
>>> which toggles OFF again the edit mode...
>>>
>>> If you feel brave, uncomment line 118 in qgsAffine.py:
>>> # vlayer.commitChanges()
>>>
>>> But maybe Mauricio can update the code for us, and also move his plugin to
>>> the new repositiry :-)
>>>
>>> Regards,
>>>
>>> Richard
>>>
>>> ps I will send you my .py file offline
>>>
>>>
>>>
>>> On 07/12/2012 12:25 PM, chathura silva wrote:

 I try to edit a vector layer using qgisaffine tool. But it says layer is
 not in editabale mode. how can I cange it to editable mode




 On Thu, Jul 12, 2012 at 1:27 AM, Richard Duivenvoorde
 mailto:rdmaili...@duif.net>> wrote:

 On 07/12/2012 09:16 AM, chathura silva wrote:

 Is there any way to change it to editable mode ?


 Please describe your problem a little more instead of one sentence
 questions, for others it also costs time to answer your question.

 If you mean 'is it possible for a python plugin to set a layer in
 the modus editing' the answer is:

 yes

 but I think you also would like to see some pointers (after you
 tried to google a little ;-) ):

 Have a look here:


 http://qgis.org/pyqgis-__cookbook/vector.html#__modifying-vector-layers

 

 I'm also setting a layer into editing mode, see


 http://hub.qgis.org/projects/__xytools/repository/revisions/__a249004832f44334f9861483ff9d4d__a08bb91e81/entry/xytools.py


 

 at line 334

 Regards,

 Richard Duivenvoorde



 _
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org 
 http://lists.osgeo.org/__mailman/listinfo/qgis-user
 





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

>>>
>>>
>>
>>
>> ___
>> Qgis-user 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] Which android tablet

2012-07-12 Thread Richard Greenwood
As others have noted, your image performance is very bad. You can
convert your JP2 to TIFF with internal JPEG compression with
gdal_translate. You will get similar file size but I think much better
performance. Something like:

gdal_translate sourceImage.jp2 outputImage.tif -co COMPRESS=JPEG -co
PHOTOMETRIC=YCBCR

You can also use GDAL to add overviews (pyramid) with the following:

gdaladdo.exe --config COMPRESS_OVERVIEW JPEG -r average -ro --config
PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW PIXEL
sourceImage.jp2f 2 4 8 16 32 64 128

Rich

On Thu, Jul 12, 2012 at 4:11 AM, Tim Sutton  wrote:
> Hi
>
> On Thu, Jul 12, 2012 at 12:01 PM, Bernhard Ströbl
>  wrote:
>>
>>
>> Am 12.07.2012 11:48, schrieb watercr...@gmx.de:
>>
>>> Hi,
>>>
>>> has anyone tested the performance of qgis on android.
>>>
>>> I want to collect and store the position of 50 trouts tagged with radio
>>> transmitters directly in the field.
>>>
>>>
>>> What I did so far:
>>> I have to aim at the targets from different locations at the river bank.
>>> What I do now is simply draw lines on printed orthophotos. The fish is
>>> located where the lines intersect. It is always quite a mess to
>>> determine your own position. I could save the origin with a gps-device
>>> but this takes too much time, would include "postprocessing" and adding
>>> another step will increase the source of error.
>>>
>>> ... and it is not possible to walk into the stream ...
>>>
>>>
>>> I am thinking of using a tablet, locally store the orthophotos (5 to 8
>>> pieces, format: .jp2, each around 130 MB) and save the points (e.g.
>>> postgis). All metadata could be entered at once. No paper work. I know
>>> where I am and can easily store, edit,.. fish data in the field.
>>>
>>> But I am bit worried about the performance. I takes about two til four
>>> minutes to load those raster-layers at my desktop (Ubuntu 12.04, 16GB
>>> Ram, QuadCore,...). The performance appears very poor.
>>
>>
>> This is weird. I am not a specialist with raster formats but one of my
>> aerial photos (geotif) 281 MB loads and displays within seconds, this is
>> with pyramids (maybe you need to build these?)
>> I even put some 50 of these photos into a GDAL virtual raster (VRT), it
>> takes some 20 seconds to load but displays almost immediately.
>> My machine is similar to yours hardwarewise (less RAM, though) running
>> OpenSUSE 64 bit.
>>
>
> I think the jp2 drivers are quite slow. A nice solution is to load
> your rasters into an mbtiles sqlite database - its not the best for
> size, but its very good for performance.
>
> Note it needs a recent (unreleased?) version of GDAL.. Otherwise
> convert your data to tiffs as Bernhard has done and optimise them for
> performace by e.g. creating pyramids.
>
> Regards
>
> Tim
>
>> Bernhard
>>
>>
>>>
>>> What can I expect from a tablet solution? Anything missing in my chain
>>> of thoughts?
>>>
>>> I really appreciate any hints, ideas ,..I also would like to contribute
>>> my experience as a case study for the qgis-website.
>>>
>>> Regards,
>>> Jens
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>>
>>
>>
>> __ Information from ESET Mail Security, version of virus signature
>> database 7291 (20120712) __
>>
>> The message was checked by ESET Mail Security.
>> http://www.eset.com
>>
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> --
> 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-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
Richard Greenwood
richard.greenw...@gmail.com
www.greenwoodmap.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] google maps processing

2012-07-12 Thread chathura silva
Through the openlayers I displayed google satellite map in QGIS .

Is there any way to extract the co-ordinates of the "actual road " in the
image ? (No the vector layer co-ordinates)
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] google maps processing

2012-07-12 Thread Giovanni Manghi
http://www.catb.org/~esr/faqs/smart-questions.html
On Jul 12, 2012 3:18 PM, "chathura silva"  wrote:

> Through the openlayers I displayed google satellite map in QGIS .
>
> Is there any way to extract the co-ordinates of the "actual road " in the
> image ? (No the vector layer co-ordinates)
>
> ___
> 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] contour plugin

2012-07-12 Thread David M. Lawrence

Dear all:

I tried all of this -- contour does work on my machine with a dataset I 
downloaded from an online tutorial, so I think the problem may be with 
my data instead.  The tutorial's data were obtained from an evenly 
spaced grid.


My data are not evenly spaced. They are soundings (depth measurements) 
from a quarry linked to geographic data obtained via a GPS receiver.  
The measurements are irregularly spaced.


The latest version of the data set has more than 900 points covering 75 
percent of the aerial extent of a quarry.  I've been running the contour 
procedure for 12 hours now.  The contour dialog box indicates it is "not 
responding," but I know from other software that that may mean the 
contour procedure is actually thinking.


Every time I check Task Manager (I'm running QGIS Wroclaw on Windows 
7-64) the number of processes seems to fluctuate around 50, with an 
observed range of 42 to 52.  The amount of memory consumed ranges from 
68,000 Kb to a little more than 100,000 Kb.


From this, I consider the hypothesis that contour is working more 
likely than the hypothesis that it has frozen.  Comments, anyone?


Thanks again for your time.

Sincerely,

Dave Lawrence

On 7/10/2012 3:58 AM, Alister Hood wrote:

Anyway, since you seem to be able to start the plugin, your problem doesn't 
appear to be with getting it all installed.  Some ideas:
- Try  the plugin on an even smaller dataset to see if it works (If I remember 
correctly, I think it might be quite slow, but several hours for 400 points 
does seem like a very long time).
- When the plugin appears to be frozen, can you look in the windows process 
manager to see if it is actually doing any work?
- Remove the separate Python and all the associated junk to see if that is 
affecting QGIS.  (But I doubt that it is)
- Provide your data for someone else to check that it works fine on their 
system.
Also, I could be wrong, but I think I remember this plugin freezing for me, and 
then somehow working fine when I tried it again with exactly the same 
options... have you tried it a second time?

Regards,
Alister



--
--
 David M. Lawrence| Home:  (804) 559-9786
 6467 Hanna Drive | Cell:  (804) 305-5234
 Mechanicsville, VA 23111 | Email: d...@fuzzo.com
 USA  | http:  http://fuzzo.com
--

"All drains lead to the ocean."  -- Gill, Finding Nemo

"We have met the enemy and he is us."  -- Pogo

"No trespassing
 4/17 of a haiku"  --  Richard Brautigan



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


Re: [Qgis-user] CRS being read differently by 1.8 on different OS

2012-07-12 Thread Ramon Andiñach
Hmm ok. I don't think I'm able to, unfortunately.

However, it probably isn't needed. I've just re-opened everything and 
everything behaved as expected.

So my current best thought is that I did something differently in at work this 
morning and in my current flu and bike related brain stupor forgot what that 
I'd done it.

Apologies for the racket.

-ramon.

On 12/07/2012, at 19:57 , Etienne Tourigny wrote:

> The difference is *probably* due to differences in gdal and/or PROJ.4
> versions in the two environments.
> You can check that out with running 'gdalinfo ' or 'gdalsrsinfo
> ' on both enviromnents.
> 
> Could you post a link to the file (ideally a subset of it)?
> 
> Shapefile CRS recognition has suffered from many problems in the past
> (which should be fixed in 1.8), but I haven't seen this kind of
> problem with raster data.
> 
> Etienne
> 
> On Thu, Jul 12, 2012 at 2:19 AM, Ramon Andiñach  
> wrote:
>> Hi,
>> 
>> I realise that this probably isn't strictly a QGIS problem, but I've noticed 
>> something odd about a raster file that I've been handed to look at.
>> 
>> On MacOS (using William's 1.8 build), the file and its associated meta files 
>> is reporting as a custom CRS (+proj=longlat +a=6378249.145 
>> +b=6356514.966395495 +no_defs)
>> On Win7-64bit (using OSGeo), the same file and associated meta files is 
>> reporting as Cape EPSG:4222.
>> 
>> This seems a little odd, and I wondered if anyone had any thoughts.
>> 
>> -ramon.
>> ___
>> 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] google maps processing

2012-07-12 Thread chathura silva
Hello all

I displayed Google satellite map via open layers using QGIS. In a satellite
map we can see the actual geographical road network. Is there any way to
extract coordinates of that actual road network ?

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


Re: [Qgis-user] google maps processing

2012-07-12 Thread 欧阳乐岩
You do not get the road network as a vector layer but as part of an 
image downloaded from Google servers. In that case, it would be very 
difficult (and probably illegal) to extract it automatically.


Depending on the area you are considering, you may have better luck with 
OpenStreetMap data. They can be downloaded as vector entities.



On 07/12/2012 10:58 PM, chathura silva wrote:

Hello all

I displayed Google satellite map via open layers using QGIS. In a
satellite map we can see the actual geographical road network. Is there
any way to extract coordinates of that actual road network ?

thank you


___
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] contour plugin

2012-07-12 Thread Micha Silver

On 07/12/2012 05:23 PM, David M. Lawrence wrote:

Dear all:

I tried all of this -- contour does work on my machine with a dataset 
I downloaded from an online tutorial, so I think the problem may be 
with my data instead.  The tutorial's data were obtained from an 
evenly spaced grid.


My data are not evenly spaced. They are soundings (depth measurements) 
from a quarry linked to geographic data obtained via a GPS receiver.  
The measurements are irregularly spaced.


In that case I'd definitely suggest you first create an interpolated 
raster (DEM) from the points. Then use that raster to extract contour 
lines. GRASS is one possible tool for this. The relevant modules would be:


v.in.ascii (to get your points into a GRASS point vector)
g.region (to set the region to the area covered by the points, and 
choose a suitable resolution)

v.surf.rst (to interpolate the points and create a DEM raster)
r.contour (to delineate vector contour lines from the DEM )
v.out.ogr (if you need to export the GRASS contour vector to other 
formats)


WIth only 900 points the above should be no more than a few minutes...

HTH,
Micha



The latest version of the data set has more than 900 points covering 
75 percent of the aerial extent of a quarry.  I've been running the 
contour procedure for 12 hours now.  The contour dialog box indicates 
it is "not responding," but I know from other software that that may 
mean the contour procedure is actually thinking.


Every time I check Task Manager (I'm running QGIS Wroclaw on Windows 
7-64) the number of processes seems to fluctuate around 50, with an 
observed range of 42 to 52.  The amount of memory consumed ranges from 
68,000 Kb to a little more than 100,000 Kb.


From this, I consider the hypothesis that contour is working more 
likely than the hypothesis that it has frozen.  Comments, anyone?


Thanks again for your time.

Sincerely,

Dave Lawrence

On 7/10/2012 3:58 AM, Alister Hood wrote:
Anyway, since you seem to be able to start the plugin, your problem 
doesn't appear to be with getting it all installed.  Some ideas:
- Try  the plugin on an even smaller dataset to see if it works (If I 
remember correctly, I think it might be quite slow, but several hours 
for 400 points does seem like a very long time).
- When the plugin appears to be frozen, can you look in the windows 
process manager to see if it is actually doing any work?
- Remove the separate Python and all the associated junk to see if 
that is affecting QGIS.  (But I doubt that it is)
- Provide your data for someone else to check that it works fine on 
their system.
Also, I could be wrong, but I think I remember this plugin freezing 
for me, and then somehow working fine when I tried it again with 
exactly the same options... have you tried it a second time?


Regards,
Alister






--
Micha Silver
GIS Consultant, Arava Development Co.
http://www.surfaces.co.il

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


Re: [Qgis-user] contour plugin

2012-07-12 Thread David J. Bakeman

Micha Silver wrote:

On 07/12/2012 05:23 PM, David M. Lawrence wrote:

Dear all:

I tried all of this -- contour does work on my machine with a dataset 
I downloaded from an online tutorial, so I think the problem may be 
with my data instead.  The tutorial's data were obtained from an 
evenly spaced grid.


My data are not evenly spaced. They are soundings (depth 
measurements) from a quarry linked to geographic data obtained via a 
GPS receiver.  The measurements are irregularly spaced.


In that case I'd definitely suggest you first create an interpolated 
raster (DEM) from the points. Then use that raster to extract contour 
lines. GRASS is one possible tool for this. The relevant modules would 
be:


v.in.ascii (to get your points into a GRASS point vector)
g.region (to set the region to the area covered by the points, and 
choose a suitable resolution)

v.surf.rst (to interpolate the points and create a DEM raster)
r.contour (to delineate vector contour lines from the DEM )
v.out.ogr (if you need to export the GRASS contour vector to other 
formats)


WIth only 900 points the above should be no more than a few minutes...
I've had trouble using grass (my fault not grass's:) but once you have 
your vector layer in qgis you can also use the Raster/Analysis/Grid tool 
to create the raster (this uses the gdal tool gdal_grid) and then use 
the Raster/Extraction/Contour (again this uses another gdal tool).  I've 
had pretty good luck with this method.  You probably have to save your 
vector data as a shapefile first but gdal also has direct support for 
csv so maybe not.


HTH,
Micha



The latest version of the data set has more than 900 points covering 
75 percent of the aerial extent of a quarry.  I've been running the 
contour procedure for 12 hours now.  The contour dialog box indicates 
it is "not responding," but I know from other software that that may 
mean the contour procedure is actually thinking.


Every time I check Task Manager (I'm running QGIS Wroclaw on Windows 
7-64) the number of processes seems to fluctuate around 50, with an 
observed range of 42 to 52.  The amount of memory consumed ranges 
from 68,000 Kb to a little more than 100,000 Kb.


From this, I consider the hypothesis that contour is working more 
likely than the hypothesis that it has frozen.  Comments, anyone?


Thanks again for your time.

Sincerely,

Dave Lawrence

On 7/10/2012 3:58 AM, Alister Hood wrote:
Anyway, since you seem to be able to start the plugin, your problem 
doesn't appear to be with getting it all installed.  Some ideas:
- Try  the plugin on an even smaller dataset to see if it works (If 
I remember correctly, I think it might be quite slow, but several 
hours for 400 points does seem like a very long time).
- When the plugin appears to be frozen, can you look in the windows 
process manager to see if it is actually doing any work?
- Remove the separate Python and all the associated junk to see if 
that is affecting QGIS.  (But I doubt that it is)
- Provide your data for someone else to check that it works fine on 
their system.
Also, I could be wrong, but I think I remember this plugin freezing 
for me, and then somehow working fine when I tried it again with 
exactly the same options... have you tried it a second time?


Regards,
Alister








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


Re: [Qgis-user] nviz error

2012-07-12 Thread Giovanni Manghi
Hi André, was tcltk installed?
On Jul 10, 2012 11:24 PM, "ALT SHN"  wrote:

> Hi everyone,
>
> I'm having this error (see attachment), everytime I try to start nvix from
> GRASS plugin.
> I reinstalled tcl from osgeo4W, but the error persists.
>
> However if I start nviz engine from GRASS GIS everything goes well. Any
> idea of what might be wrong?
>
> This occurs on a Win7 64bits on both 1.8 and master versions.
>
> Best Regards
>
> --
> ---
> Associação Leonel Trindade
> SOCIEDADE DE HISTÓRIA NATURAL
>
> Apartado 25 2564-909 Torres Vedras Portugal
> Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras
>
> Laboratório de Paleontologia e Paleoecologia: Polígono Industrial do Alto
> do Ameal 2565-641 Ramalhal
> http://alt-shn.blogspot.com
> www.alt-shn.org
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Sextante on Mac OS X: the solution for running R (problem of shell = True with Python subprocess on Unix systems)

2012-07-12 Thread Martin Laloux
I could not use R commands on Mac OS X, so, like with GRASS, I decided to
analyze the Python scripts and the sextante log to understand what happens

This time, no error in the log but no results either, no resulting
shapefile in /Users/martinlaloux/sextante/tempdata. The temporary script
/Users/martinlaloux/sextante/*sextante_script.r* has been created  so the
problem is again in the parameters of the Python module subprocess in *
Rutils.py* (line 58):

command = ["R", "CMD","BATCH", "--vanilla", RUtils.getRScriptFilename(),
RUtils.getConsoleOutputFilename()]
proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True)

Usually when I want to run an R script in Python, I use the command (see
"QGIS: run Python scripts from the Python Console  or with Script Runner
(without creating an extension)" (in french  QGIS : lancer des scripts
Python ou des commandes Shell depuis la Console Python ou avec Script
Runner

):

subprocess.Popen(['Rscript','sextante_script.r'],stdout=subprocess.PIPE))
-> *works*

*But what about the solution of the script ?*
If I try to run the procedure directly in the Python shell (with
sextante_script.r obtained by the script):

>>> import subprocess
>>> doc=subprocess.Popen(['R', 'CMD', 'BATCH',
'sextante_script.r'],stdout=subprocess.PIPE) -> *works*
>>> doc=subprocess.Popen(['R', 'CMD', 'BATCH',
'sextante_script.r'],stdout=subprocess.PIPE,
stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True) ->
*works*
>>> doc=subprocess.Popen(['R', 'CMD', 'BATCH', 'sextante_script.r'], shell=
True, stdout=subprocess.PIPE,
stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True) ->
*no result *

*Why ? *
*
The problem is shell= True* *with Unix systems. *I have already
encountered this
problem many times in my work
**A good explanation is given in the stackoverflow.com question: Getting
output from Python script in Python
tests

* "If you're using shell=True, don't pass the program and its arguments as
a list*"  *but whith a string*

- replacing the line 58 of Rutil.py by

 *command = "R CMD BATCH --vanilla " + RUtils.getRScriptFilename() + "
"+ RUtils.getConsoleOutputFilename()*
 proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True)
*
works because the result of command is a string*

- or
  command = ["R", "CMD","BATCH", "--vanilla",
RUtils.getRScriptFilename(), RUtils.getConsoleOutputFilename()]
  *proc = subprocess.Popen(command, stdout=subprocess.PIPE,
stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True)*

*works also because shell=false.*

The complete explanation is (from the question of stackoverflow):

> *On Unix, with shell=True: If args is a string, it specifies the command
> string to execute through the shell. This means that the string must be
> formatted exactly as it would be when typed at the shell prompt. This
> includes, for example, quoting or backslash escaping filenames with spaces
> in them. If args is a sequence, the first item specifies the command
> string, and any additional items will be treated as additional arguments to
> the shell itself.*
>
> I hope you understand why the original script does not work on Mac OS X, a 
> Unix
system. By modifying line 58, no more problem
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] plugin help

2012-07-12 Thread Mauricio de Paulo

Hi, thanks for the suggestion, Richard.
I accepted the change suggested and moved the plugin into the new 
metadata system and repository.
I hope that in the following weeks we can already download it. When the 
project gets approved, I'll start the git repository that should make 
the contribution process more fluid.

All the best,
Mauricio de Paulo

On 07/12/2012 09:41 AM, Richard Duivenvoorde wrote:


Hi,

ok, this is more clear :-)

You can toggle editing mode of a vector layer via the little crayon 
button or via menu layer/toggle editing


but looking into the code, which I downloaded from 
http://pyqgis.org/repo/contributed/


it seems to me that after every transformation, the result is 
'commited' which toggles OFF again the edit mode...


If you feel brave, uncomment line 118 in qgsAffine.py:
# vlayer.commitChanges()

But maybe Mauricio can update the code for us, and also move his 
plugin to the new repositiry :-)


Regards,

Richard

ps I will send you my .py file offline


On 07/12/2012 12:25 PM, chathura silva wrote:

I try to edit a vector layer using qgisaffine tool. But it says layer is
not in editabale mode. how can I cange it to editable mode




On Thu, Jul 12, 2012 at 1:27 AM, Richard Duivenvoorde
mailto:rdmaili...@duif.net>> wrote:

On 07/12/2012 09:16 AM, chathura silva wrote:

Is there any way to change it to editable mode ?


Please describe your problem a little more instead of one sentence
questions, for others it also costs time to answer your question.

If you mean 'is it possible for a python plugin to set a layer in
the modus editing' the answer is:

yes

but I think you also would like to see some pointers (after you
tried to google a little ;-) ):

Have a look here:


http://qgis.org/pyqgis-__cookbook/vector.html#__modifying-vector-layers



I'm also setting a layer into editing mode, see


http://hub.qgis.org/projects/__xytools/repository/revisions/__a249004832f44334f9861483ff9d4d__a08bb91e81/entry/xytools.py



at line 334

Regards,

Richard Duivenvoorde



_
Qgis-user mailing list
Qgis-user@lists.osgeo.org 
http://lists.osgeo.org/__mailman/listinfo/qgis-user





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





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


[Qgis-user] Atlas Plugin

2012-07-12 Thread Lee Hachadoorian
Recently used the Atlas plugin for the first time, and I think it's
great. There is one problem I am having which is maybe a bit unusual,
and I wonder if there is a way to handle it in Atlas or if someone has
figured out a workaround. Basically, I am mapping nominal data with a
large number of categories, using differently colored polygons
(categorical symbolization). The entire list of categories in my area
of interest is so large that the legend just runs off the page in the
Print Composer. But only a small subset (usually 5-10) of the
categories appears in any given zone. If I were creating each map
manually, I would only show the categories that appear in the
currently displayed zone.

Currently I'm getting around this by doing subsets of neighboring
zones, rather than the entire study area. I still have many unused
categories on each map, but at least the legend is small enough to fit
on the map. Has someone with experience with Atlas come up with a
better way to do this?

Thanks,
--Lee

-- 
Lee Hachadoorian
PhD, Earth & Environmental Sciences (Geography)
Research Associate, CUNY Center for Urban Research
http://freecity.commons.gc.cuny.edu/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] contour plugin

2012-07-12 Thread Alister Hood
Hi again,

> Date: Thu, 12 Jul 2012 10:23:13 -0400
> From: "David M. Lawrence" 
> To: qgis-user@lists.osgeo.org
> Subject: Re: [Qgis-user] contour plugin
> Message-ID: <4ffeddd1.6060...@fuzzo.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Dear all:
> 
> I tried all of this -- contour does work on my machine with a dataset I
> downloaded from an online tutorial, so I think the problem may be with
> my data instead.  The tutorial's data were obtained from an evenly
> spaced grid.
> 
> My data are not evenly spaced. They are soundings (depth measurements)
> from a quarry linked to geographic data obtained via a GPS receiver.
> The measurements are irregularly spaced.

For what it's worth, I've only ever tried the contour plugin with irregular 
points.
But it may be very slow for datasets that size.  Try what David suggested; it 
should be fast:

Raster/Analysis/Grid
Raster/Extraction/Contour

> The latest version of the data set has more than 900 points covering 75
> percent of the aerial extent of a quarry.  I've been running the contour
> procedure for 12 hours now.  The contour dialog box indicates it is "not
> responding," but I know from other software that that may mean the
> contour procedure is actually thinking.
> 
> Every time I check Task Manager (I'm running QGIS Wroclaw on Windows
> 7-64) the number of processes seems to fluctuate around 50, with an
> observed range of 42 to 52.  The amount of memory consumed ranges from
> 68,000 Kb to a little more than 100,000 Kb.

It's worth looking at the CPU column (you might need to use View>Select 
columns).  If it is actually working, QGIS should almost fully use 1 
processor/core i.e. it should show up as 50% on a dual core machine.  If it 
shows up not using any CPU then something has gone wrong.  (It wouldn't be the 
case here, but sometimes you can identify that a task has a bottleneck reading 
data across a network or something, because it is only using a small amount of 
CPU.)
 
>  From this, I consider the hypothesis that contour is working more
> likely than the hypothesis that it has frozen.  Comments, anyone?

Yes, I think so.
 
Regards,
Alister
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Atlas Plugin

2012-07-12 Thread G. Allegri
Hi Lee.
AFAIK Atlas cannot do that but it would be an improvement to consider in
the ongoing project to refactor the plugin.

Giovanni

Inviato da dispositivo mobile
Il giorno 13/lug/2012 01.07, "Lee Hachadoorian" 
ha scritto:

> Recently used the Atlas plugin for the first time, and I think it's
> great. There is one problem I am having which is maybe a bit unusual,
> and I wonder if there is a way to handle it in Atlas or if someone has
> figured out a workaround. Basically, I am mapping nominal data with a
> large number of categories, using differently colored polygons
> (categorical symbolization). The entire list of categories in my area
> of interest is so large that the legend just runs off the page in the
> Print Composer. But only a small subset (usually 5-10) of the
> categories appears in any given zone. If I were creating each map
> manually, I would only show the categories that appear in the
> currently displayed zone.
>
> Currently I'm getting around this by doing subsets of neighboring
> zones, rather than the entire study area. I still have many unused
> categories on each map, but at least the legend is small enough to fit
> on the map. Has someone with experience with Atlas come up with a
> better way to do this?
>
> Thanks,
> --Lee
>
> --
> Lee Hachadoorian
> PhD, Earth & Environmental Sciences (Geography)
> Research Associate, CUNY Center for Urban Research
> http://freecity.commons.gc.cuny.edu/
> ___
> 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