Re: [Qgis-developer] QgsMapCanvas.mapRenderer() deprecated since 2.4, use mapRendererSettings()

2014-03-15 Thread Etienne Tourigny
use iface.mapCanvas().mapSettings()


On Sat, Mar 15, 2014 at 7:15 AM, Radim Blazek radim.bla...@gmail.comwrote:

 Python plugins are now printing deprecation traceback. Hhow to fix
 that. I dont see any mapRendererSettings() implemented.

 Radim
 ___
 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] Updating qgis2threejs

2014-03-15 Thread Alexandre Neto
Hello all,

If I may share my suggestions...

+1 for some control

And I , I think that having a cursor representing the center of rotation
and zoom might help with navigation.

Once again, great job Minoru.

Alexandre Neto


On Sat, Mar 15, 2014 at 1:18 PM, josef k groundwater...@gmail.com wrote:

 Yes it is a great plugin. I use it to visualize boreholes in 3D (
 http://goo.gl/8pDR4o). For this usage I need to reverse the dem upside
 down. (I also would like to add several DEMs to visualize boundaries
 between different geological stratas.)

 Therefore, if the reverse is implemented, please make it optional and not
 mandatory.
 /Josef


 From: Paolo Cavallini cavall...@faunalia.it
 To: qgis-developer qgis-developer@lists.osgeo.org
 Cc:
 Date: Fri, 14 Mar 2014 18:52:39 +0100
 Subject: [Qgis-developer] Updating qgis2threejs

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi Minoru and all,
 I like the qgis2threejs plugin. I think that an option to limit movements
 would be
 usaful: tiliting laterally does not seem useful, and reversing the dem
 upside down
 makes navigation only more unpleasant: opinions?
 Thanks.
 - --
 Paolo Cavallini - www.faunalia.eu
 Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlMjQeYACgkQ/NedwLUzIr6WlgCfQ4FhPlXMT2MUuOT2C1woMcia
 X4AAnRT9QdOw66djpR7al2DxOHuwPcVR
 =AjA0
 -END PGP SIGNATURE-



 ___
 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] Updating qgis2threejs

2014-03-15 Thread Andreas Neumann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am 14.03.2014 17:52, schrieb Paolo Cavallini:
 Hi Minoru and all, I like the qgis2threejs plugin. I think that an
 option to limit movements would be usaful: tiliting laterally does
 not seem useful, and reversing the dem upside down makes navigation
 only more unpleasant: opinions?

Unless you are interested in sub-terrain feature, like caves,
waste-water systems, tunnels, boreholes, geologic features, garages,
basements, etc.

Personally, I am very interested in being able to look below the
terrain and regret that many tools prevent that (like Google Earth).

Andreas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTJIdPAAoJELiCsGDopvBCwNwH/1BUeYp2rVOirVMxdXIRa4cO
66B5SuG2sBKn51IXBgtDFAmgmgliWlg1/R/dQNSPSvpWbsxhozHhTSAkMxPu1I41
vdDiBQySvYDlbDfpIVeX37rAZ2twZnmoQRlAtwQXWrOhyhZwpBJhNOSV1jddQbpx
T/ZxhwIkjp0g8+zFwpj/3jILlHjddgBmYYWvoLQiwDmqYPwt+DmEcQdeFJZxywiH
7C1Xk85cI1WVsJPJpjthOADuhQ3oTlebS1HC8CiXv5+ZW/A+pmoMpb9PCDrn0VXh
+QBAAoySeAA75I6Ch3kbSZg8s3WcOvhgvTlTGUm4ET+9pxpgZmZq1ZZegTsrhFk=
=LZsj
-END PGP SIGNATURE-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Print composer: map rotation

2014-03-15 Thread Andreas Neumann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Paolo,

This is not a bug. Every object in the composer can be rotated now. It
is a general feature of all objects in the print composer.

The other rotation is just the map content, which is different from
rotating the map frame.

Of course you could do stupid things with it - but then you can do
that with a lot of other features within QGIS.

Andreas

Am 14.03.2014 15:07, schrieb Paolo Cavallini:
 Hi all. I noticed that the map cen be rotated both inside a frame,
 or with the frame as a whole. In the first case an image (e.g.
 north arrow) can be rotated in sync, in the second not; IMHO this
 is a bug. Opinions? All the best. 
 ___ Qgis-developer
 mailing list Qgis-developer@lists.osgeo.org 
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTJIgWAAoJELiCsGDopvBCAI0H/1AhGP3R8/qcjiIoQQ0P3J6u
N+zfjCx19BeivClMeHZL8WRNxQhDXmGQr2b4S29TpChWI/lZp+Z1D8W0Aa6ssWV8
rpdBR8bcbp+hvkNktQKGnvjFJdDd+zV/2giGRjMU/aniHrHhA3L7uXZUVlfuWZuF
JOuyfnr3g78Rqs1Zr5YqlJWLFUBmUimazjRUHlmX1vwDHrD/NsfGQCxdnbMSBopV
XmtqNwVVkojqqdfLPy1uTkWblUmNSqItTdHYr/W/x4IgG1VGpwRDXM/U8aBneld9
iXyb1WT6SXPsGACUarCy2ANqROm5UJbsLjHWwai7id0hLI/wVuwqCuL2qIWYzT4=
=YpEk
-END PGP SIGNATURE-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Problem with GDAL_translate. REST Services, QGIS

