Hi there,

I appear to have a problem utilizing the Polyconic projection within MapInfo
v5.5.
I need to get the the extents of a map window (which I am able to do) but
hit a problem when I use the Polyconic Projection.
When I attempt to use the MapperInfo() function to determine the MinX and
MinY of a map window - the function returns the origin of longitude value.
The MinY and MaxY values are unaffected.  Please help!!!


To produce the problem please:

1) Open Map Window in MapInfo.
2) Change the map's coordinate system to a Brazilian polyconic projection.
Set xy and distance units to meters.
3) Open a Map Basic Window.
4) Paste the following code into the MapBasic window or into an MapBasic
application.

Dim wid as integer
dim maxx as float
dim maxy as float
dim minx as float
dim miny as float

wid = frontWindow()
Set Coordsys Window wid

minx = MapperInfo(wid,5)
miny = MapperInfo(wid,6)
maxx = MapperInfo(wid,7)
maxy = MapperInfo(wid,8)

print "minx: "+Format$(minx,"0.000000")
print "miny: "+Format$(miny,"0.000000")
print "maxx: "+Format$(maxx,"0.000000")
print "maxy; "+Format$(maxy,"0.000000")

5) Pay particular attention to the minx and maxx values.
6) Use your cursor to manually see what the minx and maxx coordinates are in
the map window.
7) Compare the X values from print statements with the X values determined
using the cursor over the map window


We need to know the extents of a map window because the product that we
produce allows clients to produce proper scaled
maps (using a layout window).  We cannot support the Polyconic projection
without these values being correct.  A map will be produced of course but
not to the proper scale.
Our Scalebar and annotation around the map border will be incorrect also.

Try again, using say a UTM Projection and compare..

Regards,
Mike

----------------------------------------------------------------------
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