Class EsriFileXmlParser

java.lang.Object
nl.tudelft.simulation.dsol.animation.gis.esri.EsriFileXmlParser

public final class EsriFileXmlParser extends Object
This class parses an XML file that defines which elements of shape file(s) need to be drawn and what format to use.

Copyright (c) 2020-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.

The dsol-animation-gis project is based on the gisbeans project that has been part of DSOL since 2002, originally by Peter Jacobs and Paul Jacobs.

Author:
Alexander Verbraeck
  • Field Details

    • MAPFILE_SCHEMA

      public static final URL MAPFILE_SCHEMA
      the default mapfile.
  • Method Details

    • parseMapFile

      public static GisMapInterface parseMapFile(URL url) throws IOException
      parses a Mapfile URL to a mapFile.
      Parameters:
      url - URL; the mapfile url.
      Returns:
      MapInterface the parsed mapfile.
      Throws:
      IOException - on failure
    • parseMapFile

      public static GisMapInterface parseMapFile(URL url, CoordinateTransform coordinateTransform) throws IOException
      parses a Mapfile URL to a mapFile.
      Parameters:
      url - URL; the mapfile url.
      coordinateTransform - CoordinateTransform; the transformation of (x, y) coordinates to (x', y') coordinates.
      Returns:
      MapInterface the parsed mapfile.
      Throws:
      IOException - on failure