|
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 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 MapInfos
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
|
_______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
