I have been making comparisons of the area of various objects, and have
found MapInfo's area calculating function to be seriously broken, at least
in some projections (Polar Azimuthal projections).

Attached is the MB code and an MBX (both are tiny) which demonstrates the
problem. To summarise what the programme does: 
1/ it draws two triangles of equal size, 
2/ labels the triangles with their area, and 
3/ displays the area in a browser. 

First problem: the labels don't show on the map because of an apparent bug
in the label positioning function. You have to zoom out or pan up to see
where the labels have gone. 

Second problem is the areas: one area calculated as 2,375,776 sq km, the
other area as 5,688 sq km. Three orders of magnitude difference.

I suspect the problem is related to projection. If anyone knows what is
happening here, could you please let me know? What projections are "safe"
and which are "broken"?

Cheers
Mark O.



 <<area_bug.MB>>  <<area_bug.MBX>> 

begin 600 area_bug.MB
M9&5C;&%R92!S=6(@;6%I;@T*)W!R;V=R86UM92!T;R!D96UO;G-T<F%T92!E
M<G)O;F5O=7,@97)R;W(@8V%L8W5L871I;VYS("AA;F0@:6YC:61E;G1A;&QY
M(`T*)V5R<F]N96]U<R!L86)E;"!P;W-I=&EO;FEN9RD@:6X@<&]L87(@<')O
M:F5C=&EO;@T*<W5B(&UA:6X-"F1I;2!T96UP;V)J(&%S(&]B:F5C=`T*#0HG
M8W)E871E('1H92!T86)L92P@=7-I;F<@;&%M8F5R="!A>FEM=71H86P@97%U
M86P@87)E82!3;W5T:"!0;VQA<B!P<F]J96-T:6]N#0IC<F5A=&4@=&%B;&4@
M(F%R96%?=&5S="(@#0H)*&YA;64@8VAA<B@Q,"DI#0H)9FEL92!496UP1FEL
M94YA;64D*"(B*0T*0W)E871E($UA<"!&;W(@87)E85]T97-T($-O;W)D4WES
M($5A<G1H(%!R;VIE8W1I;VX@-"P@-C(L(")M(BP@,"P@+3DP+"`Y,"!";W5N
M9',@*"TY,#(P,30U+CDY-#0Y+"`M.3`R,#$T-2XY.30T.2D@*#DP,C`Q-#4N
M.3DT-#DL(#DP,C`Q-#4N.3DT-#DI#0H-"B=);G-E<G0@;V)J96-T<PT*0W)E
M871E(')E9VEO;B!I;G1O('9A<FEA8FQE('1E;7!O8FH@,2`S("@Q.#`L("TY
M,"D@*"TQ-3`L("TV,"D@*"TQ.#`L("TV,"D-"FEN<V5R="!I;G1O(&%R96%?
M=&5S="`H;F%M92P@;V)J*2!V86QU97,@*")A<F5A,2(L('1E;7!O8FHI#0I#
M<F5A=&4@<F5G:6]N(&EN=&\@=F%R:6%B;&4@=&5M<&]B:B`Q(#,@*#$X,"P@
M+3DP*2`H,34P+"`M-C`I("@M,3@P+"`M-C`I#0II;G-E<G0@:6YT;R!A<F5A
M7W1E<W0@*&YA;64L(&]B:BD@=F%L=65S("@B87)E83(B+"!T96UP;V)J*0T*
M#0HG9&ES<&QA>2X@3F]T92!T:&%T(&QA8F5L<R!A<'!E87(@;V9F('1H92!S
M8W)E96XN#0IC;VUM:70@=&%B;&4@87)E85]T97-T#0IM87`@9G)O;2!A<F5A
M7W1E<W0-"E-E="!-87`@3&%Y97(@,2!,86)E;"!7:71H($%R96$H3V)J96-T
M+"`B<W$@:VTB*2!!=71O($]N#0I3970@;6%P('=I;F1O=R!&<F]N='=I;F1O
M=R@I('IO;VT@96YT:7)E(&QA>65R(#$-"@T*<V5L96-T(&YA;64L(&%R96$H
M;V)J+"`B<W$@:VTB*2!F<F]M(&%R96%?=&5S="!I;G1O('-H;W=?87)E87,-
I"F)R;W=S92`J(&9R;VT@<VAO=U]A<F5A<PT*#0IE;F0@<W5B(&UA:6X=
`
end

begin 600 area_bug.MBX
M(4%P<`HA5F5R<VEO;B`U,#`*(4-H87)S970@5VEN9&]W<TQA=&EN,0H`````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````````````````````"<!```G`0``)P$
M``"E!```I00``````0```````0``````````````````````````````````
M``````!``0``*````(,"``!4`P``D@`5``$`````````7`,```````!<`P``
M^@@`_"`$003]\0H``/_Z"0`&!/WQ&`H`_QX$!@3]\0(/`/\'!`<$^@H`*`3]
M\0H7`/5S``'__OH+`/P@!!\%8@7]\1@``/\6!A(&%0;]\0(8`/\#!/WQ`B``
M_P,$_?$**`#_`P3]\0(J`/\#!/WQ`C(`$/\#!/WQ`C(`_Q0&!@3]\0(Z`!#_
M`P3]\0(Z`!#_!P0&!/WQ`CH`_P,$_?$".@#_!P3^^@X`_"`$+@4R!!@&\B$`
M``#Q`D(`\0)*``8$_?$"4@#_`P3]\0(R`!#_!P0&!/WQ`EH`$/\#!/WQ`F(`
M$/\'!`8$_?$"4@`0_P,$_?$"8@`0_P<$_OH/`/PP!#($_?$8``#_!@3]\1@*
M`/\#!/WQ&&H`_P<$:00&!/WQ"FX`_P,$_?(A````_P<$_OH0`/P@!"X%,@08
M!O(A````\0)"`/$"2@`&!/WQ`E(`_P,$_?$",@`0_P<$!@3]\0):`/\#!/WQ
M`F(`$/\'!`8$_?$"4@`0_P,$_?$"8@`0_P<$_OH1`/PP!#($_?$8``#_!@3]
M\1@*`/\#!/WQ&&H`_P<$:00&!/WQ"G0`_P,$_?(A````_P<$_OH4`/Q[!$$$
M_?$8``#__OH5`/P?!2H$_?$8``#__OH6`/P_!!\%3@3]\0)"`/]Z!!4%_?$8
M>@#Q"H$`]3$``O\9!C<$_OH7`/P_!!\%9P3]]14``/]-!`4%3@3]\0)"`/_^
M^AD`_#X$_?$8"@#_`P3]\1AJ`/$*@0#U,0`"_RH$_?$8``#_,@3]\1B'`/_^
M^AH`_!T$#@`J!/WQ&(<`__[X87)E85]T97-T`&YA;64`````````)$``````
M````$$````````!/0&T``````````````````(!60+'<TC]>-&%!````````
M\#\````````(0```````@&9```````#`8D````````!.0&]B:@!A<F5A,0!A
M<F5A,@!/8FIE8W0`<W$@:VT`<VAO=U]A<F5A<P`!```5"@`"#P`!%P`"&``"
M(``!*``"*@`",@`".@`"0@`"2@`"4@`"6@`"8@`5:@`!;@`!=``5>@`!@0`5
MAP`-`/__`````$`!```$;6%I;@``````````N00``,T$```!````0`$``,T$
M```!````!W1E;7!O8FHV!0```0```"]&.EQ34D-<5DU37%!H87-E,5Q$979<
M36%P26YF;UQM:7-C7&%R96%?8G5G+DU"6#!&.EQ34D-<5DU37%!H87-E,5Q$
=979<36%P26YF;UQM:7-C7&%R96%?8G5G+DU"```=
`
end
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to