Class MapResources

java.lang.Object
edu.cnu.mdi.mapping.MapResources

public final class MapResources extends Object
Centralizes classpath resource paths used by the mapping package.

All paths are absolute classpath references beginning with / so they work correctly when passed to Class.getResourceAsStream(String). The leading slash is required; without it the resource lookup is relative to the class's own package and will silently fail to locate top-level resources.

GeoJSON data files are sourced from Natural Earth 10m cultural vectors.

This class is not instantiable.

  • Field Details

    • COUNTRIES_GEOJSON

      public static final String COUNTRIES_GEOJSON
      Absolute classpath path to the country-boundary GeoJSON file.

      Expected format: a FeatureCollection whose features carry Polygon or MultiPolygon geometries and at minimum the properties ADMIN (country name) and ISO_A3 (alpha-3 code). Parsed by GeoJsonCountryLoader.

      See Also:
    • CITIES_GEOJSON

      public static final String CITIES_GEOJSON
      Absolute classpath path to the populated-places (city) GeoJSON file.

      Expected format: a FeatureCollection of Point features with properties including NAME, ADM0NAME, POP_MAX, and SCALERANK. Parsed by GeoJsonCityLoader.

      See Also: