Please enable JavaScript to view this site.

Version:

Navigation: Configuration > Web Services Configuration > Templates

Configure Document Templates

Prev Top Next More

Network Locator offers the possibility to customize the look and feel of a couple of aspects using templates. This includes the dynamic PDF documents that are created by the system during a locate request processing.

There are three different types of documents available:

•Static

•Dynamic

•Negative Reply

Static Documents

You can upload a set of static documents that should be delivered as part of a locator request zip file. You can upload any kind of static document through the Admin interface. Once uploaded a static document gets referenced in the property vertigis.network-locator.default.process-manager.static-files (see Process Manager) and is then packaged with each locate request.

Dynamic Documents

Apart from adding static documents Network Locator also offers the option to create dynamic PDF documents. Typically these would be used to create a letter document that sums up the locate request.

A dynamic document is created through an Apache FOP Transformation. After the initial deployment there is a sample fop template available that can be used as a starting point to create your personalized transformation. Once uploaded the documents get referenced in the vertigis.network-locator.default.process-manager.dynamic-document-templates (see Process Manager).

Since version Networks Locator 1.6, it is possible to reference the results of layer intersections directly within the FOP document. A sample fop configuration demonstrating how to iterate over intersected layers is shown here:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
  <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm">
    <fo:region-body/>
  </fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
  <fo:flow flow-name="xsl-region-body">
    <fo:block font-size="14pt" font-weight="bold" text-align="start" space-after="1cm">
       Netzbetreiber – Kontaktdaten im Rahmen der Planauskunft
    </fo:block>
    <fo:block font-size="11pt" space-before="11pt" text-align="justify">
       {#if group_results??}
         {#for group_result in group_results}
           {#if group_result.has_intersection is true}
               {#for affected_intersection_layer in group_result.affected_intersection_layers}
                 {#if affected_intersection_layer.layer == 'gas.versorger'}
                   {#for feature in affected_intersection_layer.features}
                    <fo:block font-size="11pt" margin-left="15mm"> -------------- </fo:block>
                    <fo:block font-size="11pt" margin-left="15mm">Name: {feature.name}</fo:block>
                    <fo:block font-size="11pt" margin-left="15mm">Straße: {feature.street}</fo:block>
                    <fo:block font-size="11pt" margin-left="15mm">Stadt: {feature.city}</fo:block>
                    <fo:block font-size="11pt" margin-left="15mm">Beschreibung: {feature.description}</fo:block>
                    <fo:block font-size="11pt" margin-left="15mm"> -------------- </fo:block>
                   {/for}
                 {/if}
               {/for}            
           {/if}
         {/for}
       {/if}
      </fo:block>
  </fo:flow>
</fo:page-sequence>
</fo:root>

Starting with Networks Locator 1.7 it is now possible to reference a bitmap image in the document. This is a sample on how to do it:

<fo:block-container top="0mm" left="0mm" absolute-position="absolute" z-index="1" border="0.1mm solid white">
 <fo:block>
   <fo:external-graphic content-width="50mm" content-height="11mm" border="1mm solid white" src="https://resources.weboffice.vertigis.com/Documentation/WebOffice/WPT/DE/background-logo.png" />
 </fo:block>
</fo:block-container>

 

The result will look like this:

bitmap-image-dynamic-document

 

For reference this is the layer configuration that is used to query the data:Document-Templates-Reference

Preview a Dynamic Document Template

You can check a dynamic document template in the Admin app before you replace the stored template. Nothing is saved, no request is started, and no email is sent while you preview.

1.Open the Admin app and go to the dynamic document templates.

2.Click the pencil icon of the template. The editor opens with the template (your draft), the sample data and the PDF preview.

3.Edit the template and select the sample data that should be used to fill the template.

4.Run the validation. If the template is valid, the PDF preview shows a sample document.

5.Save the template. Saving is only possible after the current, unchanged draft has been validated successfully.

If the template contains an error, the editor shows where the problem is: the step in which it occurred (template, XML or PDF creation), the line and column, and an excerpt.

If you close the editor with unsaved changes, you are asked to confirm.

Sample data

The sample data is a JSON object with the values that are available to the template, for example the request, the intersected layers and the requesting user. Two sample data sets are delivered. They cannot be changed:

•A standard request.

•A request from an external user.

You can also save your own sample data sets. They are shared by all administrators and all templates of the same type (documents or emails). Each name can only be used once per type. When you click on a variable in the template, the matching value in the sample data is highlighted, and the other way round.

The preview only uses sample data. A template that works in the preview can still fail if your real data is missing a value that you use in the template. Test with sample data that matches your own configuration.

Negative Reply Document

The negative reply document is a specialized version of a dynamic document. It is created in cases where for an entire intersection group there is not a single affected feature. In this case there will be no PDF map created but instead the negative reply document is created. In this way you can make sure that a user will never get a map that does not contain any network data.

The negative reply document is referenced in the parameter vertigis.network-locator.default.process-manager.negative-reply-templates (see Process Manager).

Document-Templates

© 2026 VertiGIS North America Ltd. All Rights Reserved. | Privacy Center | Imprint
Documentation Version 1.13 (b954029f)