Good day.

 

I’ve been working on a custom info tool for mapxtreme 6.2. The tool has to select a rectangular area and show the info of all the dots inside the given area.

After spending some time trying to do this, I came to a stand still. I have the output coordinates of the area, and I know mapinfo has an sql function which allows me to define a geographical area. So far, my sql query looks like this:

‘SELECT * FROM table1 WHERE x AND y WITHIN AREA(obj, “sq ml”)’

The problem is that the area function requires a geometry object, and the output of the selection tool looks like this:

{X1=10,12345678,Y1=-68,12345678,X2=12,12345678,Y2=-70,12345678}

And I’m having problem converting the set of coordinates into a geometry object.

Do you know of any function or property I could use to convert, or otherwise use the coordinate output to execute the sql query on the .tab file?

 

Thanks in advance.

 

 Carlos Martín

 Supervisor de Informática

 tel.

+58

(241)

824-4443

 fax.

+58

(241)

824-5686

 cel.

+58

(414)

412-9170

 

 

 

 

 [EMAIL PROTECTED]

 http://www.logistica.com.ve

 

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to