Hej Jon,
 
This should be possible. Using the VM Trim function of the VM SDK API
 
Declare Function vmTrimGrid Lib "vmAPI.dll" (pszTrimTableName As String, ByVal dwTrimRow As Integer, ByVal GridID As Integer, pszGridTableName As String, ByVal ProgressUpdate As Integer) As Integer
 
And the export function.
 
Declare Function vmExportGrid Lib "vmAPI.dll" (ByVal GridID As Integer, ByVal dwExportFormat As Integer, pszExportFileName As String, ByVal dNullValue As Float, ByVal ProgressUpdate As Integer) As Integer
 
Take a look of the MapBasic samples comming with the Vertical Mapper SDK. The DSK is a separated API not comming with the standard VM. Actually the SDK is a manual and samples in different languages. The binaries you have in the VM folder.
You can get the VM SDK from COWI in Denmark. I do not thing you have a reseller in Norway, but you have to check up on it your self.
 
And a warning :) The VM SDK is not very user friendly in handling error messages. Stick close to the samples and read the manual closely for each function you use..

Med venlig hilsen

Jakob Lanstorp
Software Developer
Geographical Information & IT
 
COWI A/S
Odensevej 95
DK-5260 Odense S
Denmark
 
Tel     +45 6311 4900
Mob     +45 4020 7529
Fax     +45 6311 4949
E-mail 
[EMAIL PROTECTED]
http://www.cowi.dk/gis

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, May 29, 2006 3:27 PM
To: [email protected]
Subject: [MI-L] Selection and export of VM Grid data

Listers,

 

I am new to integrating Vertical Mapper GRID data in MB scripts

 

Is it possible in a simple way to make an MB script which

 

- loops a series of point / line objects (a fetch-loop) (OK!)

- creates a region object (ie a buffer object or similar) (OK!)

- uses this region to select grid cells from a present grid layer (Like VM trimmer or MapInfo’s “Boundary select”)

- export the selected grid cells as point objects with grid properties into a MapInfo TAB file.

 

Vertical Mapper(V3) and MapBasic (V8) available. Do I need some more VM functionality for doing this in MB ?

 

Thankful for any feedback / hints / sample statements.

 

Regards


Jon Petter Nielsen

Rådgiver

Tlf:    6712 8251

Mob: 9759 6860

Fax:  6712 5840

SWECO Grøner AS

Fornebuveien 11

Postboks 400

Tlf:   6712 8000

Fax: 6712 5840

 

 

 

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

Reply via email to