Downloading and InstallationTopTcl Commands Implemented

Tcl Commands Implemented

The general philosophy is that of dealing with the Shapefile files (the data file .shp, the index file .shx, and the attribute file .dbf) as a single entity that is called below a set of files. There are Tcl commands for creating a new set and for opening (for reading) an existing one, as well for closing a set that was created or opened.

Each set has a type and dimension associated to it. The basic types are waypoint, route and track, that correspond to the Shapefile point and polylines or polygons shapes. When reading from a Shapefile polyline not of type ARCM the distinction between routes and tracks is made if its attribute field names are the same as those written by gpsmanshp. The type UNKNOWN is used if this distinction cannot be made and also when reading from a Shapefile ARCM or polygon. Shapefiles of type ARCM and POLYGONM are dealt with as being UNKNOWN with dimension 2.

Input/output of polylines and input of polygons is made by first getting/creating an internal description and then reading/writing each point at a time. There can be no more than one route and one track being created at the same time, and no more than one polyline or polygon being read from each set.

General Command

GSHPCloseFiles ID

Output Commands

GSHPCreateFiles BASEPATH TYPE DIM

GSHPWriteWP ID X Y ?Z? NAME COMMENT DATE

GSHPCreateRT DIM RTID COMMENT

GSHPForgetRT

GSHPAddWPToRT X Y ?Z?

GSHPWriteRT ID FORGET

GSHPCreateTR DIM NAME COMMENT ?SEGSTARTERS?

GSHPForgetTR

GSHPAddTPToTR X Y ?Z?

GSHPWriteTR ID FORGET

Input Commands

GSHPOpenInputFiles BASEPATH

GSHPInfoFrom ID

GSHPGetObj ID INDEX

GSHPReadNextPoint ID


GPSManSHP WWW pages
Copyright ©Miguel Filgueiras, , 2013
Get gpsmanshp at SourceForge.net. Fast,
secure and Free Open Source software downloads

Downloading and InstallationTopTcl Commands Implemented