< Project Presentation

Architecture >

2. Cartographic Functionalities

2.1. Introduction

CartoWeb is quite a complex piece of software. This chapter is only a quick and consequently incomplete overview of the standard functionalities that are somehow visible for an end-user. The internal architecture and all the hidden features that make CartoWeb customizable and extensible are presented in the next chapter.

2.2. Overview

The first figure is an overall view of the user interface of the demo that is shipped with CartoWeb. The numbers refer to more or less visible underlying features. They are :

  1. Main map
  2. Dynamic keymap
  3. Navigation tools : zoom-in, zoo-out, panning
  4. Layers tree
  5. Geographic query tool
  6. Redlining tools : to draw points, lines, rectangles, polygons
  7. Measuring tools : distances and surfaces
  8. Language switch : internationalization support
  9. Login link : users and roles support
  10. Print dialog : PDF production

Overall

2.3. Navigation Interface

There are many possibilities to navigate on the main map, that is to change the scale and the position.

  • The arrows surrounding the main map
  • The dynamic (i.e. clickable) keymap
  • The navigation tools (zoom and pan)
  • The drop-down menu "Scale"
  • The various options in the "Search" tab

The menu "Mapsize" is self-explanatory.

2.4. Arbitrarily Complex Hierarchy of Layers

Contrary to Mapserver itself, CartoWeb supports an arbitrarily complex hierarchy of layers, with infinite depth.

The elements of the layers "tree" have different rendering options :

  • normal checkboxes
  • blocks
  • radio button (exclusive options)
  • drop-down menu (exclusive options)

Examples of these rendering options are presented in the following figure.

Layers tree

The icons for the classes are automatically drawn, and the out-of-scale layers are grayed out.

2.5. Map Queries

Using the query tool, you can geographically search for objects. Found objects are hilighted and their attributes are displayed.

CartoWeb adds many functionalities to the raw queries supported by Mapserver. In particular, the queries may be persistent (i.e. you can add new objects to already selected objects), and the hilighting can be defined on a layer by layer basis.

Query example

2.6. Annotation and Redlining

It is possible to freely draw points, lines, rectangles and polygons on the map, ant to attach labels to them. These features are persistent: they survive panning or zooming.

A mask mode, in which everything but the outlined polygon is masked, is provided too.

Redlining example

2.7. Measuring Tools

Distances and surfaces can be measured on the main map with the following tools :

Measuring tools

2.8. Internationalization

Translation handling in CartoWeb now uses gettext. However internationalization architecture is ready for other translation systems.

Internationalization

Ta make life easier for translators, scripts that gather the strings to be translated in the templates and in the configuration files are available.

2.9. Access Rights

Access to different elements of CartoWeb can be allowed or denied according to who is currently using the application. Both functionalities and data may have access restrictions. For instance, PDF printing may be totally unavailable for anonymous access, limited (low resolution) for normal user and totally granted (high resolution) for superusers. Similarly, high-resolution aerial views may only be visible within an organization, while external users should be content with satellite photographs.

A basic (file-based) authentication mechanism is included, but any other mechanism that is able to authenticate an user and to link him to a role could be used as well.

2.10. PDF Output and Other Export Formats

CartoWeb is able to output a fully configurable PDF document. Some options can be chosen by the end user in the following dialog, while the CartoWeb admin defines which elements (maps, legends, tables, additional logos or watermarks...) are to be printed and sets their positions within the page.

Print dialog

Other output formats include the graphic formats (jpeg, png,...) of the map itself, simplified html templates and comma-separated values tables of the query results.

valid xhtml 1.0 valid css