openapi: 3.1.0
info:
  title: Census and Statistics Department — 2021 Population Census (Statistics and Boundaries of Small Tertiary Planning Unit Groups)
  version: csdi-native-readonly-v1
  description: Deterministic derivative of retained native CSDI metadata. Read-only GET operations are selected only where native capabilities and protocol documentation support them. Publisher originals remain separate. Successful metadata retrieval does not prove current data-query success, complete response fields or all layer combinations.
paths:
  /server/rest/services/common/censtatd_rcd_1635933193720_58660/FeatureServer/{layerId}/query:
    get:
      operationId: ArcgisFeatureServerQueryFeatures
      tags:
        - ArcGIS REST
      summary: Query published features
      description: Read-only GET query follows the source-advertised Query capability. One parameterized operation covers all queryable layers. Metadata field types are declared without inventing universally required attributes. Omitted f may produce the native REST default representation, which is not asserted as a JSON payload.
      parameters:
        - name: layerId
          in: path
          required: true
          description: Published queryable layer or table. Values are publisher identifiers; examples are choices, not a closed enumeration. The full ID/title directory is in x-csdi-layer-choices.
          schema:
            type: integer
          examples:
            choice1:
              summary: STPUG_21C
              value: 0
          x-choice-count: 1
        - name: f
          in: query
          required: false
          description: Advertised query representation. Supply this selector for the represented JSON/GeoJSON/PBF responses.
          schema:
            type: string
            enum:
              - json
              - geojson
              - pbf
          example: json
        - name: where
          in: query
          required: false
          description: SQL WHERE expression over the published fields; source protocol supports this read-only query filter.
          schema:
            type: string
          example: 1=1
        - name: outFields
          in: query
          required: false
          description: Comma-separated source field names, or *. Field schemas are conditional on the selected layer and returned fields.
          schema:
            type: string
          example: "*"
        - name: returnGeometry
          in: query
          required: false
          description: Whether native feature geometry should be included.
          schema:
            type: boolean
          example: false
        - name: resultRecordCount
          in: query
          required: false
          description: Bound returned records where the selected layer advertises pagination; no global range is inferred.
          schema:
            type: integer
          example: 1
          x-supported-layer-ids:
            - 0
      responses:
        "200":
          description: Native publisher response; protocol or business errors may also be returned. Metadata connection and actual data-query success are separate.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ArcgisFeatureServerArcgisJsonEnvelope"
            application/geo+json:
              schema:
                $ref: "#/components/schemas/ArcgisFeatureServerArcgisGeoJson"
            application/x-protobuf:
              schema:
                type: string
                format: binary
      externalDocs:
        url: https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/
      servers:
        - url: https://portal.csdi.gov.hk
      x-native-source-evidence:
        - url: https://portal.csdi.gov.hk/server/rest/services/common/censtatd_rcd_1635933193720_58660/FeatureServer?f=pjson
          sha256: fac18197be0a5c43ea56870375fd5421dd943df526c9d7e414979a4cbe58351c
          httpStatus: 200
          contentType: text/plain;charset=UTF-8
          role: arcgis-service
          parseStatus: pass
          kind: arcgis-service
        - url: https://portal.csdi.gov.hk/server/rest/services/common/censtatd_rcd_1635933193720_58660/FeatureServer/0?f=pjson
          sha256: e4ce034681810b8920c30fad96ded4555d73a7b1cfa5e237af4f8f0ae562fc15
          httpStatus: 200
          contentType: text/plain;charset=UTF-8
          role: arcgis-layer
          parseStatus: pass
          kind: arcgis-layer
  /server/services/common/censtatd_rcd_1635933193720_58660/MapServer/WMSServer:
    get:
      operationId: WmsMapServerGetMap
      tags:
        - WMS
      summary: Render a map image
      description: Map rendering returns its advertised native image/document representation. It does not return a feature JSON collection. Layer CRS, style and bounding-box choices are retained; no data observation is implied by metadata availability.
      parameters:
        - name: service
          in: query
          required: true
          description: OGC service identifier.
          schema:
            type: string
            enum:
              - WMS
          example: WMS
        - name: version
          in: query
          required: true
          description: Exact advertised WMS version.
          schema:
            type: string
            enum:
              - 1.3.0
          example: 1.3.0
        - name: request
          in: query
          required: true
          description: Read-only GetMap operation.
          schema:
            type: string
            enum:
              - GetMap
          example: GetMap
        - name: layers
          in: query
          required: true
          description: Comma-separated published map layer names. Values are publisher identifiers; examples are choices, not a closed enumeration. The full ID/title directory is in x-csdi-layer-choices.
          schema:
            type: string
          examples:
            choice1:
              summary: STPUG_21C
              value: STPUG_21C
          x-choice-count: 1
        - name: styles
          in: query
          required: true
          description: Comma-separated style names; an empty string selects the standard default style.
          schema:
            type: string
          example: ""
          allowEmptyValue: true
        - name: format
          in: query
          required: true
          description: Advertised GetMap representation.
          schema:
            type: string
            enum:
              - image/bmp
              - image/jpeg
              - image/tiff
              - image/png
              - image/png8
              - image/png24
              - image/png32
              - image/gif
              - image/svg+xml
          example: image/png
        - name: width
          in: query
          required: true
          description: Requested image width in pixels; no invented maximum.
          schema:
            type: integer
          example: 256
        - name: height
          in: query
          required: true
          description: Requested image height in pixels; no invented maximum.
          schema:
            type: integer
          example: 256
        - name: crs
          in: query
          required: true
          description: Advertised coordinate reference system; support depends on selected layer. Observe the WMS version and CRS axis order.
          schema:
            type: string
          example: CRS:84
        - name: bbox
          in: query
          required: true
          description: minx,miny,maxx,maxy in the chosen CRS and its specified axis order. Example, when present, is an actual advertised bounding box.
          schema:
            type: string
          example: 113.831736,22.154760,114.439545,22.563476
      responses:
        "200":
          description: Native publisher response; protocol or business errors may also be returned. Metadata connection and actual data-query success are separate.
          content:
            image/bmp:
              schema:
                type: string
                format: binary
            image/jpeg:
              schema:
                type: string
                format: binary
            image/tiff:
              schema:
                type: string
                format: binary
            image/png:
              schema:
                type: string
                format: binary
            image/png8:
              schema:
                type: string
                format: binary
            image/png24:
              schema:
                type: string
                format: binary
            image/png32:
              schema:
                type: string
                format: binary
            image/gif:
              schema:
                type: string
                format: binary
            image/svg+xml:
              schema:
                type: string
                format: binary
      externalDocs:
        url: https://portal.csdi.gov.hk/csdi-webpage/doc/GeoSpatialServices
      x-advertised-crss:
        - CRS:84
        - EPSG:4326
        - EPSG:2326
        - EPSG:102140
      servers:
        - url: https://portal.csdi.gov.hk
      x-native-source-evidence:
        - url: https://portal.csdi.gov.hk/server/services/common/censtatd_rcd_1635933193720_58660/MapServer/WMSServer?service=wms&request=GetCapabilities
          sha256: b0e78e0731f232085096b350acf0ab90143ed8bb6c6f41d0354181b493ed1289
          httpStatus: 200
          contentType: text/xml
          role: wms-capabilities
          parseStatus: pass
          kind: wms-capabilities
