[Mapbender-users] setting up measure and getAreatools (in non metric/non-geographic coordinate system)

karsten vennemann karsten at terragis.net
Sat Mar 1 03:03:59 EST 2008


Hi all,

I am using SRS 2285 (Washington State Plane N in feet) and read in the documentation that I will have to use the "GetArea" instead of “measure” tool.
Now I have both in my application (or gui) but still I get values way to high in meters. Below is the sql that I have for the two tools. Any ideas what is wrong?

Measure tool:
INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires, e_url) VALUES('alliance6','getArea',3,1,'Calculation of area, Postgis required','div','','title="Get Area"',NULL ,,NULL ,,NULL ,'filter:Chroma(color=#C2CBCF);','','div','mod_getArea.php','','mapframe1','measure','');

GetArea tool:
INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires, e_url) VALUES('alliance6','measure',2,1,'Measure','img','../img/button_blue/measure_off.png','onmouseover = "mb_regButton(''init_mod_measure'')" title="Measure distance"',513,105,28,28,3,'filter:Chroma(color=#C2CBCF);','','','mod_measure.php','','mapframe1','','http://www.mapbender.org/index.php/Measure');

Also could I change the output from meter to miles somewhere?
These crazy American customers would like that better ☺. Long live metric ...

If anyone can help me to figure this out … I’m ready to amend the documentation because it is a little bit sparse on that ☺

Karsten




More information about the Mapbender_users mailing list