acadgis 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. acadgis-0.1.0/CHANGELOG.md +73 -0
  2. acadgis-0.1.0/LICENSE +202 -0
  3. acadgis-0.1.0/MANIFEST.in +5 -0
  4. acadgis-0.1.0/NOTICE +13 -0
  5. acadgis-0.1.0/PKG-INFO +151 -0
  6. acadgis-0.1.0/README.md +183 -0
  7. acadgis-0.1.0/README_PyPI.md +93 -0
  8. acadgis-0.1.0/acadgis/__init__.py +164 -0
  9. acadgis-0.1.0/acadgis/_version.py +1 -0
  10. acadgis-0.1.0/acadgis/core.py +404 -0
  11. acadgis-0.1.0/acadgis/data/samples/bangladesh_adm0.geojson +8 -0
  12. acadgis-0.1.0/acadgis/data/samples/bangladesh_adm1.geojson +15 -0
  13. acadgis-0.1.0/acadgis/data/samples/bangladesh_adm2.geojson +71 -0
  14. acadgis-0.1.0/acadgis/data/samples/india_adm0.geojson +8 -0
  15. acadgis-0.1.0/acadgis/data/samples/india_adm1.geojson +48 -0
  16. acadgis-0.1.0/acadgis/data/samples/india_adm2.geojson +683 -0
  17. acadgis-0.1.0/acadgis/data/samples/iraq_adm0.geojson +8 -0
  18. acadgis-0.1.0/acadgis/data/samples/iraq_adm1.geojson +25 -0
  19. acadgis-0.1.0/acadgis/data/samples/lakes_50m.geojson +419 -0
  20. acadgis-0.1.0/acadgis/data/samples/rivers_50m.geojson +469 -0
  21. acadgis-0.1.0/acadgis/data/samples/usa_adm1.geojson +58 -0
  22. acadgis-0.1.0/acadgis/data/samples/world_adm0.geojson +184 -0
  23. acadgis-0.1.0/acadgis/data.py +201 -0
  24. acadgis-0.1.0/acadgis/decorations.py +308 -0
  25. acadgis-0.1.0/acadgis/drainage.py +93 -0
  26. acadgis-0.1.0/acadgis/hydro.py +383 -0
  27. acadgis-0.1.0/acadgis/inset.py +219 -0
  28. acadgis-0.1.0/acadgis/matching.py +123 -0
  29. acadgis-0.1.0/acadgis/palettes.py +138 -0
  30. acadgis-0.1.0/acadgis/terrain.py +245 -0
  31. acadgis-0.1.0/acadgis/themes.py +88 -0
  32. acadgis-0.1.0/acadgis/world.py +161 -0
  33. acadgis-0.1.0/acadgis.egg-info/PKG-INFO +151 -0
  34. acadgis-0.1.0/acadgis.egg-info/SOURCES.txt +38 -0
  35. acadgis-0.1.0/acadgis.egg-info/dependency_links.txt +1 -0
  36. acadgis-0.1.0/acadgis.egg-info/requires.txt +38 -0
  37. acadgis-0.1.0/acadgis.egg-info/top_level.txt +1 -0
  38. acadgis-0.1.0/pyproject.toml +68 -0
  39. acadgis-0.1.0/setup.cfg +4 -0
  40. acadgis-0.1.0/tests/test_acadgis.py +310 -0