components:
  schemas:
    ArcgisFeatureServerArcgisLayer0Attributes:
      type: object
      properties:
        adhz:
          description: "Publisher field type: esriFieldTypeDouble"
          title: adhz
          type:
            - number
            - "null"
        age_1:
          description: "Publisher field type: esriFieldTypeDouble"
          title: age_1
          type:
            - number
            - "null"
        age_2:
          description: "Publisher field type: esriFieldTypeDouble"
          title: age_2
          type:
            - number
            - "null"
        age_3:
          description: "Publisher field type: esriFieldTypeDouble"
          title: age_3
          type:
            - number
            - "null"
        age_4:
          description: "Publisher field type: esriFieldTypeDouble"
          title: age_4
          type:
            - number
            - "null"
        age_5:
          description: "Publisher field type: esriFieldTypeDouble"
          title: age_5
          type:
            - number
            - "null"
        born_chi:
          description: "Publisher field type: esriFieldTypeDouble"
          title: born_chi
          type:
            - number
            - "null"
        born_else:
          description: "Publisher field type: esriFieldTypeDouble"
          title: born_else
          type:
            - number
            - "null"
        born_hk:
          description: "Publisher field type: esriFieldTypeDouble"
          title: born_hk
          type:
            - number
            - "null"
        dh:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dh
          type:
            - number
            - "null"
        dh_co:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_co
          type:
            - string
            - "null"
          maxLength: 3
        dh_emp:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_emp
          type:
            - string
            - "null"
          maxLength: 4
        dh_non:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_non
          type:
            - string
            - "null"
          maxLength: 4
        dh_ocm:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_ocm
          type:
            - string
            - "null"
          maxLength: 5
        dh_ocwm:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_ocwm
          type:
            - string
            - "null"
          maxLength: 5
        dh_pri:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_pri
          type:
            - string
            - "null"
          maxLength: 5
        dh_pub:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_pub
          type:
            - string
            - "null"
          maxLength: 5
        dh_r0:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_r0
          type:
            - string
            - "null"
          maxLength: 3
        dh_r1:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_r1
          type:
            - string
            - "null"
          maxLength: 5
        dh_r2:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_r2
          type:
            - string
            - "null"
          maxLength: 5
        dh_r3:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dh_r3
          type:
            - number
            - "null"
        dh_r4:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dh_r4
          type:
            - number
            - "null"
        dh_r5:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dh_r5
          type:
            - number
            - "null"
        dh_r6:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_r6
          type:
            - string
            - "null"
          maxLength: 4
        dh_rf:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_rf
          type:
            - string
            - "null"
          maxLength: 4
        dh_s:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_s
          type:
            - string
            - "null"
          maxLength: 5
        dh_st:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dh_st
          type:
            - number
            - "null"
        dh_tem:
          description: "Publisher field type: esriFieldTypeString"
          title: dh_tem
          type:
            - string
            - "null"
          maxLength: 4
        dhc_1:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhc_1
          type:
            - number
            - "null"
        dhc_2:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhc_2
          type:
            - number
            - "null"
        dhc_3:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhc_3
          type:
            - number
            - "null"
        dhc_4:
          description: "Publisher field type: esriFieldTypeString"
          title: dhc_4
          type:
            - string
            - "null"
          maxLength: 4
        dhc_5:
          description: "Publisher field type: esriFieldTypeString"
          title: dhc_5
          type:
            - string
            - "null"
          maxLength: 4
        dhc_6:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhc_6
          type:
            - number
            - "null"
        dhc_7:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhc_7
          type:
            - number
            - "null"
        dhc_8:
          description: "Publisher field type: esriFieldTypeString"
          title: dhc_8
          type:
            - string
            - "null"
          maxLength: 4
        dhi_1:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhi_1
          type:
            - number
            - "null"
        dhi_2:
          description: "Publisher field type: esriFieldTypeString"
          title: dhi_2
          type:
            - string
            - "null"
          maxLength: 4
        dhi_3:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhi_3
          type:
            - number
            - "null"
        dhi_4:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhi_4
          type:
            - number
            - "null"
        dhi_5:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhi_5
          type:
            - number
            - "null"
        dhi_6:
          description: "Publisher field type: esriFieldTypeString"
          title: dhi_6
          type:
            - string
            - "null"
          maxLength: 5
        dhi_7:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhi_7
          type:
            - number
            - "null"
        dhi_e1:
          description: "Publisher field type: esriFieldTypeString"
          title: dhi_e1
          type:
            - string
            - "null"
          maxLength: 4
        dhi_e2:
          description: "Publisher field type: esriFieldTypeString"
          title: dhi_e2
          type:
            - string
            - "null"
          maxLength: 4
        dhi_e3:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhi_e3
          type:
            - number
            - "null"
        dhi_e4:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhi_e4
          type:
            - number
            - "null"
        dhi_e5:
          description: "Publisher field type: esriFieldTypeString"
          title: dhi_e5
          type:
            - string
            - "null"
          maxLength: 5
        dhi_e6:
          description: "Publisher field type: esriFieldTypeString"
          title: dhi_e6
          type:
            - string
            - "null"
          maxLength: 5
        dhi_e7:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhi_e7
          type:
            - number
            - "null"
        dhm_1:
          description: "Publisher field type: esriFieldTypeString"
          title: dhm_1
          type:
            - string
            - "null"
          maxLength: 4
        dhm_2:
          description: "Publisher field type: esriFieldTypeString"
          title: dhm_2
          type:
            - string
            - "null"
          maxLength: 4
        dhm_3:
          description: "Publisher field type: esriFieldTypeString"
          title: dhm_3
          type:
            - string
            - "null"
          maxLength: 4
        dhm_4:
          description: "Publisher field type: esriFieldTypeString"
          title: dhm_4
          type:
            - string
            - "null"
          maxLength: 4
        dhm_5:
          description: "Publisher field type: esriFieldTypeString"
          title: dhm_5
          type:
            - string
            - "null"
          maxLength: 4
        dhm_6:
          description: "Publisher field type: esriFieldTypeString"
          title: dhm_6
          type:
            - string
            - "null"
          maxLength: 4
        dhm_7:
          description: "Publisher field type: esriFieldTypeString"
          title: dhm_7
          type:
            - string
            - "null"
          maxLength: 4
        dhm_loan:
          description: "Publisher field type: esriFieldTypeString"
          title: dhm_loan
          type:
            - string
            - "null"
          maxLength: 6
        dhm_lr:
          description: "Publisher field type: esriFieldTypeString"
          title: dhm_lr
          type:
            - string
            - "null"
          maxLength: 17
        dhr_1:
          description: "Publisher field type: esriFieldTypeString"
          title: dhr_1
          type:
            - string
            - "null"
          maxLength: 5
        dhr_2:
          description: "Publisher field type: esriFieldTypeString"
          title: dhr_2
          type:
            - string
            - "null"
          maxLength: 5
        dhr_3:
          description: "Publisher field type: esriFieldTypeString"
          title: dhr_3
          type:
            - string
            - "null"
          maxLength: 4
        dhr_4:
          description: "Publisher field type: esriFieldTypeString"
          title: dhr_4
          type:
            - string
            - "null"
          maxLength: 4
        dhz_1:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhz_1
          type:
            - number
            - "null"
        dhz_2:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhz_2
          type:
            - number
            - "null"
        dhz_3:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhz_3
          type:
            - number
            - "null"
        dhz_4:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dhz_4
          type:
            - number
            - "null"
        dhz_5:
          description: "Publisher field type: esriFieldTypeString"
          title: dhz_5
          type:
            - string
            - "null"
          maxLength: 4
        dhz_6:
          description: "Publisher field type: esriFieldTypeString"
          title: dhz_6
          type:
            - string
            - "null"
          maxLength: 4
        dm_r:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dm_r
          type:
            - number
            - "null"
        dmr_ir:
          description: "Publisher field type: esriFieldTypeDouble"
          title: dmr_ir
          type:
            - number
            - "null"
        edu_deg:
          description: "Publisher field type: esriFieldTypeDouble"
          title: edu_deg
          type:
            - number
            - "null"
        edu_dip:
          description: "Publisher field type: esriFieldTypeDouble"
          title: edu_dip
          type:
            - number
            - "null"
        edu_lsed:
          description: "Publisher field type: esriFieldTypeDouble"
          title: edu_lsed
          type:
            - number
            - "null"
        edu_prepri:
          description: "Publisher field type: esriFieldTypeString"
          title: edu_prepri
          type:
            - string
            - "null"
          maxLength: 5
        edu_pri:
          description: "Publisher field type: esriFieldTypeDouble"
          title: edu_pri
          type:
            - number
            - "null"
        edu_sub:
          description: "Publisher field type: esriFieldTypeDouble"
          title: edu_sub
          type:
            - number
            - "null"
        edu_usec:
          description: "Publisher field type: esriFieldTypeDouble"
          title: edu_usec
          type:
            - number
            - "null"
        ethn_chi:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ethn_chi
          type:
            - number
            - "null"
        ethn_ind:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ethn_ind
          type:
            - number
            - "null"
        ethn_oth:
          description: "Publisher field type: esriFieldTypeString"
          title: ethn_oth
          type:
            - string
            - "null"
          maxLength: 5
        ethn_phi:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ethn_phi
          type:
            - number
            - "null"
        ethn_wh:
          description: "Publisher field type: esriFieldTypeString"
          title: ethn_wh
          type:
            - string
            - "null"
          maxLength: 4
        fa_m:
          description: "Publisher field type: esriFieldTypeDouble"
          title: fa_m
          type:
            - number
            - "null"
        lf_f:
          description: "Publisher field type: esriFieldTypeDouble"
          title: lf_f
          type:
            - number
            - "null"
        lf_m:
          description: "Publisher field type: esriFieldTypeDouble"
          title: lf_m
          type:
            - number
            - "null"
        lfpr_f:
          description: "Publisher field type: esriFieldTypeDouble"
          title: lfpr_f
          type:
            - number
            - "null"
        lfpr_m:
          description: "Publisher field type: esriFieldTypeDouble"
          title: lfpr_m
          type:
            - number
            - "null"
        lfpr_t:
          description: "Publisher field type: esriFieldTypeDouble"
          title: lfpr_t
          type:
            - number
            - "null"
        ma_econhh:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ma_econhh
          type:
            - number
            - "null"
        ma_f:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ma_f
          type:
            - number
            - "null"
        ma_hh:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ma_hh
          type:
            - number
            - "null"
        ma_m:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ma_m
          type:
            - number
            - "null"
        mearn_xfdh_1:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mearn_xfdh_1
          type:
            - number
            - "null"
        mearn_xfdh_2:
          description: "Publisher field type: esriFieldTypeString"
          title: mearn_xfdh_2
          type:
            - string
            - "null"
          maxLength: 4
        mearn_xfdh_3:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mearn_xfdh_3
          type:
            - number
            - "null"
        mearn_xfdh_4:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mearn_xfdh_4
          type:
            - number
            - "null"
        mearn_xfdh_5:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mearn_xfdh_5
          type:
            - number
            - "null"
        mearn_xfdh_6:
          description: "Publisher field type: esriFieldTypeString"
          title: mearn_xfdh_6
          type:
            - string
            - "null"
          maxLength: 5
        mearn_xfdh_7:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mearn_xfdh_7
          type:
            - number
            - "null"
        mearn_xfdhfw_1:
          description: "Publisher field type: esriFieldTypeString"
          title: mearn_xfdhfw_1
          type:
            - string
            - "null"
          maxLength: 4
        mearn_xfdhfw_2:
          description: "Publisher field type: esriFieldTypeString"
          title: mearn_xfdhfw_2
          type:
            - string
            - "null"
          maxLength: 4
        mearn_xfdhfw_3:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mearn_xfdhfw_3
          type:
            - number
            - "null"
        mearn_xfdhfw_4:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mearn_xfdhfw_4
          type:
            - number
            - "null"
        mearn_xfdhfw_5:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mearn_xfdhfw_5
          type:
            - number
            - "null"
        mearn_xfdhfw_6:
          description: "Publisher field type: esriFieldTypeString"
          title: mearn_xfdhfw_6
          type:
            - string
            - "null"
          maxLength: 5
        mearn_xfdhfw_7:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mearn_xfdhfw_7
          type:
            - number
            - "null"
        mmearn_f:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mmearn_f
          type:
            - number
            - "null"
        mmearn_m:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mmearn_m
          type:
            - number
            - "null"
        mmearn_xfdh_f:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mmearn_xfdh_f
          type:
            - number
            - "null"
        mmearn_xfdh_m:
          description: "Publisher field type: esriFieldTypeDouble"
          title: mmearn_xfdh_m
          type:
            - number
            - "null"
        ms_div_f:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ms_div_f
          type:
            - number
            - "null"
        ms_div_m:
          description: "Publisher field type: esriFieldTypeString"
          title: ms_div_m
          type:
            - string
            - "null"
          maxLength: 4
        ms_m_f:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ms_m_f
          type:
            - number
            - "null"
        ms_ma_m:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ms_ma_m
          type:
            - number
            - "null"
        ms_nm_f:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ms_nm_f
          type:
            - number
            - "null"
        ms_nm_m:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ms_nm_m
          type:
            - number
            - "null"
        ms_sep_f:
          description: "Publisher field type: esriFieldTypeString"
          title: ms_sep_f
          type:
            - string
            - "null"
          maxLength: 3
        ms_sep_m:
          description: "Publisher field type: esriFieldTypeString"
          title: ms_sep_m
          type:
            - string
            - "null"
          maxLength: 3
        ms_win_f:
          description: "Publisher field type: esriFieldTypeString"
          title: ms_win_f
          type:
            - string
            - "null"
          maxLength: 5
        ms_win_m:
          description: "Publisher field type: esriFieldTypeString"
          title: ms_win_m
          type:
            - string
            - "null"
          maxLength: 4
        nwp_care:
          description: "Publisher field type: esriFieldTypeString"
          title: nwp_care
          type:
            - string
            - "null"
          maxLength: 4
        nwp_hm:
          description: "Publisher field type: esriFieldTypeDouble"
          title: nwp_hm
          type:
            - number
            - "null"
        nwp_oth:
          description: "Publisher field type: esriFieldTypeDouble"
          title: nwp_oth
          type:
            - number
            - "null"
        nwp_re:
          description: "Publisher field type: esriFieldTypeDouble"
          title: nwp_re
          type:
            - number
            - "null"
        nwp_st:
          description: "Publisher field type: esriFieldTypeDouble"
          title: nwp_st
          type:
            - number
            - "null"
        oq_non:
          description: "Publisher field type: esriFieldTypeString"
          title: oq_non
          type:
            - string
            - "null"
          maxLength: 4
        oq_pri:
          description: "Publisher field type: esriFieldTypeString"
          title: oq_pri
          type:
            - string
            - "null"
          maxLength: 5
        oq_pub:
          description: "Publisher field type: esriFieldTypeString"
          title: oq_pub
          type:
            - string
            - "null"
          maxLength: 5
        oq_s:
          description: "Publisher field type: esriFieldTypeString"
          title: oq_s
          type:
            - string
            - "null"
          maxLength: 5
        oq_tem:
          description: "Publisher field type: esriFieldTypeString"
          title: oq_tem
          type:
            - string
            - "null"
          maxLength: 4
        pls_diff_hk:
          description: "Publisher field type: esriFieldTypeString"
          title: pls_diff_hk
          type:
            - string
            - "null"
          maxLength: 4
        pls_diff_kln:
          description: "Publisher field type: esriFieldTypeString"
          title: pls_diff_kln
          type:
            - string
            - "null"
          maxLength: 4
        pls_diff_nt:
          description: "Publisher field type: esriFieldTypeString"
          title: pls_diff_nt
          type:
            - string
            - "null"
          maxLength: 5
        pls_same:
          description: "Publisher field type: esriFieldTypeString"
          title: pls_same
          type:
            - string
            - "null"
          maxLength: 5
        plw_diff_hk:
          description: "Publisher field type: esriFieldTypeString"
          title: plw_diff_hk
          type:
            - string
            - "null"
          maxLength: 5
        plw_diff_kln:
          description: "Publisher field type: esriFieldTypeString"
          title: plw_diff_kln
          type:
            - string
            - "null"
          maxLength: 5
        plw_diff_nt:
          description: "Publisher field type: esriFieldTypeString"
          title: plw_diff_nt
          type:
            - string
            - "null"
          maxLength: 5
        plw_diff_oth:
          description: "Publisher field type: esriFieldTypeString"
          title: plw_diff_oth
          type:
            - string
            - "null"
          maxLength: 5
        plw_hm:
          description: "Publisher field type: esriFieldTypeDouble"
          title: plw_hm
          type:
            - number
            - "null"
        plw_nofix:
          description: "Publisher field type: esriFieldTypeDouble"
          title: plw_nofix
          type:
            - number
            - "null"
        plw_out:
          description: "Publisher field type: esriFieldTypeString"
          title: plw_out
          type:
            - string
            - "null"
          maxLength: 4
        plw_same:
          description: "Publisher field type: esriFieldTypeString"
          title: plw_same
          type:
            - string
            - "null"
          maxLength: 5
        pm_hk:
          description: "Publisher field type: esriFieldTypeDouble"
          title: pm_hk
          type:
            - number
            - "null"
        pm_kln:
          description: "Publisher field type: esriFieldTypeString"
          title: pm_kln
          type:
            - string
            - "null"
          maxLength: 5
        pm_nt:
          description: "Publisher field type: esriFieldTypeDouble"
          title: pm_nt
          type:
            - number
            - "null"
        pm_oth:
          description: "Publisher field type: esriFieldTypeString"
          title: pm_oth
          type:
            - string
            - "null"
          maxLength: 4
        pm_out:
          description: "Publisher field type: esriFieldTypeDouble"
          title: pm_out
          type:
            - number
            - "null"
        pm_same:
          description: "Publisher field type: esriFieldTypeDouble"
          title: pm_same
          type:
            - number
            - "null"
        pm_samearea:
          description: "Publisher field type: esriFieldTypeDouble"
          title: pm_samearea
          type:
            - number
            - "null"
        pop_f:
          description: "Publisher field type: esriFieldTypeDouble"
          title: pop_f
          type:
            - number
            - "null"
        pop_m:
          description: "Publisher field type: esriFieldTypeDouble"
          title: pop_m
          type:
            - number
            - "null"
        pop_non:
          description: "Publisher field type: esriFieldTypeString"
          title: pop_non
          type:
            - string
            - "null"
          maxLength: 4
        pop_pri:
          description: "Publisher field type: esriFieldTypeString"
          title: pop_pri
          type:
            - string
            - "null"
          maxLength: 6
        pop_pub:
          description: "Publisher field type: esriFieldTypeString"
          title: pop_pub
          type:
            - string
            - "null"
          maxLength: 6
        pop_s:
          description: "Publisher field type: esriFieldTypeString"
          title: pop_s
          type:
            - string
            - "null"
          maxLength: 5
        pop_tem:
          description: "Publisher field type: esriFieldTypeString"
          title: pop_tem
          type:
            - string
            - "null"
          maxLength: 4
        readchi_ablepctn:
          description: "Publisher field type: esriFieldTypeDouble"
          title: readchi_ablepctn
          type:
            - number
            - "null"
        readeng_ablepctn:
          description: "Publisher field type: esriFieldTypeDouble"
          title: readeng_ablepctn
          type:
            - number
            - "null"
        s_diff_oth:
          description: "Publisher field type: esriFieldTypeString"
          title: s_diff_oth
          type:
            - string
            - "null"
          maxLength: 4
        sr:
          description: "Publisher field type: esriFieldTypeDouble"
          title: sr
          type:
            - number
            - "null"
        stpug:
          description: "Publisher field type: esriFieldTypeString"
          title: stpug
          type:
            - string
            - "null"
          maxLength: 4
        stpug_chi:
          description: "Publisher field type: esriFieldTypeString"
          title: stpug_chi
          type:
            - string
            - "null"
          maxLength: 22
        stpug_eng:
          description: "Publisher field type: esriFieldTypeString"
          title: stpug_eng
          type:
            - string
            - "null"
          maxLength: 22
        t_lf:
          description: "Publisher field type: esriFieldTypeDouble"
          title: t_lf
          type:
            - number
            - "null"
        t_ma:
          description: "Publisher field type: esriFieldTypeDouble"
          title: t_ma
          type:
            - number
            - "null"
        t_mmearn:
          description: "Publisher field type: esriFieldTypeDouble"
          title: t_mmearn
          type:
            - number
            - "null"
        t_mmearn_xfdh:
          description: "Publisher field type: esriFieldTypeDouble"
          title: t_mmearn_xfdh
          type:
            - number
            - "null"
        t_nwp:
          description: "Publisher field type: esriFieldTypeDouble"
          title: t_nwp
          type:
            - number
            - "null"
        t_pop:
          description: "Publisher field type: esriFieldTypeDouble"
          title: t_pop
          type:
            - number
            - "null"
        t_wp:
          description: "Publisher field type: esriFieldTypeDouble"
          title: t_wp
          type:
            - number
            - "null"
        ul_can:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ul_can
          type:
            - number
            - "null"
        ul_eng:
          description: "Publisher field type: esriFieldTypeDouble"
          title: ul_eng
          type:
            - number
            - "null"
        ul_oth:
          description: "Publisher field type: esriFieldTypeString"
          title: ul_oth
          type:
            - string
            - "null"
          maxLength: 4
        ul_othchi:
          description: "Publisher field type: esriFieldTypeString"
          title: ul_othchi
          type:
            - string
            - "null"
          maxLength: 4
        ul_put:
          description: "Publisher field type: esriFieldTypeString"
          title: ul_put
          type:
            - string
            - "null"
          maxLength: 4
        whr_1:
          description: "Publisher field type: esriFieldTypeString"
          title: whr_1
          type:
            - string
            - "null"
          maxLength: 4
        whr_2:
          description: "Publisher field type: esriFieldTypeDouble"
          title: whr_2
          type:
            - number
            - "null"
        whr_3:
          description: "Publisher field type: esriFieldTypeDouble"
          title: whr_3
          type:
            - number
            - "null"
        whr_4:
          description: "Publisher field type: esriFieldTypeDouble"
          title: whr_4
          type:
            - number
            - "null"
        whr_5:
          description: "Publisher field type: esriFieldTypeDouble"
          title: whr_5
          type:
            - number
            - "null"
        whr_6:
          description: "Publisher field type: esriFieldTypeString"
          title: whr_6
          type:
            - string
            - "null"
          maxLength: 4
        wp_a:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_a
          type:
            - number
            - "null"
        wp_b:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_b
          type:
            - string
            - "null"
          maxLength: 5
        wp_c:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_c
          type:
            - number
            - "null"
        wp_d:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_d
          type:
            - number
            - "null"
        wp_e:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_e
          type:
            - number
            - "null"
        wp_ee:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_ee
          type:
            - number
            - "null"
        wp_er:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_er
          type:
            - string
            - "null"
          maxLength: 4
        wp_f:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_f
          type:
            - string
            - "null"
          maxLength: 5
        wp_fw:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_fw
          type:
            - string
            - "null"
          maxLength: 3
        wp_g:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_g
          type:
            - string
            - "null"
          maxLength: 4
        wp_h:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_h
          type:
            - number
            - "null"
        wp_i:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_i
          type:
            - string
            - "null"
          maxLength: 3
        wp_j:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_j
          type:
            - string
            - "null"
          maxLength: 4
        wp_k:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_k
          type:
            - number
            - "null"
        wp_l:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_l
          type:
            - number
            - "null"
        wp_m:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_m
          type:
            - string
            - "null"
          maxLength: 5
        wp_n:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_n
          type:
            - string
            - "null"
          maxLength: 5
        wp_o:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_o
          type:
            - string
            - "null"
          maxLength: 4
        wp_p:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_p
          type:
            - string
            - "null"
          maxLength: 4
        wp_q:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_q
          type:
            - number
            - "null"
        wp_r:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_r
          type:
            - number
            - "null"
        wp_s:
          description: "Publisher field type: esriFieldTypeDouble"
          title: wp_s
          type:
            - number
            - "null"
        wp_se:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_se
          type:
            - string
            - "null"
          maxLength: 4
        wp_t:
          description: "Publisher field type: esriFieldTypeString"
          title: wp_t
          type:
            - string
            - "null"
          maxLength: 4
        writechi_ablepctn:
          description: "Publisher field type: esriFieldTypeDouble"
          title: writechi_ablepctn
          type:
            - number
            - "null"
        writeeng_ablepctn:
          description: "Publisher field type: esriFieldTypeDouble"
          title: writeeng_ablepctn
          type:
            - number
            - "null"
        OBJECTID:
          description: "Publisher field type: esriFieldTypeOID"
          title: OBJECTID
          type: integer
        Shape__Length:
          description: "Publisher field type: esriFieldTypeDouble"
          title: SHAPE_Length
          type:
            - number
            - "null"
        Shape__Area:
          description: "Publisher field type: esriFieldTypeDouble"
          title: SHAPE_Area
          type:
            - number
            - "null"
      additionalProperties: true
    ArcgisFeatureServerArcgisFeatureSet:
      type: object
      properties:
        features:
          type: array
          items:
            type: object
            properties:
              attributes:
                $ref: "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
              geometry:
                description: Native geometry and spatial reference are not constrained by attribute metadata.
            additionalProperties: true
        exceededTransferLimit:
          type: boolean
      additionalProperties: true
    ArcgisFeatureServerArcgisGeoJson:
      type: object
      properties:
        type:
          type: string
        features:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              properties:
                $ref: "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
              geometry:
                description: Geometry representation is not constrained by the retained attribute metadata.
            additionalProperties: true
      additionalProperties: true
    ArcgisFeatureServerArcgisJsonEnvelope:
      type: object
      properties:
        type:
          type: string
        features:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              attributes:
                $ref: "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
              properties:
                $ref: "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
              geometry:
                description: Geometry is not constrained by attribute metadata.
            additionalProperties: true
        exceededTransferLimit:
          type: boolean
      additionalProperties: true
