Web Mapping Illustrated by Tyler Mitchell

Web Mapping Illustrated by Tyler Mitchell

Author:Tyler Mitchell [Mitchell, Tyler]
Language: eng
Format: epub
Tags: Web, Computer Graphics, Information Theory, Reference, Software Development & Engineering, Social Aspects, Programming, Computers, Web Site Development, General, Electronic Books, Cartography, Games, Digital Mapping, Data Processing, Internet, Online Services, Geodatabases, Data Modeling & Design, Geographic Information Systems
ISBN: 9780596008659
Publisher: O'Reilly Media
Published: 2005-01-02T08:00:00+00:00


The output image format can be explicitly set in the map file. This requires adding a single line specifying the output format you are requesting. Example 10-11 shows the additional line added to the earlier example map file.

Example 10-11. Specifying the output image format as JPEG

MAP SIZE 600 300 EXTENT -180 -90 180 90 IMAGECOLOR 180 180 250 IMAGETYPE JPEG UNITS DD ...

This setting can be overridden when using the shp2img command with the -i option. It can't be overridden when using commands such as scalebar or legend, as mentioned earlier in "Creating Your First Map Image."

The IMAGETYPE specified must be one supported by the MapServer package you are running. To check what output formats your installation supports, run the mapserv file (or mapserv.exe on Windows) with the -v option. This option tells you what input and output formats are supported by the utilities in your MapServer package. The following example shows the output from the MapServer used in this chapter, with the output image formats highlighted:

> mapserv -v MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.