2014-03-15 Thread Randal Hale
I appreciate it - yeah I have several xmls I have created here for 
pulling in REST services from ArcGISOnline and other spots. I modified 
one and was able to grab what I needed - I just can't figure out why 
it's bombing. That's why I tried it two different platforms and got the 
same result. It appears a tmp file isn't getting made with proper 
permissions - but I have no clue.


Anyway - Thanks!

Randy

-
Randal Hale, GISP
North River Geographic Systems, Inc
http://www.northrivergeographic.com
423.653.3611 rjh...@northrivergeographic.com
twitter:rjhale
http://about.me/rjhale

On 03/14/2014 08:55 PM, Eric Goddard wrote:

Hi Randal,

I'm not really sure why gdal isn't creating the xml file. It looks
like it is gdal, since using the iface.AddRasterLayer() method
produces the same error message as using gdal_translate from the
command line.

As a work around while that issue is being sorted out, if you download
the gdal ArcGIS server TMS xml definition from
http://www.gdal.org/frmt_wms_arcgis_mapserver_tms.xml and change the
url before the /tile/${z}/${y}/${x} portion, it will load the tiles
when dragged into QGIS. I tested it with several of the raster layers
from http://server.arcgisonline.com/ArcGIS/rest/services/ and they all
worked.

Eric

On Thu, Mar 13, 2014 at 2:40 PM, Randal Hale
rjh...@northrivergeographic.com wrote:

Oh yeah - it was completely working. I haven't tried it since the upgrade to
2.2 on Ubuntu. That's why I ran through all the variations:
windows/linux/etc to make sure it wasn't one thing vs something else. It
seems ultimately to be a gdal thing since it failed on linux and windows.
Linux was a bit more extreme with the segmentation fault.

Anyway - I'm hoping it's me - but I don't think so.


Randy

-
Randal Hale, GISP
North River Geographic Systems, Inc
http://www.northrivergeographic.com
423.653.3611 rjh...@northrivergeographic.com
twitter:rjhale
http://about.me/rjhale

On 03/13/2014 03:03 PM, Alex Mandel wrote:

Randy,

So it was working at some point? Is it possible the service has changed?

Thanks,
Alex

On 03/13/2014 11:21 AM, Randal Hale wrote:

No worries at all!

I just need to figure out why it stopped working.

Randy

-
Randal Hale, GISP
North River Geographic Systems, Inc
http://www.northrivergeographic.com
423.653.3611 rjh...@northrivergeographic.com
twitter:rjhale
http://about.me/rjhale

On 03/13/2014 01:55 PM, Lauri Kajan wrote:

Hi Randy,

I'm really sorry and little embarrassed for my previous post.
You sure noticed that I don't have much knowledge in arcgis rest
services and especially in using those with gdal.

In this case that json isn't a vector data. It is actually a
description of a raster service and therefore should be accetable for
gdal. This was totally my mistake.


-Lauri





On Thu, Mar 13, 2014 at 7:28 PM, Alex Mandel
tech_...@wildintellect.com mailto:tech_...@wildintellect.com wrote:

  I wouldn't get on his case too hard he's following:
  http://hub.qgis.org/wiki/quantum-gis/Arcgis_rest

  There's probably some clues in:

http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/The_ArcGIS_REST_API/02r3005400/


  I think other workarounds could be to pull the layers in the
  OpenLayers
  plugin.

  Thanks,
  Alex

  On 03/13/2014 09:50 AM, Lauri Kajan wrote:
   Hi Randy,
  
   You are requesting json format from arcgisonline. That is a
  vector format
   and you are trying to use it as a raster image.
   Secondly you are trying to translate that into WMS with
  gdal_translate.
   Gdal supports WMS-reading only, not creation (
   http://gdal.org/formats_list.html).
  
   I recommend for you some introduction to GIS and raster and
  vector formats.
   http://www.qgis.org/en/docs/gentle_gis_introduction/index.html
  
  
   Regards,
  
   Lauri
  
  
  
  
   On Thu, Mar 13, 2014 at 4:51 PM, Randal Hale 
   rjh...@northrivergeographic.com
  mailto:rjh...@northrivergeographic.com wrote:
  
   So I figured I would start here and work my way out...or up.
  Sorry for the
   cross posting. I'm hitting a little bit of everything on this
  one. Same
   action - different results (sorta). This is all of my attempts
  at adding a
   REST Service from ArcGISOnline to QGIS (using GDAL in some
cases).
  
   On Ubuntu 12.04 LTS gdal 1.10
   This command: gdal_translate http://server.arcgisonline.
  

com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=jsonpretty=true
   ESRITopographicLayer.xml -of WMS
   Gives me a segmentation fault
  
   On windows 7 OSGEO4w 32 bit installer gdal 1.10.1
   This command: gdal_translate http://server.arcgisonline.
  

com/ArcGIS/rest/services/USA_Topo_Maps/MapServer?f=jsonpretty=true
   ESRITopographicLayer.xml -of WMS
   Gives me:
   ERROR 4: