John Smith schrieb:
On 22 March 2010 15:09, Bernhard zwischenbrugger b...@datenkueche.com wrote:
Sorry:
Southwest: 0,0
Northeast: 90,180
Are you after the middle WGS points or the middle points on a mercator grid
The 2 points must be converted to mercator.
In mercator the
El 22/03/2010 4:20, Bernhard zwischenbrugger escribió:
Given:
wgs84: minlat, minlon, maxlat, maxlon
screen: width, height
Needed:
lat,lng, center
http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Control/ZoomBox.js
Cheers,
--
Iván Sánchez Ortega i...@sanchezortega.es
Thanks for input - it's done.
this.setBounds=function(b){
this.normalize();
//the setbounds should be a mathematical formula and not
guessing around.
//if you know this formula pease add it here.
//this.getSize();
Hi all
Maybe that one is easy for someone out there, for me it's unsolvable.
I have
minlat, minlon, maxlat, maxlon
That describes an area in WGS84
The area should be placed on the screen.
To place it on the screen, I need the centerlat,centerlng and the zoomlevel.
To be shorter on that:
How about converting to UTM then using a zoom level specified as meters
per pixel?
Here is what I did when printing from Mapnik:
http://www.britishideas.com/2009/09/22/map-scales-and-printing-with-mapnik/
Andy
Bernhard zwischenbrugger wrote:
Hi all
Maybe that one is easy for someone out
hi
How about converting to UTM then using a zoom level specified as
meters per pixel?
Here is what I did when printing from Mapnik:
http://www.britishideas.com/2009/09/22/map-scales-and-printing-with-mapnik/
I don't know UTM.
If a globe is displayed on a 2D medium some things appear
Stefan de Konink schrieb:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Op 22-03-10 04:20, Bernhard zwischenbrugger schreef:
Hint:
At first you maybe think
centerLat = (minlat + matlat)/2;
centerLng = (minlng + matlng)/2;
could be the solution.
But that does not give the correct
Small correction:
I think your problem is more fundamental; because min and max are not
going to work ;) lefttop, righttop, leftbottom, right bottom are.
Good Point you are right on that.
I have 2 Points in WGS84:
Southeast (example 0,0)
Northwest (example 90, 180)
Sorry:
On 22 March 2010 15:09, Bernhard zwischenbrugger b...@datenkueche.com wrote:
Sorry:
Southwest: 0,0
Northeast: 90,180
Are you after the middle WGS points or the middle points on a mercator grid ?
___
talk mailing list
talk@openstreetmap.org
9 matches
Mail list logo