Re: [Qgis-developer] Plugin reorganization (again)

2011-12-14 Thread Paolo Cavallini

Il 14/12/2011 19:39, Alexander Bruy ha scritto:

Unchanged plugins are (they still located under Plugins menu):
  - eVis

database?

  - MapServer export
  - OpenStreetMap

I suggest a new tag: web

  - RoadGraph

vector

Many thanks.

--
Paolo Cavallini
See: http://www.faunalia.it/pc

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


Re: [Qgis-developer] Plugin reorganization (again)

2011-12-14 Thread Paolo Cavallini

Il 15/12/2011 06:38, Alister Hood ha scritto:

Even with all the plugins in one menu they can be hard to find - there
are tickets about this:
http://hub.qgis.org/issues/4069
http://hub.qgis.org/issues/1734

Do you think my latest suggestion at #4069 would work?:

Hi all.
Why not adding a compulsory tag "section": raster, vector, database, 
web, miscellaneous?

All the best.

--
Paolo Cavallini
See: http://www.faunalia.it/pc

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


Re: [Qgis-developer] Georeferencer produces wrong (shifted) result

2011-12-14 Thread Agustin Lobo
Manuel answers a message I  sent to him only. He includes all relevant
parts of my message except the link to the arcgis result:
https://sites.google.com/site/openfiles2/home/ilerfly125v2geoarcgis.7z?attredirects=0&d=1

Manuel,
There is no wld file for the input layer
The GCP table with errors can be seen here:
https://sites.google.com/site/filestemp2/home/GCP.jpeg?attredirects=0&d=1

As I'm using gdallib1-1.8.0.2, could this be a gdal problem? Could
anybody else using gdallib1-1.8 amd qgis1.7.3 verify (I provided all
necessary material)?

We have solved the practical issue for this particular image using
another software, so we are not in a hurry. But I'm a bit surprised
by the little attention that this problem is raising among developers.
A correct georeferencing is a critical
issue for a GIS. If this bug is confirmed, users should be warned.

Agus

2011/12/14 Manuel Massing :
> Hi Agus,
>
>
>> Cannot download http://www.warped-space.de/Ilerfly125v2_modifziert.tif,
>
>> I get:
>
>> Oops! This link appears to be broken.
>
>
> sorry, the correct link is
>
>
> http://www.warped-space.de/Ilerfly125v2_modifiziert.tif
>
>
>> The procedure we follow is:
>
>> 1. Set project to CRS EPSG:23031
>
>> 2. No On the fly reprojection
>
>> 3. Start georeferencer and open ilerfly125v2.tif and its points file
>
>> with the settings displayed
>
>
> thats correct, and I did exactly the same (except for the scale change -
> might be worth checking out), but couldn't reproduce the shiftr (my results
> match
>
> the output of the arcgis version).
>
>
> I've got a lot on my plate right now, but if I find the time I'll try to
> look this is a regression in qgis or the georeferencer, as I said I'm still
> on 1.7 atm.
>
>
> How do the residuals look in the georeferencer? Is there a noticable bias
>
> (i.e. do they all point in one direction?)
>
>
> Also, make sure there was no world file influencing the unreferenced file
>
> (something like Ilerfly125v2.wld), the georeferencer can't handle that.
>
>
> I also noticed that you used a scale change, does the shift also appear
>
> without scale change?
>
>
> cheers,
>
>
> Manuel
>
>
>
>
>
> ___
> 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] Plugin reorganization (again)

2011-12-14 Thread Alister Hood
Hi guys,
It's good to see some work in this area.

