Hello Jorge,

Wednesday, June 05, 2002, 2:35:20 PM, you wrote:


JE> thanks for the replies, but i think i have been misunderstood.
JE> i dont want to merely display the image, i need to have the image 
JE> georeferenced using control points. if i know that the corners of the image 
JE> lie in certain x/y locations, how can i register this image so that if i 
JE> overlay polygon data over they will show in the appropriate position.
Stet 1) Create create TAB file for your image manually. TAB file
=========================
format for iamges is:
!table
!version 300
!charset WindowsCyrillic

Definition Table
  File "arrow2.bmp"
  Type "RASTER"
  (0,0) (0,0) Label "Pt 1",
  (10,0) (1024,0) Label "Pt 2",
  (10,10) (1024,1024) Label "Pt 3"
  (0,10) (0,1024) Label "Pt 4"
  CoordSys Earth Projection 1, 0
  Units "degree"
===================================
Where in Label clause first pair of ccords is coords in units defined
in Units clause (in this case)  - degree. Second pair of coords -
coords of points of your image. Lets image is 1024x1024. You need put
values in degree for each of corner in pixels.

Step 2) Open it as simple TAB using "Open Table" statement

JE> I also need to know if it is possible to create a dialog in mapbasic to 
JE> control the act/deact, addition/remove layers.  i know i could use radio 
JE> buttons or checkboxes, but i need the dialog to be dynamic. what if i create 
JE> 4 radio buttons and the user opens another layer. see?  then the dialog 
JE> would be outdated, and be recreated. is this possible?
JE> It would also be better if i could change the order of layers from within, i 
JE> dont want the user to deal with mapinfos layer control.
JE> thank you guys.
Yes, you can't create dialog controls dynamic. But you can use two
ListBoxes: Availible and Visible Layers. Also add to dialog two (or
four) buttons Addd, Remove (Add All, Remove All).

To learn how to implement interaction between ListBoxes you can see
Sample Code from MBBuilder Installation.
Run MBBuilder and open project:
"c:\Program Files\microOLAP\MBBuilder 1.5.1\SAMPLES\Dual ListBox Demo\DualListBox.MBP"



-- 
Best regards,
Vladimir Lashin
microOLAP Technologies LLC

MBX/VCL free stuff  - http://www.microolap.com/gis/mbx/index.htm
MBBuilder - Visual Development Tool for MapBasic - http://www.microolap.com/gis/mb.htm
Raster Handler for ERDAS Imagine to MapInfo - http://www.microolap.com/gis/imgrhl.htm
MapInfo Callbacks Manager ActiveX - http://www.microolap.com/gis/micm.htm

mailto:[EMAIL PROTECTED]
http://www.microolap.com/gis/ - GIS related products



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to