Tool Export Polygons to HTML Image Map
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.
- Author: P.Lamp, J.Wehberg, O.Conrad (c) 2016
- Menu: File|Shapes|Export
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 |
(*) optional |
Command-line
Usage: saga_cmd io_shapes 22 [-POLYGONS <str>] [-LINK <str>] [-TITLE <str>] [-IMAGE_D <double>] [-IMAGE_X <double>] [-IMAGE_Y <double>] [-IMAGE_NX <num>] [-IMAGE_NY <num>] [-IMAGE_FILE <str>] [-FILE <str>] [-LINK_PREFIX <str>] [-LINK_SUFFIX <str>]
-POLYGONS:<str> Polygons
Shapes, input
-LINK:<str> Link
Table field
-TITLE:<str> Title
Table field
-IMAGE_D:<double> Cell Size
-IMAGE_X:<double> Lower Left Center Cell X-Coordinate
-IMAGE_Y:<double> Lower Left Center Cell Y-Coordinate
-IMAGE_NX:<num> Number of Columns
-IMAGE_NY:<num> Number of Rows
-IMAGE_FILE:<str> Grid File
-FILE:<str> File
File path
-LINK_PREFIX:<str> Link Prefix
Text
Default: http://www.saga-gis.org/
-LINK_SUFFIX:<str> Link Suffix
Text
Default: index.html