01.06.2005, 15:00
|
#54 (permalink)
|
| PostRank: 2
Registriert seit: 14.03.2005 Ort: Düsseldorf
Beiträge: 50
| WorldKit - Eigene Karte einpassen?? Hallo,
ich versuche gerade eine Deutschlandkarte mit dem WorldKit zu basteln. Wie funktioniert denn das mit den Cropping/Pixel-Einträgen für die Höhen- und Breiteneinstellung wenn man aus der Blue Marble Weltkarte eine eigene Deutschlandkarte herausschenidet? Leider verstehe ich das folgende überhaupt nicht. Code: Cropping Earth Images
In the cropping, it is necessary to determine the exact pixel bounding box of the crop, in order to set up the N/S/E/W values in configuration. Assuming the origin is in the upper left hand corner, use the following formulas. "Height" and "Width" refer to the original image.
North = ( 180 * (Height - TopCrop) / Height ) - 90
South = ( 180 * (Height - BottomCrop) / Height ) - 90
East = 180 - ( 360 * (Width - RightCrop) / Width )
West = 180 - ( 360 * (Width - LeftCrop) / Width )
Kann mir jemand von Euch ein Beispiel nennen? Gruß und Dank Stefan |
| |