externalDocs:
  url: https://portal.csdi.gov.hk/csdi-webpage/doc/GeoSpatialServices
x-csdi-layer-choices:
  - id: 0
    title: STPUG_21C
    protocol: arcgis
  - id: STPUG_21C
    title: STPUG_21C
    protocol: wms
    crss:
      - CRS:84
      - EPSG:4326
      - EPSG:2326
      - EPSG:102140
    bounds:
      - CRS: CRS:84
        minx: "113.831736"
        miny: "22.154760"
        maxx: "114.439545"
        maxy: "22.563476"
      - CRS: EPSG:4326
        minx: "22.154760"
        miny: "113.831736"
        maxx: "22.563476"
        maxy: "114.439545"
      - CRS: EPSG:2326
        minx: "801683.654000"
        miny: "801022.188200"
        maxx: "846902.973000"
        maxy: "863537.786000"
      - CRS: EPSG:102140
        minx: "801683.654000"
        miny: "801022.188200"
        maxx: "846902.973000"
        maxy: "863537.786000"
      - CRS: CRS:84
        minx: "113.831736"
        miny: "22.154760"
        maxx: "114.439545"
        maxy: "22.563476"
      - CRS: EPSG:4326
        minx: "22.154760"
        miny: "113.831736"
        maxx: "22.563476"
        maxy: "114.439545"
      - CRS: EPSG:2326
        minx: "801683.654000"
        miny: "801022.188200"
        maxx: "846902.973000"
        maxy: "863537.786000"
      - CRS: EPSG:102140
        minx: "801683.654000"
        miny: "801022.188200"
        maxx: "846902.973000"
        maxy: "863537.786000"
    styles:
      - id: default
        title: STPUG_21C
