/*! \page sdts_al_main
An SDTS Transfer is a grouping of ISO8211 encoded files (ending in the .DDF extension), normally with part of the basename in common. For instance a USGS DLG SDTS transfer might consists of many files matching the SC01????.DDF pattern. The key file in an SDTS transfer is the catalog file, such as SC01CATD.DDF.
The SDTSTransfer class is used to access a transfer as a whole. The SDTSTransfer::Open() method is passed the name of the catalog file, such as SC01CATD.DDF, to open.
The SDTSTransfer analyses the catalog, and some other aspects of the transfer, and builds a list of feature layers. This list can be accessed using the SDTSTransfer::GetLayerCount(), SDTSTransfer::GetLayerType(), and SDTSTransfer::GetLayerIndexedReader() methods. A typical TVP (Topological Vector Profile) transfer might include three point layers (of type SLTPoint), a line layer (of type SLTLine), a polygon layer (of type SLTPoly) as well as some additional attribute layers (of type SLTAttr). the SDTSTransfer::GetLayerIndexedReader() method can be used to instantiate a reader object for reading a particular layer. (NOTE: raster layers are handled differently).
Each type of SDTSIndexedReader (SDTSPointReader, SDTSLineReader, SDTSPolygonReader, and SDTSAttrReader) returns specific subclasses of SDTSIndexedFeature from the SDTSIndexedReader::GetNextFeature() method. These classes are SDTSRawPoint, SDTSRawLine, SDTSRawPolygon and SDTSAttrRecord. These classes can be investigated for details on the data available for each.
See the SDTS_AL Tutorial for more information on how to use this library.
% gzip -d sdts_1_3.tar.gz % tar xzvf sdts_1_3.tar.gz
C:\SDTS> unzip sdts_1_3.zip
C:\SDTS> nmake /f makefile.vc
Usage: sdts2shp CATD_filename [-o shapefile_name] [-m module_name] [-v] Modules include `LE01', `PC01', `NP01' and `ARDF'A typical session in which we inspect the contents of a transfer, and then extract polygon and line layers might look like this:
warmerda[134]% sdts2shp data/SC01CATD.DDF -v Layers: ASCF: `Attribute Primary ' AHDR: `Attribute Primary ' NP01: `Point-Node ' NA01: `Point-Node ' NO01: `Point-Node ' LE01: `Line ' PC01: `Polygon ' warmerda[135]% sdts2shp data/SC01CATD.DDF -m PC01 -o pc01.shp warmerda[136]% sdts2shp data/SC01CATD.DDF -m LE01 -o le01.shpA prebuilt executable is available for Windows.
The precise license text is:
Copyright (c) 1999, Frank Warmerdam
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
I would like to thank:
*/