Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using XML for Legends and Map Surround DIGITAL MAPPING TECHNIQUES 2005 By Vic Dohar Natural Resources Canada.

Similar presentations


Presentation on theme: "Using XML for Legends and Map Surround DIGITAL MAPPING TECHNIQUES 2005 By Vic Dohar Natural Resources Canada."— Presentation transcript:

1 Using XML for Legends and Map Surround DIGITAL MAPPING TECHNIQUES 2005 By Vic Dohar Natural Resources Canada

2 What is XML?  Stands for Extensible Mark-up Language  Standard mark-up language similar to HTML  HTML designed to display data  XML designed to describe data/information  Text based. Simple to read/understand  XML does not do anything. It is a document with a defined structure to store/share data with applications

3 What Constitutes an XML File?  An XML file contains tags, optional tag attributes, and a value or data between tags  You must define your own tags, they are not predefined  The syntax is simple yet strict. Some rules are:  All XML documents must contain a declaration and one unique root element  All elements must have matching start and end tag  Tags are case sensitive  All elements must be properly nested  Tag attribute values must always be quoted

4 Well Formed XML  An XML file is said to be “well formed” when none of the syntax rules are broken Using XML for Legends and Map Surround Vic Dohar Natural Resources Canada

5 How do You Create XML Files?  Edit XML files with XML editors. Some are simple, some are loaded with rich functionality  Peter’s XML Editor (simple and free)  XMLSpy by Altova (rich, $$$ license)   Most cases you write scripts that create XML files by referencing the XML Document Object Model (DOM)

6 XML Schemas  Schemas define the structure/elements, legal building blocks of an XML document  Defines elements, attributes  Child elements  Number and order of elements  Data types for elements  Schemas are saved as XSD documents  XML files are validated against XSD  Write XSD in XML or use application

7 Sample XSD

8 XML Sources  W3 Schools  Microsoft Development Network (MSDN)

9 Publication Process and Integration  Electronic publication processing system database to manage and track publications (reports, bulletins, maps) through the various production stages  Paperless trail utilizing on-line forms  Steps and checks along the way including editorial reviews, quality control, plotting  Extract information (metadata) from Oracle database to XML for map surround info

10 Sample XML File From Database Smith L english no A-series map 2059 Sandilands surficial geology Manitoba

11 Surround Information  VBA application in ArcMap reads XML file and plots title block and recommended citation accordingly  Reduces errors and omissions  Provides consistent rendering of data adhering based on design specifications  Design specifications stored in an additional XML file

12 Sample Title Block

13 Design Specs XML File HaCenter VaBaseline Arial Regular

14 Geological Legends

15 Geological Legends Using XML  Proposed procedure with ArcMap  Content of legend in Word, paragraphs formatted according to predefined styles  Export Word to XML, validating to Legend Content XSD  In ArcMap, execute VBA script to read XML file and draw legend, utilizing two additional XML files:  XML file for design specifications  XML file for legend layout and placement

16 Demo  Edit legend document in Word  Convert Word document to XML  Draw legend in ArcMap

17 Future  Complete it!  Extend legend to include symbols used on map  It will be made available to download for free on our website click on Toolbox, click on ArcGIS Migration

18

19 Demo: Notes  Format paragraphs  Content is important  Formatting appearance is only a visual aid in Word  Word document can be pre-processed by editorial staff for accuracy

20 Demo: Legend in Word

21 Demo: Convert XML

22 Demo: View XML File

23 Demo: ArcMap

24 Demo: Not Just For Legends


Download ppt "Using XML for Legends and Map Surround DIGITAL MAPPING TECHNIQUES 2005 By Vic Dohar Natural Resources Canada."

Similar presentations


Ads by Google