x-csdi-source-evidence:
  - url: https://portal.csdi.gov.hk/geoportal/csw?service=CSW&version=2.0.2&request=GetRecordById&elementSetName=full&id=censtatd_rcd_1635933193720_58660
    sha256: 5f66820ed134cf66279db0304cc9a189b96f1c73fe9100b01a6470c6f8d6f30b
    httpStatus: 200
    contentType: application/xml;charset=UTF-8
    role: csw-record
    parseStatus: pass
    kind: csw-record
  - url: https://portal.csdi.gov.hk/server/rest/services/common/censtatd_rcd_1635933193720_58660/FeatureServer?f=pjson
    sha256: fac18197be0a5c43ea56870375fd5421dd943df526c9d7e414979a4cbe58351c
    httpStatus: 200
    contentType: text/plain;charset=UTF-8
    role: arcgis-service
    parseStatus: pass
    kind: arcgis-service
  - url: https://portal.csdi.gov.hk/server/rest/services/common/censtatd_rcd_1635933193720_58660/FeatureServer/0?f=pjson
    sha256: e4ce034681810b8920c30fad96ded4555d73a7b1cfa5e237af4f8f0ae562fc15
    httpStatus: 200
    contentType: text/plain;charset=UTF-8
    role: arcgis-layer
    parseStatus: pass
    kind: arcgis-layer
  - url: https://portal.csdi.gov.hk/server/services/common/censtatd_rcd_1635933193720_58660/MapServer/WMSServer?service=wms&request=GetCapabilities
    sha256: b0e78e0731f232085096b350acf0ab90143ed8bb6c6f41d0354181b493ed1289
    httpStatus: 200
    contentType: text/xml
    role: wms-capabilities
    parseStatus: pass
    kind: wms-capabilities
x-csdi-source-scope:
  partialProtocols:
    - code: metadata_http_not_200
      url: https://portal.csdi.gov.hk/server/services/common/censtatd_rcd_1635933193720_58660/MapServer/WFSServer?service=WFS&request=GetCapabilities
      httpStatus: 403
    - serviceId: csdi-service-e974cb324eb79e47d83f614a
      code: discovery_metadata_error
      reason: Metadata request status http_error
      url: https://portal.csdi.gov.hk/server/services/common/censtatd_rcd_1635933193720_58660/MapServer/WFSServer?service=WFS&request=GetCapabilities
    - serviceId: csdi-service-e974cb324eb79e47d83f614a
      protocol: wfs
      code: unsupported_or_incomplete_native_contract
      reason: No retained parseable WFS GetCapabilities
  nativeMetadataStatus:
    status: http_200_retained
    http200Sources: 4
  fullSourceCompleteness: not_established
  actualDataQueriesByConversion: 0
