Mapscript 2.変数
2.1 Version
| 名称 | 型 | 値 |
|---|---|---|
| MS_VERSION | character | 4.8 |
2.2 Logical Control - Boolean Values
| 名称 | 型 | 値 |
|---|---|---|
| MS_TRUE | integer | 1 |
| MS_ON | integer | 1 |
| MS_YES | integer | 1 |
| MS_FALSE | integer | 0 |
| MS_OFF | integer | 0 |
| MS_NO | integer | 0 |
2.3 Logical Control - Status Values
| 名称 | 型 | 値 |
|---|---|---|
| MS_DEFAULT | integer | 2 |
| MS_EMBED | integer | 3 |
| MS_DELETE | integer | 4 |
2.4 Map Units
| 名称 | 型 | 値 |
|---|---|---|
| MS_DD | integer | |
| MS_FEET | integer | |
| MS_INCHES | integer | |
| MS_METERS | integer | |
| MS_MILES | integer | |
| MS_PIXELS | integer |
2.5 Layer Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_LAYER_POINT | integer | |
| MS_LAYER_LINE | integer | |
| MS_LAYER_POLYGON | integer | |
| MS_LAYER_RASTER | integer | |
| MS_LAYER_ANNOTATION | integer | |
| MS_LAYER_QUERY | integer | |
| MS_LAYER_CIRCLE | integer | |
| MS_LAYER_TILEINDEX | integer |
2.6 Font Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_TRUETYPE | integer | |
| MS_BITMAP | integer |
2.7 Label Positions
| 名称 | 型 | 値 |
|---|---|---|
| MS_UL | integer | |
| MS_LL | integer | |
| MS_UR | integer | |
| MS_LR | integer | |
| MS_CL | integer | |
| MS_CR | integer | |
| MS_UC | integer | |
| MS_LC | integer | |
| MS_CC | integer | |
| MS_AUTO | integer |
2.8 Label Size (Bitmap only)
| 名称 | 型 | 値 |
|---|---|---|
| MS_TINY | integer | |
| MS_SMALL | integer | |
| MS_MEDIUM | integer | |
| MS_LARGE | integer | |
| MS_GIANT | integer |
2.9 Shape Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_SHAPE_POINT | integer | |
| MS_SHAPE_LINE | integer | |
| MS_SHAPE_POLYGON | integer | |
| MS_SHAPE_NULL | integer |
2.10 Measured Shape Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_SHP_POINTM | integer | 21 |
| MS_SHP_ARCM | integer | 23 |
| MS_SHP_POLYGONM | integer | 25 |
| MS_SHP_MULTIPOINTM | integer | 28 |
2.11 Shapefile Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_SHAPEFILE_POINT | integer | 1 |
| MS_SHAPEFILE_ARC | integer | 3 |
| MS_SHAPEFILE_POLYGON | integer | 5 |
| MS_SHAPEFILE_MULTIPOINT | integer | 8 |
2.12 Query Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_SINGLE | integer | 0 |
| MS_MULTIPLE | integer | 1 |
2.13 File Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_FILE_MAP | integer | |
| MS_FILE_SYMBOL | integer |
2.14 Querymap Styles
| 名称 | 型 | 値 |
|---|---|---|
| MS_NORMAL | integer | |
| MS_HILITE | integer | |
| MS_SELECTED | integer |
2.15 Connection Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_INLINE | integer | |
| MS_SHAPEFILE | integer | |
| MS_TILED_SHAPEFILE | integer | |
| MS_SDE | integer | |
| MS_OGR | integer | |
| MS_POSTGIS | integer | |
| MS_WMS | integer | |
| MS_ORACLESPATIAL | integer | |
| MS_WFS | integer | |
| MS_GRATICULE | integer | |
| MS_MYGIS | integer | |
| MS_RASTER | integer |
2.16 DB Connection Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_DB_XBASE | integer | |
| MS_DB_CSV | integer | |
| MS_DB_MYSQL | integer | |
| MS_DB_ORACLE | integer | |
| MS_DB_POSTGRES | integer |
2.17 Join Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_JOIN_ONE_TO_ONE | integer | |
| MS_JOIN_ONE_TO_MANY | integer |
2.18 Line Join Types (for rendering)
| 名称 | 型 | 値 |
|---|---|---|
| MS_CJC_NONE | integer | |
| MS_CJC_BEVEL | integer | |
| MS_CJC_BUTT | integer | |
| MS_CJC_MITER | integer | |
| MS_CJC_ROUND | integer | |
| MS_CJC_SQUARE | integer | |
| MS_CJC_TRIANGLE | integer |
2.19 Image Types
| 名称 | 型 | 値 |
|---|---|---|
| GD/GIF | integer | |
| GD/PNG | integer | |
| GD/PNG24 | integer | |
| GD/JPEG | integer | |
| GD/WBMP | integer | |
| swf | integer | |
| imagemap | integer | |
| integer | ||
| GDAL/GTiff | integer |
2.20 Image Modes
| 名称 | 型 | 値 |
|---|---|---|
| MS_IMAGEMODE_PC256 | integer | |
| MS_IMAGEMODE_RGB | integer | |
| MS_IMAGEMODE_RGBA | integer | |
| MS_IMAGEMODE_INT16 | integer | |
| MS_IMAGEMODE_FLOAT32 | integer | |
| MS_IMAGEMODE_BYTE | integer | |
| MS_IMAGEMODE_NULL | integer | |
| MS_NOOVERRIDE | integer | |
| MS_GD_ALPHA | integer | 1000 |
2.21 Symbol Types
| 名称 | 型 | 値 |
|---|---|---|
| MS_SYMBOL_SIMPLE | integer | |
| MS_SYMBOL_VECTOR | integer | |
| MS_SYMBOL_ELLIPSE | integer | |
| MS_SYMBOL_PIXMAP | integer | |
| MS_SYMBOL_TRUETYPE | integer | |
| MS_SYMBOL_CARTOLINE | integer |
2.22 Return Codes
| 名称 | 型 | 値 |
|---|---|---|
| MS_SUCCESS | integer | 0 |
| MS_FAILURE | integer | 1 |
| MS_DONE | integer | 2 |
2.23 Limiters
| 名称 | 型 | 値 |
|---|---|---|
| MS_MAXSYMBOLS | long | |
| MS_MAXVECTORPOINTS | long | |
| MS_MAXSTYLELENGTH | long | |
| MS_IMAGECACHESIZE | long |
2.24 Error Return Codes
| 名称 | 型 | 値 |
|---|---|---|
| MS_NOERR | long | 0 |
| MS_IOERR | long | 1 |
| MS_MEMERR | long | 2 |
| MS_TYPEERR | long | 3 |
| MS_SYMERR | long | 4 |
| MS_REGEXERR | long | 5 |
| MS_TTFERR | long | 6 |
| MS_DBFERR | long | 7 |
| MS_GDERR | long | 8 |
| MS_IDENTERR | long | 9 |
| MS_EOFERR | long | 10 |
| MS_PROJERR | long | 11 |
| MS_MISCERR | long | 12 |
| MS_CGIERR | long | 13 |
| MS_WEBERR | long | 14 |
| MS_IMGERR | long | 15 |
| MS_HASHERR | long | 16 |
| MS_JOINERR | long | 17 |
| MS_NOTFOUND | long | 18 |
| MS_SHPERR | long | 19 |
| MS_PARSEERR | long | 20 |
| MS_SDEERR | long | 21 |
| MS_OGRERR | long | 22 |
| MS_QUERYERR | long | 23 |
| MS_WMSERR | long | 24 |
| MS_WMSCONNERR | long | 25 |
| MS_ORACLESPATIALERR | long | 26 |
| MS_WFSERR | long | 27 |
| MS_WFSCONNERR | long | 28 |
| MS_MAPCONTEXTERR | long | 29 |
| MS_HTTPERR | long | 30 |
| MS_CHILDERR | long | 31 |
| MS_WCSERR | long | 32 |
| MS_NUMERRORCODES | long | 33 |
| MESSAGELENGTH | long | 33 |
| ROUTINELENGTH | long | 33 |
Add a New Comment
page revision: 7, last edited: 18 Apr 2008 04:49





