Re: [Qgis-user] printing with google layers

2011-02-16 Thread Borys Jurgiel
  Nice! This one works even in the map composer.
 
 The main problem is rescaling.

There can be a bigger problem, as using gdal can violate a few terms of their 
license: http://code.google.com/intl/en/apis/maps/terms.html
(10.1, 10.8, 10.13? - I've only read it briefly)

Seems the OpenLayers plugin is the only legal way, as it's a web browser in 
fact.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] printing with google layers

2011-02-10 Thread maning sambale
This works for googlemaps.  What is the server url for google imagery?

On Wed, Feb 9, 2011 at 10:50 PM, Borys Jurgiel li...@borysjurgiel.pl wrote:
 ServerUrlhttp://mt0.googleapis.com/vt?lyrs=m@144amp;x=${x}amp;y=${y}amp;z=${z}/ServerUrl




-- 
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


Re: [Qgis-user] printing with google layers

2011-02-10 Thread Borys Jurgiel
Dnia czwartek 10 lutego 2011 o 09:58:32 maning sambale napisał(a):
 This works for googlemaps.  What is the server url for google imagery?
 
 On Wed, Feb 9, 2011 at 10:50 PM, Borys Jurgiel li...@borysjurgiel.pl 
wrote:
  ServerUrlhttp://mt0.googleapis.com/vt?lyrs=m@144amp;x=${x}amp;y=${y};
  amp;z=${z}/ServerUrl


I can only say what I can see in a web browser, surfing googlemaps. It seems 
there is one server for the imagery:

http://khm0.googleapis.com/kh?v=78x=38y=22z=6

(of course x,y,z values has to be replaced with ${parameter}. I don't know 
what is v parameter)

and second one for the maps:

http://mt0.googleapis.com/vt?lyrs=m@145x=38y=22z=6

where:
lyrs=m@145 - full map
lyrs=h@145 - map overlay for hybrid
lyrs=t@126 - clean terrain
lyrs=t@126,r@145 - terrain + a label overlay

Again, I don't know what the numbers mean.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] printing with google layers

2011-02-10 Thread maning sambale
Nice! This one works even in the map composer.  But I get transparent
salt and pepper effect for for very dark pixels.

On Thu, Feb 10, 2011 at 7:10 PM, Borys Jurgiel li...@borysjurgiel.pl wrote:
 http://khm0.googleapis.com/kh?v=78;



-- 
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


Re: [Qgis-user] printing with google layers

2011-02-10 Thread Borys Jurgiel
Dnia czwartek 10 lutego 2011 o 12:31:36 maning sambale napisał(a):
 Nice! This one works even in the map composer.  

The main problem is rescaling. 

There's no simple way (yet) to restrict scale set to meet the tile scales. For 
display, you just see ugly rescaled image, what can be simply avoided - just 
do zoom to best scale (1pix=1pix) in the legend mouse menu and then only 
zoom with mouse wheel or +/- tools to keep always the 2x factor. This way you 
always fit into tile scale without rescaling. 

I haven't performed serious pritnting tests, but I expect one more problem: 
print resolution probably forces downloading tiles for greater or less zoom, 
as gdal consider TMS as a pyramid. You can try to fix it by setting the zoom 
level for the pyramid basis in TileLevel xml tag.

 But I get transparent
 salt and pepper effect for for very dark pixels.

Maybe it's an 8bit - RGB conversion issue?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] printing with google layers

2011-02-10 Thread jonathan ALLAIN
Howard Yamaguchi,

 

In the list of layer on the left of the screen, right click on the raster
layer provided by the google plugin. In the properties you’ve got an option
calls pyramids (or something like that – sorry for the English ;) ).

My advice is to zoom in approximatively at the scale you’ll print and next
use the plugin (to have a good resolution). You’ll may have to load many
rasters from the plugin.

 

Hope it helps

 

 

Jonathan ALLAIN

Communauté d'Agglomération

du Pays de Flers

