Export Polygons to HTML Image Map
- Author: P.Lamp, J.Wehberg, O.Conrad (c) 2016
- Menu: File | Shapes | Export
Description
Tool to create an HTML ImageMap with polygon dataset and image. The tool requires a polygon dataset and an georeferenced image file. It outputs an html file for possible further editing. The image name in the mapfile html is hard coded to be map.png.
How to build the link:
- Link Select link identfier from the attribute table of the polygon data layer.
- Prefix Adds a prefix to the link identifier. If just for icon with alternative text and, add '#').
- Suffix Adds a suffix of the link identifier. Likewise '.txt, .html, .doc, .png'.
The link will be built with the pattern 'Prefix + Identifier + Suffix'.
Take care!:- Image and Polygon dataset have to share the same projection.
- Special characters in link (like ö, ß, oder ») are not automatically replaced to html entities. Replace them after creation in editor if needed.
Example for GUI usage:- Load your polygon dataset and open it in a map.
- Create an image of this map using the map's menu command 'Save Map to Workspace' and save it to an image file using the file name 'map.png'.
- Run this tool and save the output to the same directory as the image.
- Open the html file in a browser for preview.
- Further editing of the html file is suggested.
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Polygons | shapes, input | POLYGONS | - | - |
Options | Link | table field | LINK | - | - |
Title | table field | TITLE | - | - |
Image | grid system | IMAGE | grid system of georeferenced image | - |
File | file path | FILE | - | - |
Link Prefix | text | LINK_PREFIX | - | Default: http://www.saga-gis.org/ |
Link Suffix | text | LINK_SUFFIX | - | Default: index.html |
Command Line
Usage: saga_cmd io_shapes 22 [-POLYGONS ] [-LINK ] [-TITLE ] [-IMAGE_D ] [-IMAGE_X ] [-IMAGE_Y ] [-IMAGE_NX ] [-IMAGE_NY ] [-IMAGE_FILE ] [-FILE ] [-LINK_PREFIX ] [-LINK_SUFFIX ]
-POLYGONS: Polygons
shapes, input
-LINK: Link
table field
-TITLE: Title
table field
-IMAGE_D: Cell Size
-IMAGE_X: Lower Left Center Cell X-Coordinate
-IMAGE_Y: Lower Left Center Cell Y-Coordinate
-IMAGE_NX: Number of Columns
-IMAGE_NY: Number of Rows
-IMAGE_FILE: Grid File
-FILE: File
file path
-LINK_PREFIX: Link Prefix
text
Default: http://www.saga-gis.org/
-LINK_SUFFIX: Link Suffix
text
Default: index.html