AERMOD One User's Manual

12.3 Load point sources, receptors and polygon areas from KML

Command: Import > Load from KML...
Window: Load from KML (modal, borderless). The footer holds three icons: About (explains the module), Close and Import. The Download Sample File link opens the sample-file page on the product website.

The window has two groups: KML File (the Select KML File: browse icon, the File Summary and the classification indicators) and Excel File (the Select Excel File: browse icon, List of Sheets: and the worksheet indicators). Below them are the If Source/Receptor Exists? choice (Ignore or Overwrite) and the delete-all check box. A status line beside the footer icons reports the activity.

flowchart TD
    A["Import > Load from KML..."] --> B["Browse for the KML file"]
    B --> C["File Summary and KML indicators are filled in"]
    C --> D{"Attributes in an Excel workbook?"}
    D -- Yes --> E["Browse for the Excel file (optional)"]
    D -- No --> F["Choose Ignore or Overwrite"]
    E --> F
    F --> G{"Delete-all box ticked?"}
    G -- Yes --> H["Confirmation: delete all records?"]
    H -- No --> F
    H -- Yes --> I["Click Import"]
    G -- No --> I
    I --> J["Points, then polygons are stored; activity line shows each name"]
    J --> K["Notice for lines and receptor sheet, then Done."]
    K --> L["Close: map zooms to the KML data and the tree is refreshed"]

Procedure

  1. Open the target project and select Import > Load from KML.... Use the KML File browse icon to select a .kml file. The browse dialog is titled Select a KML file (filter KML files (\*.kml) and All files). Cancelling displays No file selected. The file is read as soon as it is selected; an unreadable file shows an Error message that gives the technical reason.
  2. Review the File Summary, which counts Point, Line and Polygon geometries, and the KML classification indicators for Point, Receptor, Line Area and Polygon Area. An indicator turns green with a count only when at least one Placemark with the matching name prefix exists (see the table below).
  3. If source attributes are available in an Excel workbook, use the Excel File browse icon (dialog title Select an Excel file). The form lists the detected worksheets and, for sheets whose names contain Point, Receptor, Polygon or Line, shows a green tick if the sheet contains cells and a red cross if it is empty. The KML file alone is sufficient; the workbook is optional. Without a workbook, imported point sources and polygon areas receive zero values for the physical and emission parameters, which you must complete before modelling.
  4. Choose Ignore (default) to leave an existing record with the same friendly name unchanged, or Overwrite to update the matching record. Overwrite preserves the existing internal source ID.
  5. Leave Delete all existing records and add new ones from the KML file. unchecked unless the entire project inventory is deliberately being replaced. If checked, the Confirmation question Are you sure you want to delete all records? appears when you click Import. Yes deletes every record in the project's source list, including sources, receptors, buildings and boundaries, and reports All records deleted. before the import starts; No stops the import and nothing is changed. The deletion cannot be undone.
  6. Click the Import icon. The status line shows Importing Points and then Importing followed by each feature name, and finishes with Done. Review any Missing Info messages and the Please note notice that lists unsupported content. Import does not close the window; the Done. status appears only after an import has run.
  7. Close the window. When at least one record was stored, the map zooms towards the KML data and the source/receptor overlays and tree are refreshed. Verify the resulting inventory.

The KML chooser begins in the current default user folder and remembers the folder after a selection. The Excel chooser's filter is Excel Workbook (\*.xlsx) only. The dedicated Excel exchange in Section 12.8 also accepts .xlsx only.

Recognised features and Excel attributes

A Placemark is recognised only by the prefix of its name (upper or lower case). The prefix is removed to form the friendly name of the new record.

KML Placemark nameStored project objectAttribute treatment
P_ prefix on a PointPoint source; new identifier STK###Optional worksheet Point. The row is found by matching the Placemark name without the prefix against the sheet's Name column. Recognised columns: emission, diameter, velocity, temp, height.
R_ prefix on a PointDiscrete receptor; new identifier DISR###KML location only; the Excel Receptor sheet is not read. Imported receptors use the General category and elevation zero.
A_ prefix on a PolygonPolygon area source; new identifier POLY###Optional worksheet Polygon, matched on Name in the same way. Recognised columns: Emission, ReleaseHeight, ZInitial.
L_ prefix on a LineStringNot storedThe line is counted in the summary and shown as Line Area, but it is not added as an emission source.
Other prefixes or geometry combinationsNot storedConfirm the names and required geometry type before importing.

For example, a Placemark named P_Boiler1 is matched to the row whose Name is Boiler1 on the Point sheet.

Rules for the Excel attributes:

  • Attribute lookup uses worksheets named exactly Point or Polygon (case-insensitive). The status indicators are looser: they react to any sheet whose name contains the word. The List of Sheets selection does not control which sheet is read. Column headings and the Name match are case-insensitive. A worksheet must have a Name column in its first row.
  • When a workbook is supplied, a point or polygon whose sheet or matching row is missing is not stored; the message There is no data for {name} in the excel file. (title Missing Info) is shown instead.
  • Pollutant emission for imported points and polygons is stored against the pollutant currently selected in the project.
  • If an unexpected error stops the import (for example a worksheet without a Name column), the application shows Import Error with the exception text; the status line does not reach Done.
  • Avoid apostrophes and quotation marks in Placemark names. Duplicate Placemark names in the KML file are distinguished by _2, _3 and subsequent suffixes.

KML coordinates are longitude,latitude[,altitude]. The project stores the resulting latitude and longitude; imported KML altitude is not used as source or receptor elevation (elevation is zero). The point-source temperature is processed with the application's temperature rule: a value above 273.15 is taken as kelvin, and any other value is taken as degrees Celsius and converted to kelvin (so a blank or zero value is stored as 273.15 K). Polygon area is calculated from the vertices in UTM coordinates (square metres), and the closing vertex is dropped when the ring is closed. A polygon's imported emission value is stored as supplied, not automatically divided by its area. The polygon form expects a rate per square metre, so check the unit and convert if necessary (Chapter 5, Section 5.2.2 and Section 5.3.6).

Limits and confirmation

  • Only prefixed KML points and polygons are stored; LineStrings are not. The application reports Lines in the KML file were not imported.
  • Detection of an Excel Receptor sheet is not equivalent to importing it. The application reports The receptor sheet was not imported. Both notes are combined in a single Please note message.
  • Ignore leaves a record with the same friendly name unchanged (nothing is stored for that Placemark); Overwrite updates it without assigning a new ID and sets its type to that of the Placemark. A matching name is matched across all source types, so give KML features names that do not clash with other records. A delete-all action is broader than either choice.
  • If no KML file is selected (or the path does not exist), Import stops with the message Please select a KML file. (title File selection required). An optional Excel file does not substitute for the KML geometry.
  • Import updates the project records. It does not write an AERMOD .inp or start AERMOD.

This is part of the AERMOD One user's manual. Licences are on Editions and pricing. For a modelling project, contact Envitrans.