; ; HATANO ; ====== ; ; Name: Hatano ; Proj4: +proj=hatano ; Libproj4, S. 59, 6.2.12 ; Quelle: Gerald I. Evenden. Libproj4: A Comprehensive Library if Cartographic Projection Functions, March 2004 ; Richtung: Inverse Transformation ; ; Das Programm übernimmt die Koordinaten eines Punktes (x/y) und transformiert ; diese in einen Punkt (x'/y'). ; ; x/y sind ebene Zielpunktkoordinaten, x'/y' geben die geogr. Breite und Länge ; der Position auf der Quell-Erdkugel, auf der der Zielpunkt gelesen werden ; kann. ; ; Maßstab und Mittellänge werden abgefragt. ; ; Die Zielbildgeometrie wird dem Sekundäroperanden oder einem Fixbild entnommen. ; Der Berührungspunkt wird bildmittig gesetzt. ; ; Literatur: ; Wagner: Kartographische Netzentwürfe, Leipzig: Bibliographisches Institut 1949 ; Gerald I. Evenden, USGS: Libproj4. A Comprehensive Library if Cartographic Projection Functions, March 2004 ; (C) Rolf Böhm 2004 ; Benutzte Variablen ; ================== ; ; Laufende Koordinaten ; _name Hatano _var phi ; Geographische Breite _var theta ; Parameter _var lambda ; Geographische Länge _var t1 ; temp _var t2 ; temp ; ; Konstanten der Transformation ; _var lambda0 ; Geogr. Länge des Bildmittelpunktes _var scale ; Kartenmaßstabszahl (also 1000000, nicht 1/1000000) _var ratio _var Cy1 ; Konstanten _var Cy2 _var Cp1 _var Cp2 _var Cy _var Cp _var n _var initial _var .......... ; Ende Symboltabelle ; ; x, y, x', y', Cx', Cy', °(, (°, pi, pi/2 etc. sind vordefinierte globale Konstanten ; ; Initialisierung ; =============== ; tstne initial 077$ ; Dialog input scale Hatano\\Maßstabszahl input lambda0 Mittelpunktslänge~in~Grad ; Eingegebene Werte auf Min/Max bringen clip scale 1 1E12 clip lambda0 -180 180 ; Konstanten einstellen mov Cy1 1.75859 mov Cy2 1.93052 mov Cp1 2.67595 mov Cp2 2.43763 ; Programm ist initialisiert mov initial 1 077$: ; ; SIMD-Laufbereich ; ================ ; ; Maßstab, Kartenmittelpunkt etc. einrechnen ; ------------------------------------------ sub x Cx' ; Bildmittelpunkt div x Rx' ; Erdradius mul x scale ; Kartenmaßstab sub y Cy' div y Ry' mul y scale ; ; Eigentlicher Entwurf, dieser invers ; ----------------------------------- ; mov Cp Cp1 mov Cy Cy1 tstgt y 099$ ; y has the sign of phi mov Cp Cp2 mov Cy Cy2 099$: mov theta y ; Parameter Theta div theta Cy asin theta errjump out mov t1 theta ; Geographische Länge cos t1 mul 0.85 t1 mov lambda x div lambda t1 mov t1 theta ; Geographische Breite mul t1 2 mov t2 theta mul t2 2 sin t2 add t1 t2 div t1 Cp asin t1 errjump out mov phi t1 ; ; In Gradmaß umrechnen und Ausserhalbtest ; --------------------------------------- ; mul phi (° mul lambda (° mul theta (° ; Test cmplt phi -90 out cmpgt phi 90 out cmplt lambda -180 out cmpgt lambda 180 out ; ; Schlussarbeiten ; --------------- ; mov x' lambda add x' lambda0 mov y' phi mov z' theta ; Test cmpgt x' -180 10$ add x' 360 10$: cmpgt x' -180 30$ add x' 360 30$: cmplt x' 180 40$ sub x' 360 40$: cmplt x' 180 50$ sub x' 360 50$: exit out: mov x' -9999 mov y' -9999 exit _end