This book provides information about using the GLG Map Server along with its utilities and using the Application Programming Interface (API).
The first four chapters of the book document the Map Server itself, while the last chapter contains a reference and RFC specification of the open vector data format used by the Map Server.
The book contains the following chapters:
GLG Map Server Reference Manual
Introduction
A general overview of the GLG Map Server
Structure of Data and File Layout
A description of how data is organized in the Map Server and how to set it up.
Using the Map Server and Utilities
A description of how to use the Map Server executable and its options
Map Server API
How to use the Map Server from a program
GVF Filters and Data Converters
How to program custom filters and an RFC specification of the GVF format
Datasets 28
VECTOR FONT=<font_name> <font_file> 30
IMAGE FONT=<font_name> <font_file> 30
A Simple Example of an SDF file 31
TYPE=<type> 33
TRANS COLOR PRECISION=<value> 34
IMAGE FORMAT=<format>
IMAGE TYPE=<format> (Deprecated, use IMAGE FORMAT)
36
FALLBACK LAYER=<layer name> 36
ADAPTIVE GRID=<number>
ADAPTIVE=<number> (Deprecated, use ADAPTIVE GRID)
40
GRID LABELS=<0, 1 or 2>
LABELS=<0, 1 or 2> (Deprecated, use GRID LABELS)
40
LABEL STYLE 43
MARKER ICON TYPE=<type, type, ...> 44
ATTR MAP=<number resource threshold_table REL/ABS> 47
PIXEL MAP=<number resource threshold_table REL/ABS> 48
CUSTOM ATTR=<number resource data_type> 48
TILES SUBLIF=<top-level sublif file>
SUBLIF DIR=<directory>
SUBLIF FILE=<sublif file>
49
Synopsis 52
Description 52
-cgi 53
-fcgi 53
SRS=<value> 55
EXTENT=<x,y> 57
IMAGE_ANTIALIASING=<0 or 1> 58
I=<number> 58
J=<number> 58
Examples of Attribute Conditions 59
Examples of OpenGIS map query strings 59
Examples of coordinate conversion and elevation queries 61
Coordinate Conversion Query 61
Converting GVF ASCII and BINARY Files 64
-convert 64
-a 64
-b 64
-pattern <file_name_pattern> 64
-merge 65
-a 65
-b 65
Bounding Box Extraction Utility 66
Tiling Utility for Image and Vector Data 66
-tile 67
-image 67
-vector 67
-elevation 67
-neg-range 68
-pos-range 68
-no-range 68
-gvf-extent 68
-a 69
-b 69
-split 71
-bbox 72
-neg-range 72
-pos-range 72
-no-range 73
Slimming Utility for Vector Data 74
-slim 74
-a 74
-b 74
Shapefile Conversion Utility 75
-shp2gfv 75
-show-attrs 75
-r 76
-a 76
-b 76
-all-attrs 76
-no-attrs 76
Hierarchical Tile Parsing (Advanced) 77
-lif 78
-vector 78
-image 78
-multi-layer 78
-path <dir> 78
Image and Elevation Data Import (Advanced) 81
-info-only 82
-write-image 82
-elevation 82
-shadow 82
-slf 82
-r 83
-u 83
-k 83
-f 83
-dont-emboss 83
Projection D 86
CenterLon D 86
CenterLat D 86
VExtent D 87
HExtent D 87
AngleD 87
Width D 87
Height D 87
Stretch D 87
Background G 87
Verbosity D 87
Code Example 88
Overview 91
GlmRoot S 92
LayerPath S 92
FontPath S 92
Encoding D 93
ErrorFont S 93
LayerType D 93
IsDefault D 93
TransType D 93
TransColor G 94
Alpha D 94
MaxTiles D 94
Clip D 95
Width D 95
Height D 95
MinLon D 95
MinLat D 95
MaxLon D 95
MaxLat D 95
MinZoom D 95
MaxZoom D 95
GridMinLon D 95
GridMinLat D 95
GridMaxLon D 96
GridMaxLat D 96
GridLabels D 96
TextFont S 97
TextType D 97
FontScale D 97
TextAngle D 97
TextAnchor D 97
LabelStyle D 97
LayoutType D 98
MarkerType D 98
MarkerSize D 98
FillType D 99
LineWidth D 99
FillColor G 99
EdgeColor G 99
LabelColor G 99
PolyLabelType D 100
Volatile D 100
VolatileErrors D 100
LockFile S 100
LockTimeout D 100
RedirectFile S 100
RedirectPrefix S 100
FallbackLayer S 100
AllowOverride D 101
Parameters 101
Parameters 101
Parameters 102
Parameters 102
Parameters 102
Parameters 103
Parameters 103
Parameters 104
Parameters 104
Parameters 105
Parameters 105
Parameters 106
Parameters 106
Parameters 107
Parameters 107
Parameters 107
Parameters 108
Parameters 109
Parameters 109
Parameters 110
Parameters 111
Parameters 111
Parameters 112
Parameters 112
Overview 113
GVF Functions 113
Writing a Filter or Data Convertor 114
Parameters 116
Parameters 117
Parameters 118
Parameters 119
Parameters 119
File Extension 120
Definitions 120
ASCII Format 121
Header 121
Body 121
Objects 122
Ring 122
Number of Points 122
Marker Type 122
Scale 123
Angle 123
Anchoring 123
Text String 123
Attributes 123
Data Points 124
Appendix A: Web Server Installation Notes 125
Introduction 125
Map Server Setup on a Web Server 127
Map Server Run-Time Components 127
FastCGI setup 128