> Date: Wed, 14 Dec 2011 11:15:46 -0900
> From: Gary Sherman 
> Subject: Re: [Qgis-developer] Plugin reorganization (again)
> To: Alexander Bruy 
> Cc: Qgis Developer List 
> Message-ID: 
> Content-Type: text/plain; charset=us-ascii
> 
> On Dec 14, 2011, at 9:39 AM, Alexander Bruy wrote:
> 
> > Hi all,
> >
> > there are lot of core plugins and much more contributed. Keep all
> them in
> > single toolbar/menu decrease usability. I remember we have several
> > discussions about that, and one of the results - Raster and Database
> menus.
> >
> > But most plugins don't used appropriate menus, see [0]. So after
some
> offlist
> > discussion with Paolo I start to work on moving plugins to correct
> menus. As
> > a part of this work I also implement some new functionality:
> > - new methods to place plugin buttons to the Raster toolbar;
> > - new Vector menu (hidden by default, appears after loading first
> plugin. Same
> >   as we have with Database menu) and Vector toolbar. Methods to add
> plugins
> >   to this menu/toolbar;
> > - Database toolbar with appropriate methods.
> >
> > Also I move most of core plugins to different menus, depending on
> > their functions.
> 
> The only pitfall I see with this is if a plugin isn't loaded and the
> user loads it they may not know where to find the menu. I don't know
if
> this is the case, but when plugins used the Plugins menu, the user had
> a clue where to look.

Even with all the plugins in one menu they can be hard to find - there
are tickets about this:
http://hub.qgis.org/issues/4069
http://hub.qgis.org/issues/1734

Do you think my latest suggestion at #4069 would work?:

- A lot of plugins have an "about" page. The plugin system could be
changed so that instead of plugin authors implementing their own "about"
pages (as many do currently), there is a standard "about" page, build
from the plugin metadata, and accessible from the plugin
installer/manager.

- There could be a policy that plugin authors should explain on the
"about" page where to find the plugin in the QGIS gui.
e.g. "XYZplugin provides the ability to do xyz in QGIS, and can be
accessed from the Vector menu".
Or "WXYplugin adds a WXY tool to the standard digitizing toolbar".

- This would mean the search capability in the plugin manager/installer
would be sufficient for people to find where a plugin is. It would also
reduce gui clutter caused by plugins being put in submenus just so that
they can also provide an "about" page in the submenu.
The "about" page should also provide any needed links to a plugin's
website, tracker etc.


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


Re: [Qgis-developer] Georeferencer produces wrong (shifted) result

2011-12-14 Thread Manuel Massing
Hi Agus,

> Cannot download http://www.warped-space.de/Ilerfly125v2_modifziert.tif,
> I get:
> Oops! This link appears to be broken.

sorry, the correct link is 

http://www.warped-space.de/Ilerfly125v2_modifiziert.tif

> The procedure we follow is:
> 1. Set project to CRS EPSG:23031
> 2. No On the fly reprojection
> 3. Start georeferencer and open ilerfly125v2.tif and its points file
> with the settings displayed

thats correct, and I did exactly the same (except for the scale change - might 
be worth checking out), but couldn't reproduce the shiftr (my results match
the output of the arcgis version). 

I've got a lot on my plate right now, but if I find the time I'll try to look 
this is a regression in qgis or the georeferencer, as I said I'm still on 1.7 
atm.

How do the residuals look in the georeferencer? Is there a noticable bias
(i.e. do they all point in one direction?)

Also, make sure there was no world file influencing the unreferenced file
(something like Ilerfly125v2.wld), the georeferencer can't handle that.

I also noticed that you used a scale change, does the shift also appear
without scale change?

cheers,

Manuel


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


[Qgis-developer] Set NULL value in raster

2011-12-14 Thread Agustin Lobo
Is it possible to set the NULL value of a raster (beyond than what is
done for the current session with Properties)?
Raster/Translate prompts for a new raster (which is not the case for
the projection with Assign Projection).
Agus
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Plugin reorganization (again)

2011-12-14 Thread Gary Sherman
On Dec 14, 2011, at 9:39 AM, Alexander Bruy wrote:

