Am 29.06.11 21:33 schrieb(en) Albrecht Dreß:
- The calculated width x height, together with the pixel size, is used to calculate the size of the data window. As to get a images with a proper aspect ratio, some WMS servers seem to need the same value for SizeX and SizeY, others need the 'real' rectangle. I have no clue what I should set there. Just edit the XML file and play with these values. Again, and insight would be appreciated.
Trying a uri Martin pointed me to, I noticed that x and y size were apparently exchanged. However, /some/ WMS servers seem to need a square data window, and some others seem to need the "real" aspect ratio. I added a new option '--square' to force SizeX = SizeY. I also changed the calculation of the rectangle to utm. The following two calls now give maps which look good at first glance: # Germany/Nordrhein-Westfalen, 1:5000 ./make-gdal-wms.pl --base=http://www.wms.nrw.de/geobasis/adv_dgk5 --layer=adv_dgk5 --size=0.5 --square # Portugal, 1:100000 ./make-gdal-wms.pl --base=http://mapas.igeo.pt/wms/sc100k --layer=sc100k --size=20 Again, any insight would be appreciated... Best, Albrecht.
make-gdal-wms.pl
Description: Perl program
pgpstCLJyTEoF.pgp
Description: PGP signature
------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
