Map Services and OGC
🎯 Introduction
By the end of this article, you will be able to choose a map service for displaying images, loading tiles, or querying features.
📡 What Is a Map Service?
A map service is a network interface that provides spatial data or map images to clients. Instead of reading the database directly, the frontend requests supported layers, extents, formats, and coordinate systems.
Map services expose complex spatial database content in a form the frontend can request, while centralizing permissions, coordinate transformation, clipping, and caching.
OGC is an organization that develops geospatial interoperability standards. Its goal is to let different GIS software exchange spatial data using shared rules.
OGC standards reduce the need for a different request convention for every provider, helping frontend developers discover what an unfamiliar service supports.
🧭 WMS, WMTS, and WFS
| Service | Returns | Suitable uses |
|---|---|---|
| WMS | Map images generated for an extent | Display server-configured thematic maps |
| WMTS | Image tiles in a fixed grid | Display cacheable basemaps |
| WFS | Feature geometries and attributes | Query, filter, and process points, lines, and polygons |
🔎 Three Request Names to Know
GetCapabilities: Discover supported layers, coordinate systems, formats, and operations.GetMap: Request a map image with a specified extent, size, and set of layers, commonly in WMS.GetFeature: Request spatial features matching specified criteria, commonly in WFS.
The newer OGC API standards organize features using resources and paths closer to conventional web APIs. Read the service documentation before integration rather than inferring parameters from endpoint names.
🧾 Summary
- Map services expose spatial data in forms the frontend can request.
- WMS returns images, WMTS returns image tiles, and WFS returns vector features.
- GetCapabilities describes service capabilities.
- OGC defines interoperability standards; individual services still require documentation.
❓ Knowledge Check
Q1: Does a WMS image contain road attributes?
The image itself does not contain complete attributes. The service must provide an additional query capability, or you must use a feature service.
Q2: When should you use WFS?
Use it to read geometries and attributes, filter features, or process them in the frontend, provided the data volume is suitable for this form of transfer.
🧪 Exercise
Choose WMS, WMTS, or WFS for “view an administrative-region thematic map” and “query an administrative region’s name.” Explain your choices.
// Write your code here
🎉 You now know how map services supply data to WebGIS!
Raster and Vector Tiles
Distinguish raster tiles, vector tiles, MVT, and PBF, and understand why large vector datasets should not be loaded as one huge GeoJSON file.
Spatial Queries and Relationships
Understand bounding boxes, Within, Contains, Intersects, Touches, and Overlaps to perform common extent-based queries.