> Hi all,
> 
> there are lot of core plugins and much more contributed. Keep all them in
> single toolbar/menu decrease usability. I remember we have several
> discussions about that, and one of the results - Raster and Database menus.
> 
> But most plugins don't used appropriate menus, see [0]. So after some offlist
> discussion with Paolo I start to work on moving plugins to correct menus. As
> a part of this work I also implement some new functionality:
> - new methods to place plugin buttons to the Raster toolbar;
> - new Vector menu (hidden by default, appears after loading first plugin. Same
>   as we have with Database menu) and Vector toolbar. Methods to add plugins
>   to this menu/toolbar;
> - Database toolbar with appropriate methods.
> 
> Also I move most of core plugins to different menus, depending on
> their functions.

The only pitfall I see with this is if a plugin isn't loaded and the user loads 
it they may not know where to find the menu. I don't know if this is the case, 
but when plugins used the Plugins menu, the user had a clue where to look.


> Unchanged plugins are (they still located under Plugins menu):
> - eVis
> - MapServer export
> - OpenStreetMap
> - RoadGraph
> - Coordinate capture
> - Globe
> - GRASS
> 
> All this changes available in reorganize-plugins branch from my fork [1]
> 
> [0] http://hub.qgis.org/issues/4395
> [1] https://github.com/alexbruy/Quantum-GIS/tree/reorganize-plugins
> 
> Comments and opinions are welcome. If there are no objections, I can commit
> this to master.
> 
> Thanks
> -- 
> Alexander Bruy
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-gary

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Gary Sherman
GeoApt LLC
  http://geoapt.com
Chair, QGIS PSC
Books:
  http://desktopgisbook.com
  http://qgisbook.com
"We work virtually everywhere"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=






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


[Qgis-developer] Plugin reorganization (again)

2011-12-14 Thread Alexander Bruy
Hi all,

there are lot of core plugins and much more contributed. Keep all them in
single toolbar/menu decrease usability. I remember we have several
discussions about that, and one of the results - Raster and Database menus.

But most plugins don't used appropriate menus, see [0]. So after some offlist
discussion with Paolo I start to work on moving plugins to correct menus. As
a part of this work I also implement some new functionality:
 - new methods to place plugin buttons to the Raster toolbar;
 - new Vector menu (hidden by default, appears after loading first plugin. Same
   as we have with Database menu) and Vector toolbar. Methods to add plugins
   to this menu/toolbar;
 - Database toolbar with appropriate methods.

Also I move most of core plugins to different menus, depending on
their functions.
Unchanged plugins are (they still located under Plugins menu):
 - eVis
 - MapServer export
 - OpenStreetMap
 - RoadGraph
 - Coordinate capture
 - Globe
 - GRASS

All this changes available in reorganize-plugins branch from my fork [1]

[0] http://hub.qgis.org/issues/4395
[1] https://github.com/alexbruy/Quantum-GIS/tree/reorganize-plugins

Comments and opinions are welcome. If there are no objections, I can commit
this to master.

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


Re: [Qgis-developer] qgis on android

2011-12-14 Thread Paolo Cavallini

Il 14/12/2011 12:36, Marco Bernasocchi ha scritto:

Spot on Macho, try not to let the screen lock.

yes, seen

pcav, does it install if you directly download the qgis.apk?

yes
thanks

--
Paolo Cavallini
See: http://www.faunalia.it/pc

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


RE: [Qgis-developer] quick noob python question

2011-12-14 Thread Duarte Carreira
Germán, thanks.

Maybe that's what I'll do, but it pains me to duplicate code...

Duarte

De: Germán Carrillo [mailto:carrillo.ger...@gmail.com]
Enviada: quarta-feira, 14 de Dezembro de 2011 12:30
Para: qgis-developer@lists.osgeo.org; Duarte Carreira
Assunto: Re: [Qgis-developer] quick noob python question

Hi Duarte,

from my experience it is not possible. You can of course re-use the ui file and 
implement the whole functionality on your own based on the cpp file, basically 
a translation from C++ to Python. I've done this before and it is not a complex 
process, but it requires time.

By the way, the folder app of QGIS source code contains 
QGIS-application-specific code, so I would say you won't find there 
functionality available in PyQGIS, for that you would have to have a look to 
the gui and core folders.

