Geodata

Data as of 31 Jan 2022, 23:59

Lorem ipsum.

0 views·0 downloads

How is this data produced?

Lorem ipsum.

What caveats I should bear in mind when using this data?

Lorem ipsum.

Metadata

Dataset description

Lorem ipsum.

Variable definitions
  • State
  • District
Last updated:

01 Feb 2022, 12:00

Next update

N/A

Data source(s)
  • MAMPU
License

This data is made open under the Creative Commons Attribution 4.0 International License (CC BY 4.0). A human-readable copy of the license is available Here.

Download

Chart
Image (PNG)

Image (PNG)

Suitable for general digital use.

0

Data
Full Dataset (CSV)

Full Dataset (CSV)

Recommended for individuals seeking an Excel-friendly format.

0

Full Dataset (Parquet)

Full Dataset (Parquet)

Recommended for data scientists seeking to work with data via code.

0

Code

Connect directly to the data with Python.

# If not already installed, do: pip install pandas matplotlib geopandas import pandas as pd import matplotlib.pyplot as plt import geopandas as gpd # the first URL gives you 15dp accuracy (highest possible) # the _LIGHT URL gives you 5dp accuracy, sufficient for visuals but not analysis # the _LIGHT URL is over 90% smaller in size, hence the tradeoff URL_GEOJSON = 'https://storage.data.gov.my/boundaries/admin_2_district.geojson' URL_GEOJSON_LIGHT = URL_GEOJSON.replace('.geojson','_light.geojson') MAPSIZE = [10,5] geo = gpd.read_file(URL_GEOJSON_LIGHT) # Uncomment below to maintain a rectangular map, but remove the whitespace caused by the South China Sea geo.loc[~geo.code_state.isin([12, 13, 15]), 'geometry'] = geo.geometry.translate(4.5, 0.5) # Uncomment below to change from rectangular --> square, for a more compact visual # geo.loc[~geo.code_state.isin([12, 13, 15]), 'geometry'] = geo.geometry.translate(9, 4.5) # MAPSIZE = [7,7] plt.rcParams.update({'font.size': 11, 'font.family': 'sans-serif', 'figure.figsize': MAPSIZE, 'figure.autolayout': True }) fig, ax = plt.subplots() ax.axis('off') ax.set_title('Your Map Title') geo.plot(facecolor='#ffffff', linewidth=0.5, edgecolor='black', ax=ax)

Sample OpenAPI query

This data catalog is not available through OpenAPI as the nature of the data makes it unsuitable for API access. For the full dataset, please use the provided download link as shown in the above section.

jata negara
Government of Malaysia

© 2023 Public Sector Open Data