02 33 98 44 58

 

 

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


[Qgis-user] printing with google layers

2011-02-09 Thread jonathan ALLAIN
Hello,

 

I succeed printing with the google layer plugin (not the open layer one
whose my previous mail was for). To change the scale in the print composer,
I had to create pyramids even if qgis says that it’s not possible.

 

thanks

 

Jonathan ALLAIN

Communauté d'Agglomération

du Pays de Flers

02 33 98 44 58

 

 

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


Re: [Qgis-user] printing with google layers

2011-02-09 Thread Markus Weidenbach
 interesting to hear! So the printing limitation is caused by the 
Open Layer Plugin and not by the Google WMS(?).

I hope new versions of the Open Layer Plugin will address this problem...

Markus


Am 09.02.2011 13:50, schrieb jonathan ALLAIN:


Hello,

I succeed printing with the google layer plugin (not the open layer 
one whose my previous mail was for). To change the scale in the print 
composer, I had to create pyramids even if qgis says that it's not 
possible.


thanks

Jonathan ALLAIN

Communauté d'Agglomération

du Pays de Flers

02 33 98 44 58


___
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] printing with google layers

2011-02-09 Thread Borys Jurgiel
Dnia środa 09 lutego 2011 o 14:32:42 Markus Weidenbach napisał(a):
  interesting to hear! So the printing limitation is caused by the
 Open Layer Plugin and not by the Google WMS(?).
 I hope new versions of the Open Layer Plugin will address this problem...
 
 Markus

There is no Google WMS, they are static tiles. The two plugins make two 
different workarounds to use them. OpenLayers Plugin is great for display, 
however I expect big problems with proper printing, so wouldn't be 
optimistic...

I wonder if it's possible to use GoogleMaps in Qgis directly via GDAL TMS 
driver. I'm able to open it, but can't cope with colors: Google serves 8bit 
pngs, while Qgis needs RGB. Maybe other gdal versions do it more smoothly?

On the http://www.gdal.org/frmt_wms.html you have a link to the OpenStreetMap 
TMS Service Example: 

http://www.gdal.org/frmt_wms_openstreetmap_tms.xml

Just download this file and open in Qgis as a raster. You shold see OSM layer 
with proper or bad colors ;) In order to use googlemaps instead of OSM, 
replace the third line of the file with: 

ServerUrlhttp://mt0.googleapis.com/vt?lyrs=m@144amp;x=${x}amp;y=${y}amp;z=${z}/ServerUrl
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


AW: Re: [Qgis-user] printing with google layers

2011-02-09 Thread Düster Horst
Hi Borys

Thanks a lot for the hint with google maps. It works like a charm! 

Regards
Horst



Dr. Horst Düster
Stv. Amtschef / Chef Geoinformation 

Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
SO!GIS Koordination
Rötistrasse 4
CH-4501 Solothurn

Telefon ++41(0)32 627 25 32
Mobil   ++41(0)79 511 54 12
Telefax ++41(0)32 627 22 14

mailto:horst.dues...@bd.so.ch
http://www.agi.so.ch



-Ursprüngliche Nachricht-
Von: Borys Jurgiel [mailto:li...@borysjurgiel.pl]
Gesendet am: Mittwoch, 9. Februar 2011 15:50
An: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] printing with google layers

Dnia sroda 09 lutego 2011 o 14:32:42 Markus Weidenbach napisal(a):
  interesting to hear! So the printing limitation is caused by the
 Open Layer Plugin and not by the Google WMS(?).
 I hope new versions of the Open Layer Plugin will address this
problem...
 
 Markus

There is no Google WMS, they are static tiles. The two plugins make two 
different workarounds to use them. OpenLayers Plugin is great for
display, 
however I expect big problems with proper printing, so wouldn't be 
optimistic...

I wonder if it's possible to use GoogleMaps in Qgis directly via GDAL
TMS 
driver. I'm able to open it, but can't cope with colors: Google serves
8bit 
pngs, while Qgis needs RGB. Maybe other gdal versions do it more
smoothly?