Perhaps there are other ways to set the project file programmatically from 
Python, but I don't know them, sorry.

Regards,

Germán
2011/12/14 Duarte Carreira mailto:dcarre...@edia.pt>>
Using python is it possible to call QgsEmbedLayerDialog and set the project 
file programmatically (mProjectFileLineEdit)?

https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/app/qgsembedlayerdialog.cpp
https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/ui/qgsembedlayerdialogbase.ui

Thanks,
Duarte Carreira


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
---
  |\__
(:>__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] qgis on android

2011-12-14 Thread Marco Bernasocchi

Spot on Macho, try not to let the screen lock.
pcav, does it install if you directly download the qgis.apk?

ciao

On 12/14/2011 08:32 AM, Werner Macho wrote:

Hi!

I had the same problem - and kept the download going by tapping the
screen once in a while ..
You should not let the screen lock ..
And it installed without any problems here (beside the big sized fonts
which are far too big for my mobile - but i guess it is not intended
to be used on mobiles ;)

regards
Werner

On Wed, Dec 14, 2011 at 8:25 AM, Paolo Cavallini  wrote:

Hi all.
I'm trying the new installer on android 2.3, but it does not work for me:
- during downolad, if the screen locks, the download stops, and it has to be
restarted
- (maybe for the same reason) the installation fails, without detailed
notice.
Any hint on how to proceed?
Thanks.

--
Paolo Cavallini
See: http://www.faunalia.it/pc

___
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



--
Marco Bernasocchi
www.opengis.ch
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] WMS Error when accessing layer properties

2011-12-14 Thread Giovanni Manghi

> I cannot confirm,
> it works fine here on my Ubuntu 11.04 and QGis master (bca3f93).
> 
> Does anybody confirm?


I can confirm the crash in qgis-master in both linux (ubuntu 11.10) and
Windows/osgeo4w


Warning: QLayout: Attempting to add QLayout "" to QWidget "", which
already has a layout
Warning: QGraphicsScene::removeItem: cannot remove 0-item
Warning: QHttp: empty path requested is invalid -- using '/'
Warning: QGraphicsScene::removeItem: cannot remove 0-item
Warning: divide by zero encountered in divide
Warning: divide by zero encountered in divide
Warning: QPixmap::handle(): Pixmap is not an X11 class pixmap
Warning: QPixmap::handle(): Pixmap is not an X11 class pixmap
Segmentation fault


cheers

-- Giovanni --

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


R: Re: R: Re: [Qgis-developer] Trasform QgsVectorLayer proj4 to another

2011-12-14 Thread francescobocca...@libero.it
Solved..thank to:

  feature.geom.transform(srsTransform)

Thanks

Francesco

>Messaggio originale
>Da: rdmaili...@duif.net
>Data: 14/12/2011 14.28
>A: "francescobocca...@libero.it"
>Cc: 
>Ogg: Re: R: Re: [Qgis-developer] Trasform QgsVectorLayer proj4 to another
>
>On 2011-12-14 13:55, francescobocca...@libero.it wrote:
>> Hi,
>> i tried it but it works only with point tranformation. I would llike to 
>> tranform the entire vector layer.
>> Do you have any suggestions?
>
>Mmm, you are right, I only used it for one feature at the time.
>
>Then I think you just have to loop over every feature in the layer that
>you want to transform, and transform the geometry of each feature one by
>one?
>
>Given the QgsCoordinateTransform-object, you can transform one geometry
>by using it's 'transform' method:
>http://qgis.org/api/classQgsGeometry.html#46fd84e518cae4368aadeeac89574dfa
>
>Some copy and paste from imagemapplugin.py:
>
>destinationSrs = self.iface.mapCanvas().mapRenderer().destinationSrs()
>layerSrs = self.iface.activeLayer().srs()
>srsTransform = QgsCoordinateTransform(layerSrs, destinationSrs)
>...
>self.provider.select(self.provider.attributeIndexes(), mapCanvasExtent,
>True, True)
>...
>feature = QgsFeature();
>while self.rovider.nextFeature(feature):
>  feature.geom.transform(srsTransform)
>...
>
>See here:
>http://www.qgis.org/pyqgis-cookbook/vector.html#writing-vector-layers
>how to write a new file.
>
>Devs, please let know if this is not ok
>
>By the way, I assume you are doing this from within a plugin or some
>python code? Because qgis itself can do coordinatetransformations for
>you when you use 'save layer as'  in the gui.
>
>HTH,
>
>Richard Duivenvoorde
>
>


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


Re: [Qgis-developer] WMS Error when accessing layer properties

2011-12-14 Thread Giuseppe Sucameli
Hi James,

On Wed, Dec 14, 2011 at 2:59 PM, James Stott
 wrote:
> Has anyone else noticed that QGIS is crashing when you try and access
> the layer properties for a WMS layer?
> I am using 1.9.90-21 from OSGeo4W.

I cannot confirm,
it works fine here on my Ubuntu 11.04 and QGis master (bca3f93).

Does anybody confirm?

Regards.

>
>
> James Stott BSc (Hons) MSc | Senior Professional
> Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN
> T: 01225 445548 | M: -
> http://www.npaconsult.co.uk/
>
>
> http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.asp
> http://www.npaconsult.co.uk/terms.asp
> This Electronic Transmission is intended only for the attention of the 
> addressee. It may contain privileged and confidential information. If you are 
> not the person for whom it is intended, you must not copy, distribute or take 
> any action in reliance on it. If you have received this electronic 
> transmission in error please notify us immediately by telephone, delete the 
> transmission and destroy any hard copies.
> Nicholas Pearson Associates has used all reasonable efforts to ensure that 
> this message and any attachments are free from viruses.
> Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel: +44 (0) 
> 01225 445548, Fax: +44 (0) 01225 312387, Website: http://www.npaconsult.co.uk/
> ___
> 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


[Qgis-developer] WMS Error when accessing layer properties

2011-12-14 Thread James Stott
Has anyone else noticed that QGIS is crashing when you try and access
the layer properties for a WMS layer?

This happens if I double click on the layer in the layer panel or if I
right click and select properties.

I am using 1.9.90-21 from OSGeo4W.


James Stott BSc (Hons) MSc | Senior Professional
Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN
T: 01225 445548 | M: -
http://www.npaconsult.co.uk/


http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.asp
http://www.npaconsult.co.uk/terms.asp
This Electronic Transmission is intended only for the attention of the 
addressee. It may contain privileged and confidential information. If you are 
not the person for whom it is intended, you must not copy, distribute or take 
any action in reliance on it. If you have received this electronic transmission 
in error please notify us immediately by telephone, delete the transmission and 
destroy any hard copies.
Nicholas Pearson Associates has used all reasonable efforts to ensure that this 
message and any attachments are free from viruses.
Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel: +44 (0) 
01225 445548, Fax: +44 (0) 01225 312387, Website: http://www.npaconsult.co.uk/
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: R: Re: [Qgis-developer] Trasform QgsVectorLayer proj4 to another

2011-12-14 Thread Richard Duivenvoorde
On 2011-12-14 13:55, francescobocca...@libero.it wrote:
> Hi,
> i tried it but it works only with point tranformation. I would llike to 
> tranform the entire vector layer.
> Do you have any suggestions?

Mmm, you are right, I only used it for one feature at the time.

Then I think you just have to loop over every feature in the layer that
you want to transform, and transform the geometry of each feature one by
one?

Given the QgsCoordinateTransform-object, you can transform one geometry
by using it's 'transform' method:
http://qgis.org/api/classQgsGeometry.html#46fd84e518cae4368aadeeac89574dfa

Some copy and paste from imagemapplugin.py:

destinationSrs = self.iface.mapCanvas().mapRenderer().destinationSrs()
layerSrs = self.iface.activeLayer().srs()
srsTransform = QgsCoordinateTransform(layerSrs, destinationSrs)
...
self.provider.select(self.provider.attributeIndexes(), mapCanvasExtent,
True, True)
...
feature = QgsFeature();
while self.rovider.nextFeature(feature):
  feature.geom.transform(srsTransform)
...

See here:
http://www.qgis.org/pyqgis-cookbook/vector.html#writing-vector-layers
how to write a new file.

Devs, please let know if this is not ok

By the way, I assume you are doing this from within a plugin or some
python code? Because qgis itself can do coordinatetransformations for
you when you use 'save layer as'  in the gui.

HTH,

Richard Duivenvoorde

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


R: Re: [Qgis-developer] Trasform QgsVectorLayer proj4 to another

2011-12-14 Thread francescobocca...@libero.it
Hi,
i tried it but it works only with point tranformation. I would llike to 
tranform the entire vector layer.
Do you have any suggestions?

Thanks

Francesco

>Messaggio originale
>Da: rdmaili...@duif.net
>Data: 14/12/2011 13.06
>A: "francescobocca...@libero.it"
>Cc: 
>Ogg: Re: [Qgis-developer] Trasform QgsVectorLayer proj4 to another
>
>On 2011-12-14 12:59, francescobocca...@libero.it wrote:
>> Hi to all,
>> i have a question for you. I have 2 vector layer that have two different 
>> spatial references. I'd like to tranform(convert) one of these in the same 
>> coordinate system.
>> Like that:
>> 
>>  crsStart = QgsCoordinateReferenceSystem()
>>  crsStart.createFromProj4(layerA.crs().toProj4())
>>  crsDest = QgsCoordinateReferenceSystem()  
>>  crsDest.createFromProj4(layerB.crs().toProj4())
>>
>>   if crsStart != crsDest:
>>   
>> layerA = QgsCoordinateTransform(crsStart,crsDest).
>> transformLayerAtoLayerB
>
>Hi F,
>
>Have a look here:
>
>http://www.qgis.org/pyqgis-cookbook/index.html
>
>specially here:
>
>http://www.qgis.org/pyqgis-cookbook/crs.html#coordinate-reference-systems
>
>Hope this helps...
>
>Regards,
>
>Richard
>


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


Re: [Qgis-developer] quick noob python question

2011-12-14 Thread Germán Carrillo
Hi Duarte,

from my experience it is not possible. You can of course re-use the ui file
and implement the whole functionality on your own based on the cpp file,
basically a translation from C++ to Python. I've done this before and it is
not a complex process, but it requires time.

By the way, the folder app of QGIS source code contains
QGIS-application-specific code, so I would say you won't find there
functionality available in PyQGIS, for that you would have to have a look
to the gui and core folders.

Perhaps there are other ways to set the project file programmatically from
Python, but I don't know them, sorry.

Regards,

Germán

2011/12/14 Duarte Carreira 

> Using python is it possible to call QgsEmbedLayerDialog and set the
> project file programmatically (mProjectFileLineEdit)?
>
> ** **
>
>
> https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/app/qgsembedlayerdialog.cpp
> 
>
>
> https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/ui/qgsembedlayerdialogbase.ui
> 
>
> ** **
>
> Thanks,
> Duarte Carreira
>
> ** **
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> --
---
  |\__
