Here's an odd behavior of MapInfo, and what do mapbasic programmers
think? Is this a bug or a WAD (i.e. Works As Designed)?

Open any map window (I chose US States) and open the mapbasic window
too. Click on the Change View tool button and note the map center X
coordinate. Now type into the MB window: 
Print MapperInfo(FrontWindow(), 3) 
and press Enter. You should see the same coordinate (3 =
MAPPER_INFO_CENTERX).

Now type into the MB window:
Set Map XY Units "ft"
and press Enter. Look at the Change View dialog and notice that the
map center coordinates are now in feet (or meters if you tried "m"
above.) Now go back to the line in the MB window:
Print MapperInfo(FrontWindow(), 3)
and put the cursor on it and press Enter. The X coordinate as
determined by MapperInfo doesn't change! It's not paying any
attention to the Set ... XY Units we told it; instead it's sticking
to what was set by the coordsys. But the Change View dialog does use
the units we told it. Is this a bug or not?

IMHO (and we all know what Humble Opinions are worth) this is a bug.
The behavior is inconsistent at best, and in particular, it totally
wasted my time, which is of course, unforgivable. Grr. So watch out
if you ever try to build a general-purpose map-to-paper units scale
converter function. Here be dragons!

Or can anyone make a case for it and suggest a work-around?

-- 
- Bill Thoen
------------------------------------------------------------ 
GISnet, 1401 Walnut St., Suite C, Boulder, CO  80302
tel: 303-786-9961, fax: 303-443-4856
mailto:[EMAIL PROTECTED], http://www.gisnet.com
------------------------------------------------------------



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to