@@ -0,0 +1,73 @@
1
+ # Changelog
2
+
3
+ All notable changes to **AcadGIS** are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/) and the project uses
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [0.1.0] — 2026-06-18
8
+
9
+ First public release.
10
+
11
+ ### Added
12
+ - `load_boundaries(country, level, within=, download=)` — boundary loader with
13
+ bundled-sample → local-cache → live-GADM-download resolution and friendly
14
+ level names (`country`/`state`/`district`/`upazila`/…).
15
+ - `plot()` — one-line styled qualitative/categorical maps with north arrow,
16
+ scale bar, lat/lon graticule, legend, labels and region highlighting.
17
+ - `choropleth()` — data-driven choropleths with automatic fuzzy **name
18
+ matching** (handles renames, admin suffixes and diacritics) and optional
19
+ `mapclassify` classification schemes.
20
+ - `StudyArea` — multi-panel **locator figures** (country → region → detail) with
21
+ connecting arrows; the signature AcadGIS layout.
22
+ - `load_world()`, `highlight_country()` and `world_locator()` — world map with a
23
+ selected study country marked, plus a world → zoomed-country two-panel figure
24
+ (bundled Natural Earth 110m layer, fully offline).
25
+ - Batteries-included re-exports: `agis.plt` / `agis.np` / `agis.pd` /
26
+ `agis.gpd` / `agis.show()` so one import is enough.
27
+ - **Customizable decorations** ported from the web app:
28
+ - North arrows: `classic`, `minimal`, `pointer`, `rose` — now
29
+ **aspect-corrected** so shapes never stretch on tall/wide maps.
30
+ - Scale bars: `simple`, `bar`, `stepped`, with `units` km/mi.
31
+ - Borders: `solid`, `checker` (zebra), `none`.
32
+ - Each `north_arrow` / `scale_bar` / `border` argument accepts a bool, a
33
+ style string, or a dict of `style`/`size`/`color`/`loc` for full control.
34
+ - 12 colour palettes and 6 themes (`academic`, `atlas`, `mono`, `nature`,
35
+ `ocean`, `viridis`).
36
+ - `points()` — overlay point markers (capital cities, study sites, sampling
37
+ locations) from a DataFrame, dict, or list, with optional labels; supports
38
+ **graduated symbols** for collected data (`value=` colour-by-value with a
39
+ colorbar, `size_by=` proportional marker size).
40
+ - Bundled offline sample data for Bangladesh (adm 0/1/2), Iraq (adm 0/1),
41
+ USA states (adm 1, incl. Alaska & Hawaii), and India (adm 0/1/2); world
42
+ countries + rivers/lakes (Natural Earth).
43
+ - Country-name aliases (e.g. ``"USA"`` → United States).
44
+ - `save()` helper for PNG / PDF / SVG export at any DPI.
45
+ - Branding: full brand kit in `brand/` — the "study-area map" mark (Midnight +
46
+ Light), wordmark lockups, animated SVG header, 1280×640 social-preview card,
47
+ favicons + app icons (16–512), `favicon.ico`, and a PWA `site.webmanifest`;
48
+ plus a redesigned GitHub `README.md` and a PyPI-tuned `README_PyPI.md`.
49
+ Regenerate rasters with `python scripts/build_brand.py`.
50
+ - Nine executed tutorial notebooks and a gallery script.
51
+ - Test suite (15 offline tests) and GitHub Actions CI.
52
+
53
+ - **Terrain** (`acadgis[terrain]`): `load_dem()` downloads & mosaics Copernicus
54
+ GLO-30 (30 m global, no API key) for a name/bbox/GeoDataFrame; `relief()`
55
+ renders hillshaded + hypsometric-tinted elevation maps; `hillshade()` helper.
56
+ - **Drainage** (`acadgis[drainage]`): `drainage()` extracts stream networks from
57
+ a DEM via flow accumulation; `add_streams()` weights width by flow.
58
+ - **Hydrology**: `load_rivers()` / `load_lakes()` (bundled Natural Earth 50 m,
59
+ optional 10 m download/cache), `add_rivers()` / `add_water()` overlays with
60
+ river-name labels, and `atlas()` — WorldAtlas-style cartography with greyed &
61
+ labelled neighbour countries, the river network with names, water bodies, and
62
+ optional `cities` point markers.
63
+ - **Dense OpenStreetMap rivers**: `fetch_osm_rivers()` and `rivers="osm"`
64
+ (in `atlas`/`add_rivers`) pull the full river/canal/stream network from
65
+ Overpass (cached), styled with realistic blues and width-by-`kind`.
66
+ - **Topography to the ocean**: `relief(..., ocean_color=, sea_level=)` renders
67
+ the sea in a realistic colour so terrain reads clearly down to the coast.
68
+
69
+ ### Roadmap
70
+ - CSV point-layer overlay (study sites, sampling locations).
71
+ - Hatch / pattern fills for black-and-white printing.
72
+ - More bundled countries; projection options (Albers, Robinson).
73
+ - Inset locator auto-placement in a figure corner.
acadgis-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ include LICENSE
2
+ include NOTICE
3
+ include README_PyPI.md
4
+ include CHANGELOG.md
5
+ recursive-include acadgis/data/samples *.geojson
acadgis-0.1.0/NOTICE ADDED
@@ -0,0 +1,13 @@
1
+ AcadGIS
2
+ Copyright 2026 AcadGIS contributors
3
+
4
+ This product includes software developed at AcadGIS (https://acadgis.com).
5
+
6
+ Administrative boundary sample data bundled under acadgis/data/samples/ is
7
+ derived from the GADM database (https://gadm.org), version 4.1, and is used
8
+ for academic / non-commercial purposes in accordance with the GADM license.
9
+ When you download boundaries at runtime, data is retrieved from GADM via the
10
+ `pygadm` package.
11
+
12
+ This software is licensed under the Apache License, Version 2.0. See the
13
+ LICENSE file for the full text.
acadgis-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,151 @@
1
+ Metadata-Version: 2.4
2
+ Name: acadgis
3
+ Version: 0.1.0
4
+ Summary: Publication-ready academic GIS study-area maps in a few lines of Python.
5
+ Author-email: Ripon Chandra Malo <riponce.buet@gmail.com>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://acadgis.com
8
+ Project-URL: Repository, https://github.com/riponcm/AcadGIS
9
+ Project-URL: Issues, https://github.com/riponcm/AcadGIS/issues
10
+ Keywords: gis,geospatial,cartography,mapping,map,study-area-map,research-map,choropleth,choropleth-map,locator-map,thesis-map,publication,geopandas,matplotlib,administrative-boundaries,gadm,openstreetmap,terrain,hillshade,dem,rivers,spatial-analysis,qgis-alternative,academic,research
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Scientific/Engineering :: GIS
20
+ Classifier: Topic :: Scientific/Engineering :: Visualization
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ License-File: NOTICE
25
+ Requires-Dist: geopandas>=0.12
26
+ Requires-Dist: matplotlib>=3.6
27
+ Requires-Dist: numpy>=1.22
28
+ Requires-Dist: pandas>=1.5
29
+ Requires-Dist: shapely>=2.0
30
+ Provides-Extra: full
31
+ Requires-Dist: pygadm>=0.5; extra == "full"
32
+ Requires-Dist: rapidfuzz>=3.0; extra == "full"
33
+ Requires-Dist: mapclassify>=2.5; extra == "full"
34
+ Requires-Dist: rasterio>=1.3; extra == "full"
35
+ Requires-Dist: rioxarray>=0.13; extra == "full"
36
+ Requires-Dist: pysheds>=0.3; extra == "full"
37
+ Provides-Extra: download
38
+ Requires-Dist: pygadm>=0.5; extra == "download"
39
+ Provides-Extra: match
40
+ Requires-Dist: rapidfuzz>=3.0; extra == "match"
41
+ Provides-Extra: terrain
42
+ Requires-Dist: rasterio>=1.3; extra == "terrain"
43
+ Requires-Dist: rioxarray>=0.13; extra == "terrain"
44
+ Provides-Extra: drainage
45
+ Requires-Dist: pysheds>=0.3; extra == "drainage"
46
+ Requires-Dist: rasterio>=1.3; extra == "drainage"
47
+ Provides-Extra: dev
48
+ Requires-Dist: pytest>=7.0; extra == "dev"
49
+ Requires-Dist: pygadm>=0.5; extra == "dev"
50
+ Requires-Dist: rapidfuzz>=3.0; extra == "dev"
51
+ Requires-Dist: mapclassify>=2.5; extra == "dev"
52
+ Requires-Dist: rasterio>=1.3; extra == "dev"
53
+ Requires-Dist: rioxarray>=0.13; extra == "dev"
54
+ Requires-Dist: pysheds>=0.3; extra == "dev"
55
+ Requires-Dist: jupyter; extra == "dev"
56
+ Requires-Dist: nbconvert; extra == "dev"
57
+ Dynamic: license-file
58
+
59
+ <p align="center">
60
+ <img src="https://raw.githubusercontent.com/riponcm/AcadGIS/main/brand/logo.svg" alt="AcadGIS" width="120">
61
+ </p>
62
+
63
+ <h1 align="center">AcadGIS</h1>
64
+
65
+ <p align="center"><b>Publication-ready study area maps for research — in a few lines of Python.</b></p>
66
+
67
+ <p align="center">
68
+ <a href="https://pypi.org/project/acadgis/"><img src="https://img.shields.io/badge/version-0.1.0-2b6cb0.svg" alt="Version"></a>
69
+ <a href="https://pypi.org/project/acadgis/"><img src="https://img.shields.io/badge/python-3.9%2B-2d6a4f.svg" alt="Python"></a>
70
+ <a href="https://www.apache.org/licenses/LICENSE-2.0"><img src="https://img.shields.io/badge/license-Apache--2.0-1b9aaa.svg" alt="License"></a>
71
+ <a href="https://doc.acadgis.com"><img src="https://img.shields.io/badge/docs-acadgis.com-ffb567.svg" alt="Docs"></a>
72
+ </p>
73
+
74
+ <p align="center">
75
+ <b><a href="https://acadgis.com">Website</a></b> &nbsp;&middot;&nbsp;
76
+ <b><a href="https://doc.acadgis.com">Documentation</a></b> &nbsp;&middot;&nbsp;
77
+ <b><a href="https://github.com/riponcm/AcadGIS">Source</a></b>
78
+ </p>
79
+
80
+ ---
81
+
82
+ AcadGIS is a Python package (and a no-code web app) for making publication-ready study area
83
+ maps, choropleth maps, locator insets, terrain relief and river maps — for research papers,
84
+ theses and reports. Name a place, add your data, and export a journal-ready figure in three
85
+ lines: no QGIS, ArcGIS or shapefiles required.
86
+
87
+ ```python
88
+ import acadgis as agis
89
+
90
+ sa = agis.StudyArea("Iraq").zoom_into("Babil")
91
+ sa.figure(suptitle="Study Area: Babil Governorate, Iraq")
92
+ sa.save("study_area.png", dpi=300)
93
+ ```
94
+
95
+ <p align="center">
96
+ <img src="https://raw.githubusercontent.com/riponcm/AcadGIS/main/examples/outputs/study_area_iraq.png" width="80%" alt="locator figure">
97
+ </p>
98
+
99
+ ## Install
100
+
101
+ ```bash
102
+ pip install acadgis # core (offline demo data + plotting)
103
+ pip install "acadgis[full]" # + live download, fuzzy matching, terrain, drainage
104
+ ```
105
+
106
+ Optional extras: `acadgis[download]` (any-country boundaries via `pygadm`), `acadgis[match]`
107
+ (fuzzy names), `acadgis[terrain]` (DEM relief), `acadgis[drainage]` (streams from a DEM).
108
+ Bangladesh, Iraq, India and the USA ship bundled — everything works offline.
109
+
110
+ ## What it does
111
+
112
+ - Boundaries on demand — country, state, district and sub-district, by name, from GADM.
113
+ - One-line styled maps — 12 palettes, 6 themes, north arrows, scale bars, checker borders,
114
+ graticules and legends.
115
+ - Choropleths and graduated symbols with automatic name matching (Chittagong matches
116
+ Chattogram, dropped admin-suffixes, diacritics) and `mapclassify` schemes.
117
+ - Locator insets — the country to region to detail figure with connecting arrows.
118
+ - Terrain — shaded relief and hypsometric tint from Copernicus GLO-30 (no API key), with
119
+ realistic land-to-ocean colouring.
120
+ - Hydrology — Natural Earth or dense OpenStreetMap river networks and water bodies.
121
+ - Drainage — stream networks extracted from a DEM.
122
+ - Export — PNG, PDF or SVG at any DPI.
123
+
124
+ ## Quick start
125
+
126
+ ```python
127
+ import acadgis as agis
128
+
129
+ gdf = agis.load_boundaries("Bangladesh", level="district") # auto-download + cache
130
+ agis.plot(gdf, palette="spectral", title="Bangladesh — Districts")
131
+
132
+ agis.choropleth(gdf, df, value="incidence", palette="magma") # messy names welcome
133
+
134
+ ax = agis.plot(gdf, highlight="Comilla")
135
+ agis.points(ax, survey_df, value="value", size_by="value", cmap="magma", legend=True)
136
+
137
+ dem = agis.load_dem("Bagrote Valley")
138
+ agis.relief(dem, hillshade=True, ocean_color="#cce5f0")
139
+ ```
140
+
141
+ ## Links and attribution
142
+
143
+ - Web app: https://acadgis.com
144
+ - Documentation: https://doc.acadgis.com
145
+ - Source: https://github.com/riponcm/AcadGIS
146
+ - Data: GADM (boundaries), Copernicus GLO-30 (terrain), Natural Earth and OpenStreetMap
147
+ (hydrography). Free for academic and non-commercial use — please cite the sources.
148
+
149
+ ## License
150
+
151
+ Apache License 2.0.
@@ -0,0 +1,183 @@
1
+ <div align="center">
2
+
3
+ <img src="brand/header.svg" alt="AcadGIS — publication-ready academic GIS study-area maps" width="100%">
4
+
5
+ <br><br>
6
+
7
+ [![Version](https://img.shields.io/badge/version-0.1.0-2b6cb0.svg)](https://pypi.org/project/acadgis/)
8
+ [![Python](https://img.shields.io/badge/python-3.9%2B-2d6a4f.svg)](https://pypi.org/project/acadgis/)
9
+ [![License](https://img.shields.io/badge/license-Apache--2.0-1b9aaa.svg)](LICENSE)
10
+ [![Built on](https://img.shields.io/badge/built%20on-geopandas%20%C2%B7%20matplotlib-3ad29f.svg)](https://geopandas.org)
11
+ [![Docs](https://img.shields.io/badge/docs-acadgis.com-ffb567.svg)](https://doc.acadgis.com)
12
+
13
+ <!-- After publishing to PyPI and making the repo public, swap to live badges:
14
+ [![PyPI](https://img.shields.io/pypi/v/acadgis)](https://pypi.org/project/acadgis/)
15
+ [![Downloads](https://img.shields.io/pypi/dm/acadgis)](https://pypi.org/project/acadgis/)
16
+ [![Stars](https://img.shields.io/github/stars/riponcm/AcadGIS)](https://github.com/riponcm/AcadGIS/stargazers)
17
+ -->
18
+
19
+ ### Publication-ready study area maps for research — in a few lines of Python
20
+
21
+ **[Website](https://acadgis.com)** &nbsp;&middot;&nbsp; **[Documentation](https://doc.acadgis.com)** &nbsp;&middot;&nbsp; **[PyPI](https://pypi.org/project/acadgis/)** &nbsp;&middot;&nbsp; **[Changelog](CHANGELOG.md)** &nbsp;&middot;&nbsp; **[Quick start](#quick-start)**
22
+
23
+ </div>
24
+
25
+ ---
26
+
27
+ AcadGIS is a Python package (and a no-code web app) for making **publication-ready study area
28
+ maps, choropleth maps, locator insets, terrain relief and river maps** — for research papers,
29
+ theses and reports. Name a place, add your data, and export a journal-ready figure: no QGIS,
30
+ ArcGIS or shapefiles required.
31
+
32
+ ```python
33
+ import acadgis as agis
34
+
35
+ sa = agis.StudyArea("Iraq").zoom_into("Babil")
36
+ sa.figure(suptitle="Study Area: Babil Governorate, Iraq")
37
+ sa.save("study_area.png", dpi=300)
38
+ ```
39
+
40
+ Prefer no code? The companion web app at **[acadgis.com](https://acadgis.com)** offers the
41
+ same figures with interactive editing — in the browser.
42
+
43
+ ---
44
+
45
+ ## Install
46
+
47
+ ```bash
48
+ pip install acadgis # core (offline demo data + plotting)
49
+ pip install "acadgis[full]" # + live download, fuzzy matching, terrain, drainage
50
+ ```
51
+
52
+ | Extra | Adds | For |
53
+ |-------|------|-----|
54
+ | `acadgis[download]` | `pygadm` | live boundary download for any country |
55
+ | `acadgis[match]` | `rapidfuzz` | fuzzy name matching |
56
+ | `acadgis[terrain]` | `rasterio`, `rioxarray` | DEM shaded relief / elevation maps |
57
+ | `acadgis[drainage]` | `pysheds` | stream networks from a DEM |
58
+ | `acadgis[full]` | everything above + `mapclassify` | the lot |
59
+
60
+ Bangladesh, Iraq, India and the USA ship bundled, so you can try everything offline. One
61
+ import gives you the whole stack: `agis.plt`, `agis.np`, `agis.pd`, `agis.gpd`.
62
+
63
+ ---
64
+
65
+ ## Gallery
66
+
67
+ <table>
68
+ <tr>
69
+ <td width="33%"><img src="examples/outputs/study_area_iraq.png" alt="locator figure"><br><sub>Locator figure (country to region)</sub></td>
70
+ <td width="33%"><img src="examples/outputs/india_wb_kolkata_survey.png" alt="collected data"><br><sub>Collected data &middot; graduated symbols</sub></td>
71
+ <td width="33%"><img src="examples/outputs/choropleth_bd.png" alt="choropleth"><br><sub>Choropleth with name matching</sub></td>
72
+ </tr>
73
+ <tr>
74
+ <td><img src="examples/outputs/terrain_relief.png" alt="terrain relief"><br><sub>DEM shaded relief</sub></td>
75
+ <td><img src="examples/outputs/atlas_osm_rivers.png" alt="osm rivers"><br><sub>Dense OpenStreetMap rivers</sub></td>
76
+ <td><img src="examples/outputs/coast_naples.png" alt="coast to ocean"><br><sub>Topography to the ocean</sub></td>
77
+ </tr>
78
+ <tr>
79
+ <td><img src="examples/outputs/usa_states.png" alt="usa poster"><br><sub>Poster map with capitals and insets</sub></td>
80
+ <td><img src="examples/outputs/atlas_bangladesh.png" alt="atlas style"><br><sub>Atlas-style cartography</sub></td>
81
+ <td><img src="examples/outputs/themes_grid.png" alt="themes"><br><sub>Built-in themes</sub></td>
82
+ </tr>
83
+ </table>
84
+
85
+ ---
86
+
87
+ ## Quick start
88
+
89
+ ```python
90
+ import acadgis as agis
91
+
92
+ # 1. Boundaries by friendly level name (auto-download + cache)
93
+ gdf = agis.load_boundaries("Bangladesh", level="district")
94
+ dhaka = agis.load_boundaries("Bangladesh", "district", within="Dhaka")
95
+
96
+ # 2. A styled map in one call
97
+ agis.plot(gdf, palette="spectral", title="Bangladesh — Districts")
98
+
99
+ # 3. Choropleth from a spreadsheet — messy names welcome (Chittagong matches Chattogram)
100
+ agis.choropleth(gdf, df, value="incidence", palette="magma", scheme="natural_breaks")
101
+
102
+ # 4. Collected data as graduated symbols, study city highlighted
103
+ ax = agis.plot(gdf, highlight="Comilla")
104
+ agis.points(ax, survey_df, value="value", size_by="value", cmap="magma", legend=True)
105
+
106
+ # 5. Terrain relief down to a realistic sea
107
+ dem = agis.load_dem("Bagrote Valley")
108
+ agis.relief(dem, hillshade=True, ocean_color="#cce5f0")
109
+
110
+ # 6. The signature multi-panel locator
111
+ agis.StudyArea("India", context_level="state").zoom_into(
112
+ "West Bengal", detail_level="district").figure()
113
+ ```
114
+
115
+ Every decoration is customizable — pass `True`/`False`, a style name, or a dict:
116
+
117
+ ```python
118
+ agis.plot(gdf,
119
+ north_arrow={"style": "rose", "size": 0.13, "loc": (0.9, 0.85)},
120
+ scale_bar={"style": "stepped", "length_km": 100},
121
+ border={"style": "checker"})
122
+ ```
123
+
124
+ ---
125
+
126
+ ## What it does
127
+
128
+ - **Boundaries on demand** — country, state, district and sub-district, by name, from
129
+ [GADM](https://gadm.org); cached after first use.
130
+ - **One-line styled maps** — 12 palettes, 6 themes, north arrows (4 styles), scale bars
131
+ (3 styles), checker border, graticule and legend.
132
+ - **Choropleths and graduated symbols** with automatic name matching (renames,
133
+ admin-suffixes, diacritics) and `mapclassify` schemes.
134
+ - **Locator insets** — the country to region to detail figure with connecting arrows.
135
+ - **Terrain** — shaded relief and hypsometric tint from Copernicus GLO-30 (no API key),
136
+ with realistic land-to-ocean colouring.
137
+ - **Hydrology** — Natural Earth or dense OpenStreetMap river networks and water bodies.
138
+ - **Drainage** — stream networks extracted from a DEM by flow accumulation.
139
+ - **Publication export** — PNG, PDF or SVG at any DPI.
140
+
141
+ ---
142
+
143
+ ## Documentation and tutorials
144
+
145
+ Full documentation and runnable, step-by-step tutorials live at
146
+ **[doc.acadgis.com](https://doc.acadgis.com)**:
147
+
148
+ - Quick start — load, plot, themes
149
+ - Choropleths and name matching
150
+ - Study-area locator figures
151
+ - World maps and country highlighting
152
+ - Customizing decorations (arrows, scale bars, borders)
153
+ - Terrain, hydrology and drainage
154
+ - Collected-data maps with graduated symbols
155
+
156
+ ---
157
+
158
+ ## Data and attribution
159
+
160
+ Administrative boundaries: [GADM](https://gadm.org) 4.1 (via
161
+ [`pygadm`](https://pypi.org/project/pygadm/)). Terrain: Copernicus GLO-30 (AWS Open Data).
162
+ Rivers, water and world layers: Natural Earth and OpenStreetMap (© OpenStreetMap
163
+ contributors, ODbL). All free for academic and non-commercial use — please cite the sources
164
+ in your work. See [`NOTICE`](NOTICE).
165
+
166
+ ## Citation
167
+
168
+ ```bibtex
169
+ @software{acadgis,
170
+ title = {AcadGIS: publication-ready academic GIS study-area maps},
171
+ author = {Ripon Chandra Malo},
172
+ year = {2026},
173
+ url = {https://github.com/riponcm/AcadGIS},
174
+ note = {Web app: https://acadgis.com}
175
+ }
176
+ ```
177
+
178
+ ## License
179
+
180
+ [Apache License 2.0](LICENSE) — free to use, modify and distribute, including in academic
181
+ work. If AcadGIS helps your research, a citation or a star is appreciated.
182
+
183
+ <div align="center"><sub>Built on geopandas, matplotlib and shapely — for researchers, by a researcher.</sub></div>