On the http://www.gdal.org/frmt_wms.html you have a link to the
OpenStreetMap 
TMS Service Example: 

http://www.gdal.org/frmt_wms_openstreetmap_tms.xml

Just download this file and open in Qgis as a raster. You shold see OSM
layer 
with proper or bad colors ;) In order to use googlemaps instead of OSM, 
replace the third line of the file with: 

ServerUrlhttp://mt0.googleapis.com/vt?lyrs=m@144amp;x=${x}amp;y=${y}
amp;z=${z}/ServerUrl
___
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: AW: Re: [Qgis-user] printing with google layers

2011-02-09 Thread Borys Jurgiel
Dnia środa 09 lutego 2011 o 17:20:29 Düster Horst napisał(a):
 Hi Borys
 
 Thanks a lot for the hint with google maps. It works like a charm!
 
 Regards
 Horst

Do you have proper colors? What GDAL version?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] printing with google layers

2011-02-09 Thread Horst Düster

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



Am 09.02.2011 18:03, schrieb Borys Jurgiel:
 Do you have proper colors? What GDAL version?
Yes the colors are exact the same like in the original maps. I use
GDAL 1.7.3

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

iQEcBAEBAgAGBQJNUtGRAAoJEHY8l5RKB6W4LVYH+gM8U6JxuCVfVP/j6TtmL2ZI
JtgOxkwotNYjmdltE0Ei2LK9q+Pk+tXs+PF9bGnjGJlB6xEvUIGUWvTe8pCHGc3M
UWvYMdR18KgxvUJz4exNS0EA/aooDCOGWmaapos7o+7/piVX1Czf9kdef3LjSOPH
Xo99i0R4WQO9h5WmjLNLsNCp1JGHETQVnhyRAGasF5tfacnkP2sL/cGMg81WqyQC
u1p4zj5y/nMWwcUf3iDk67STpef6hDYo9sYBYvZGWXd9VfqB5tIc4NbVm60LVW1j
RhHl96BKhdsxd6bp+RAygdw7gdyhk9mtq4wSojc2YSEJFSNvelmLcEaNmASp04I=
=9drm
-END PGP SIGNATURE-

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


Re: [Qgis-user] printing with google layers

2011-02-09 Thread Borys Jurgiel
Dnia środa 09 lutego 2011 o 18:40:33 Horst Düster napisał(a):
 Am 09.02.2011 18:03, schrieb Borys Jurgiel:
  Do you have proper colors? What GDAL version?
 
 Yes the colors are exact the same like in the original maps. I use
 GDAL 1.7.3

Thanks! My problem was much simpler than I thought ;) Just contrast 
stretching;)
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] printing with google layers

2011-02-08 Thread Markus Weidenbach

Hi Jonathan,

faced the same problem recently, and if I understood right it is a 
limitation of the Google WMS. I think the capabilities of the WMS 
description tells you if you can print and what size (if I remember 
right the parameter is called map extend, but I am not sure .. if this 
is set to 0, you can´t print anything. A possible workaround is to make 
a screenshot of the Google layer and open it in the map composer as a 
background photo (you can use the save image under the File menu in 
QGIS), another possibility is to reduce the size of your area to be 
printed, maybe you are allowed to print a smaller part 


Regards,
Markus


--
Dr. Markus Weidenbach
*landConsult.de*
Geographical Information Management
and Environmental Planning
D-3 Schenkenzell
Germany
e.mail see: http://landConsult.de

Am 07.02.2011 14:37, schrieb jonathan ALLAIN:


Hello,

I try to print a map with an open layer layer (google satellite). 
However I always obtain a grey square instead of the satellite view.


Is it a problem or is it a limitation of google ?

how can I bypass this problem ?

Thanks.

Jonathan ALLAIN

Communauté d'Agglomération

du Pays de Flers

02 33 98 44 58


___
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