(:>__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Trasform QgsVectorLayer proj4 to another

2011-12-14 Thread Richard Duivenvoorde
On 2011-12-14 12:59, francescobocca...@libero.it wrote:
> Hi to all,
> i have a question for you. I have 2 vector layer that have two different 
> spatial references. I'd like to tranform(convert) one of these in the same 
> coordinate system.
> Like that:
> 
>  crsStart = QgsCoordinateReferenceSystem()
>  crsStart.createFromProj4(layerA.crs().toProj4())
>  crsDest = QgsCoordinateReferenceSystem()  
>  crsDest.createFromProj4(layerB.crs().toProj4())
>
>   if crsStart != crsDest:
>   
> layerA = QgsCoordinateTransform(crsStart,crsDest).
> transformLayerAtoLayerB

Hi F,

Have a look here:

http://www.qgis.org/pyqgis-cookbook/index.html

specially here:

http://www.qgis.org/pyqgis-cookbook/crs.html#coordinate-reference-systems

Hope this helps...

Regards,

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


[Qgis-developer] Trasform QgsVectorLayer proj4 to another

2011-12-14 Thread francescobocca...@libero.it
Hi to all,
i have a question for you. I have 2 vector layer that have two different 
spatial references. I'd like to tranform(convert) one of these in the same 
coordinate system.
Like that:

 crsStart = QgsCoordinateReferenceSystem()
 crsStart.createFromProj4(layerA.crs().toProj4())
 crsDest = QgsCoordinateReferenceSystem()  
 crsDest.createFromProj4(layerB.crs().toProj4())
   
  if crsStart != crsDest:
  
layerA = QgsCoordinateTransform(crsStart,crsDest).
transformLayerAtoLayerB
   

Which is the function that i have to use?

Thanks

Francesco Boccacci


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


[Qgis-developer] quick noob python question

2011-12-14 Thread Duarte Carreira
Using python is it possible to call QgsEmbedLayerDialog and set the project 
file programmatically (mProjectFileLineEdit)?

https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/app/qgsembedlayerdialog.cpp
https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/ui/qgsembedlayerdialogbase.ui

Thanks,
Duarte Carreira

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


Re: [Qgis-developer] Georeferencer produces wrong (shifted) result

2011-12-14 Thread Manuel Massing
Hello Agustin,
 
> No, the correct one is the one on the left, which is the one made with
> arcgis. I've made an screenshot
> with transparency:
> https://sites.google.com/site/openfiles2/home/errorgeorefARCG_QGIStransp.jp
> eg?attredirects=0&d=1
> https://sites.google.com/site/openfiles2/home/errorgeorefARCG_QGIStransp.j
> pegw?attredirects=0&d=1

well, with my setup (ca. qgis 1.7), the output of the georeferencer  matches 
the output from ArcGIS pretty accurately (older revision of QGIS, though - 
haven't tested with head). 

See my result, georef output in green:

http://www.warped-space.de/georef-vs-arcgis.jpeg

The qgis georeferencer output can be found here:

http://www.warped-space.de/Ilerfly125v2_modifziert.tif

Please upload the output you got, both ArcGIS and georeferencer, so that
we can rule out problems on the visualization / on-the-fly reprojection
side of things. Also, at this point the exact version of your QGIS/GDAL
setup could be relevant.

There are some possible sources of error for the discrepancy, e.g. gdal, a
faulty entry in the qgis projection database, or user error (well, it happens
:-)).

cheers,

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


Re: [Qgis-developer] qgis on android

2011-12-14 Thread Noli Sicad
Try downloading the apk in PC first, place it the SD,  and then install it.



On 12/14/11, Paolo Cavallini  wrote:
> Il 14/12/2011 08:28, Tim Sutton ha scritto:
>> Marco B will correct me if I am wrong but I recall him saying that the
>> installation takes a long time and seems to make the phone appear
>> locked. He was working on a patch to make a progress bar during
>> installation. So try just leaving the phone for a while and see if the
>> install in fact works.
> It is not locked, it says the installation failed.
> Thanks.
>
> --
> Paolo Cavallini
> See: http://www.faunalia.it/pc
>
> ___
> 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] qgis on android

2011-12-14 Thread Paolo Cavallini

Il 14/12/2011 08:28, Tim Sutton ha scritto:

Marco B will correct me if I am wrong but I recall him saying that the
installation takes a long time and seems to make the phone appear
locked. He was working on a patch to make a progress bar during
installation. So try just leaving the phone for a while and see if the
install in fact works.

It is not locked, it says the installation failed.
Thanks.

--
Paolo Cavallini
See: http://www.faunalia.it/pc

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