Skip to content

v1.0.0

Compare
Choose a tag to compare
@t83714 t83714 released this 19 Jun 06:42
· 23 commits to main since this release

Initial release

To use region files included in this release, you can use the following configuration:

Indexer Config

Config indexer to use released region files.

indexer:
  appConfig:
    regionSources:
      # Australia (Mainland) and all offshore territories as a whole
      COUNTRY:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/country.geojson"
        idField: "id"
        nameField: "name"
        order: 9
      # Regions for each of Australia offshore territories
      OFFSHORE_TERRITORIES:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/off-shore-territories.geojson"
        idField: "id"
        nameField: "name"
        lv1Id: "2"
        order: 11
      # ABS Statistical Area Level 4
      SA4:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/SA4.geojson"
        idField: "SA4_CODE11"
        nameField: "SA4_NAME11"
        lv1Id: "1"
        lv2IdField: "STE_CODE11"
        order: 30
      # ABS Statistical Area Level 3
      SA3:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/SA3.geojson"
        idField: "SA3_CODE11"
        nameField: "SA3_NAME11"
        lv1Id: "1"
        lv2IdField: "STE_CODE11"
        lv3IdField: "SA4_CODE11"
        order: 40
      # ABS Statistical Area Level 2
      SA2:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/SA2.geojson"
        idField: "SA2_MAIN11"
        nameField: "SA2_NAME11"
        lv1Id: "1"
        lv2IdField: "STE_CODE11"
        lv3IdField: "SA4_CODE11"
        lv4IdField: "SA3_CODE11"
        order: 50
      # ABS Statistical Area Level 1
      SA1:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/SA1.geojson"
        idField: "SA1_MAIN11"
        nameField: "SA1_MAIN11"
        lv1Id: "1"
        lv2IdField: "STE_CODE11"
        lv3IdField: "SA4_CODE11"
        lv4IdField: "SA3_CODE11"
        lv5IdField: "SA2_MAIN11"
        order: 60
      # Australia Local Government Areas
      LGA:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/LGA.geojson"
        idField: "LGA_CODE15"
        nameField: "LGA_NAME15"
        lv1Id: "1"
        steIdField: "STE_CODE11"
        order: 20
      # Australia Postal Areas
      POA:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/POA.geojson"
        idField: "POA_CODE"
        nameField: "POA_NAME"
        lv1Id: "1"
        order: 70
      # Australia Commonwealth electoral boundaries
      COM_ELB_ID_2016:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/COM_ELB_ID_2016.geojson"
        idField: "DIV_ID"
        nameField: "SORTNAME"
        lv1Id: "1"
        order: 80
      # Australia State and Territory
      STE:
        url: "https://github.com/magda-io/magda-regions/releases/download/v1.0.0/STE.simplified.geojson"
        idField: "STE_CODE11"
        nameField: "STE_NAME11"
        shortNameField: "STE_ABBREV"
        lv1Id: "1"
        order: 10

Search API Config

Config search API with required region mapping:

search-api:
  appConfig:
    regionMapping:
      regionWmsMap:
        STE:
          layerName: FID_STE_2011_AUST
          server: https://tiles.magda.io/FID_STE_2011_AUST/{z}/{x}/{y}.pbf
          regionProp: STE_CODE11
          aliases:
          - ste_code
          - ste_code_2011
          - ste
          digits: 1
          description: States and Territories (STE)
          regionIdsFile: data/regionids/region_map-FID_STE_2011_AUST_STE_CODE11.json
          serverType: MVT
          serverSubdomains: []
          serverMinZoom: 0
          serverMaxNativeZoom: 12
          serverMaxZoom: 28
          bbox:
          - 96.81694140799998
          - -43.74050960300003
          - 159.10921900799997
          - -9.142175976999999
          nameProp: STE_NAME11
        SA4:
          layerName: FID_SA4_2011_AUST
          server: https://tiles.magda.io/FID_SA4_2011_AUST/{z}/{x}/{y}.pbf
          regionProp: SA4_CODE11
          aliases:
          - sa4_code_2011
          - sa4_code
          - sa4
          digits: 3
          description: Statistical Area Level 4 (SA4)
          regionIdsFile: data/regionids/region_map-FID_SA4_2011_AUST_SA4_CODE11.json
          serverType: MVT
          serverSubdomains: []
          serverMinZoom: 0
          serverMaxNativeZoom: 12
          serverMaxZoom: 28
          bbox:
          - 96.81694140799998
          - -43.74050960300003
          - 159.10921900799997
          - -9.142175976999999
          nameProp: SA4_NAME11
        SA3:
          layerName: FID_SA3_2011_AUST
          server: https://tiles.magda.io/FID_SA3_2011_AUST/{z}/{x}/{y}.pbf
          regionProp: SA3_CODE11
          aliases:
          - sa3_code_2011
          - sa3_code
          - sa3
          digits: 5
          description: Statistical Area Level 3 (SA3)
          regionIdsFile: data/regionids/region_map-FID_SA3_2011_AUST_SA3_CODE11.json
          serverType: MVT
          serverSubdomains: []
          serverMinZoom: 0
          serverMaxNativeZoom: 12
          serverMaxZoom: 28
          bbox:
          - 96.81694140799998
          - -43.74050960300003
          - 159.10921900799997
          - -9.142175976999999
          nameProp: SA3_NAME11
        SA2:
          layerName: FID_SA2_2011_AUST
          server: https://tiles.magda.io/FID_SA2_2011_AUST/{z}/{x}/{y}.pbf
          regionProp: SA2_MAIN11
          aliases:
          - sa2_code_2011
          - sa2_code
          - sa2
          digits: 9
          description: Statistical Area Level 2 (SA2)
          regionIdsFile: data/regionids/region_map-FID_SA2_2011_AUST_SA2_MAIN11.json
          serverType: MVT
          serverSubdomains: []
          serverMinZoom: 0
          serverMaxNativeZoom: 12
          serverMaxZoom: 28
          bbox:
          - 96.81694140799998
          - -43.74050960300003
          - 159.10921900799997
          - -9.142175976999999
          nameProp: SA2_NAME11
        SA1:
          layerName: FID_SA1_2011_AUST
          server: https://tiles.magda.io/FID_SA1_2011_AUST/{z}/{x}/{y}.pbf
          regionProp: SA1_MAIN11
          aliases:
          - sa1_code_2011
          - sa1_maincode_2011
          - sa1_code
          - sa1
          digits: 11
          description: Statistical Area Level 1 (SA1)
          regionIdsFile: data/regionids/region_map-FID_SA1_2011_AUST_SA1_MAIN11.json
          serverType: MVT
          serverSubdomains: []
          serverMinZoom: 0
          serverMaxNativeZoom: 12
          serverMaxZoom: 28
          bbox:
          - 96.81694140799998
          - -43.74050960300003
          - 159.10921900799997
          - -9.142175976999999
          nameProp: SA2_NAME11
        LGA:
          layerName: FID_LGA_2015_AUST
          server: https://tiles.magda.io/FID_LGA_2015_AUST/{z}/{x}/{y}.pbf
          regionProp: LGA_CODE15
          aliases:
          - lga_code_2015
          - lga_code
          - lga
          - lga_code_2014
          - lga_code_2012
          - lga_code_2010
          digits: 5
          description: Local Government Area (LGA)
          regionIdsFile: data/regionids/region_map-FID_LGA_2015_AUST_LGA_CODE15.json
          serverType: MVT
          serverSubdomains: []
          serverMinZoom: 0
          serverMaxNativeZoom: 12
          serverMaxZoom: 28
          bbox:
          - 96.81694140799998
          - -43.740509602999985
          - 159.10921900799997
          - -9.142175976999999
          nameProp: LGA_NAME15
        POA:
          layerName: FID_POA_2011_AUST
          server: https://tiles.magda.io/FID_POA_2011_AUST/{z}/{x}/{y}.pbf
          regionProp: POA_CODE
          aliases:
          - poa_2011
          - postcode_2011
          - poa
          - poa_code
          - poa_code_2011
          - postcode
          - postcode_2015
          digits: 4
          dataReplacements:
          - - "^(?=\\d\\d\\d$)"
            - '0'
          description: Postal Area (POA)
          regionIdsFile: data/regionids/region_map-FID_POA_2011_AUST_POA_CODE.json
          serverType: MVT
          serverSubdomains: []
          serverMinZoom: 0
          serverMaxNativeZoom: 12
          serverMaxZoom: 28
          bbox:
          - 96.81694140799998
          - -43.59821500299999
          - 159.10921900799997
          - -9.142175976999999
          nameProp: POA_NAME
        COM_ELB_ID_2016:
          layerName: FID_COM20160509_ELB
          server: https://tiles.magda.io/FID_COM20160509_ELB/{z}/{x}/{y}.pbf
          regionProp: DIV_ID
          aliases:
          - divisionid
          - com_elb_id_2016
          - com_elb_id
          - com_elb
          digits: 3
          description: Commonwealth Electoral District
          regionIdsFile: data/regionids/region_map-FID_COM20160509_ELB_DIV_ID.json
          serverType: MVT
          serverSubdomains: []
          serverMinZoom: 0
          serverMaxNativeZoom: 12
          serverMaxZoom: 28
          bbox:
          - 96.81676599999997
          - -43.740509999999986
          - 159.1092189999999
          - -9.142175999999996
          nameProp: SORTNAME