MapWinGIS:ShpfileType

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

The shapefile type enumerations are used to determine the the type of a shape and also the type of shapes that can be inserted into the shapefile. The shapefile type of a shape determines how the points added to the shape are interpreted to draw the desired geometric object. Note: Multipatch shapefiles are not currently supported by MapWindow.

Values

Name Value Summary
SHP_NULLSHAPE
0
This specifies that there is no geometric data in the shape. Null shapes are often used as place holders when a shapefile is created, and are later populated with geometric data.
SHP_POINT
1

This specifies that the shapefile is a Point shapefile, and that only shapes of this type are contained in the shapefile.

The points are stored as double precision values (x, y).

SHP_POLYLINE
3

This specifies that the shapefile is a Polyline shapefile, and that only shapes of this type are contained in the shapefile.

The Polyline is defined by an ordered array of points of double precision values (x,y). These points are contained in one or more parts.

SHP_POLYGON
5

This specifies that the shapefile is a Polygon shapefile, and that only shapes of this type are contained in the shapefile.

The Polygon is defined by an ordered array of points of double precision values (x,y). These points are contained in one or more parts.

A polygon may have interior parts which are not filled. These parts contain points ordered in a counter-clockwise direction. Parts that are to be filled are ordered in a clockwise direction. The outer part for the polygon must be ordered in a clockwise direction.

SHP_MULTIPOINT
8

This specifies that the shapefile is a MultiPoint shapefile, and that only shapes of this type are contained in the shapefile.

The points are stored as double precision values (x, y) in an array.

SHP_POINTZ
11

This specifies that the shapefile is a PointZ shapefile, and that only shapes of this type are contained in the shapefile.

The points are stored as double precision values (x, y, z) with an associated double precision Measure value (M).

SHP_POLYLINEZ
13

This specifies that the shapefile is a PolylineZ shapefile, and that only shapes of this type are contained in the shapefile.

The Polyline is defined by an ordered array of points of double precision values (x,y,z) with an associated Measure value (M) for each point. These points are contained in one or more parts.

SHP_POLYGONZ
15

This specifies that the shapefile is a PolygonZ shapefile, and that only shapes of this type are contained in the shapefile.

The Polygon is defined by an ordered array of points of double precision values (x,y,z) with an associated Measure value (M) for each point. These points are contained in one or more parts.

A polygon may have interior parts which are not filled. These parts contain points ordered in a counter-clockwise direction. Parts that are to be filled are ordered in a clockwise direction. The outer part for the polygon must be ordered in a clockwise direction.

SHP_MULTIPOINTZ
18

This specifies that the shapefile is a MultipointZ shapefile, and that only shapes of this type are contained in the shapefile.

The points are stored as double precision values (x, y, z) in an array with an associated Measure value (M) for each point.

SHP_POINTM
21

This specifies that the shapefile is a PointM shapefile, and that only shapes of this type are contained in the shapefile.

The points are stored as double precision values (x, y) with an associated Measure value (M).

SHP_POLYLINEM
23

This specifies that the shapefile is a PolylineM shapefile, and that only shapes of this type are contained in the shapefile.

The Polyline is defined by an ordered array of points of double precision values (x,y) with an associated Measure value (M) for each point. These points are contained in one or more parts.

SHP_POLYGONM
25

This specifies that the shapefile is a PolygonM shapefile, and that only shapes of this type are contained in the shapefile.

The Polygon is defined by an ordered array of points of double precision values (x,y) with an associated Measure value (M) for each point. These points are contained in one or more parts.

A polygon may have interior parts which are not filled. These parts contain points ordered in a counter-clockwise direction. Parts that are to be filled are ordered in a clockwise direction. The outer part for the polygon must be ordered in a clockwise direction.

SHP_MULTIPOINTM
28

This specifies that the shapefile is a MultipointM shapefile, and that only shapes of this type are contained in the shapefile.

The points are stored as double precision values (x, y) in an array with an associated Measure value (M) for each point.

SHP_MULTIPATCH
31

This specifies that the shapefile is a Multipatch shapefile, and that only shapes of this type are contained in the shapefile.

The Multipatch is defined by a group of parts. There is an ordered array of points which is divided into parts. Each part has a part type (Triangle Strip, Triangle Fan, Outer Ring, Inner Ring, First Ring, or Ring). The part type defines how the points in the specified part are interpreted to draw the desired geometric shape.

Note: Multipatch shapefiles are not currently supported by MapWindow.

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:ShpfileType"

This page has been accessed 5,825 times. This page was last modified on 31 July 2007, at 21:18.