Imports a dataset into the current Swd. This method creates an internal overlay which contains copies of all of the items in the given dataset.
Visual Basic |
---|
Public Function ImportDataset( _ ByVal dataset As String, _ ByVal pos As Integer _ ) As Integer |
The filename of the dataset to import.
If the dataset class can handle parameters, then you can append parameters after the filename using a question mark. For example, the dataset name could be "c:\temp\MyDts.xxx?width=1024,height=768".
The parameters for all GDAL-based Datasets are:
model=Monochrome|Grayscale|Palette|RGB|HLS|CMY|CMYK|Grid|RGBA // Sets the band interpretation model
fixedModel=true|false // Can the band interpretation model be changed in the Reconfigure dialog?
stretch=true|false // Is stretching enabled?
method=Linear|SquareRoot|Logarithmic|Exponential|Equalization // Sets the stretching method
trim=1|2|3|4|5 // Sets the tail trim %
band1=band_no // Sets the index of the first band
band2=
band3=
band4=
Notes on band selection: band selection always starts with `band1`, which then may be followed by `band2`, which in turn may be followed by `band3`, which in turn may be followed by `band4`.
There must be no 'gaps' in the band parameters.
For example, the following are valid band selection parameters:
band1=
band1=,band2=
band1=,band2=,band3=
band1=,band2=,band3=,band4=
Whereas, the following are invalid sequences:
band2=
band2=,band1=
band3=,band2=
band1=,band3=,band2=
The band indices are not relevant in the above examples and have therefore not been shown.
colour=R:G:B // Sets the colour for the Monochrome band interpretation model
algorithm=None|NearestNeighbour|Bilinear|Cubic|CubicSpline|Lanczos // Sets the resampling method
For GeognoSIS the syntax is:
Public sub ImportDataset( _
ByVal dataset As String, _
ByVal pos As Integer _
)
as it does not return a value.
The internal overlay does not refer to the dataset file, therefore any changes to the dataset file will not be reflected in the internal overlay. The InsertDataset method should be used to refer to a dataset file.
Available: GEO MM ME MD OD OM SISpy
Groups:
sis.ImportDataset ("c:\data\counties.shp", 5)
Send comments on this topic.
Click to return to www.cadcorp.com
© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).