You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option to disable Mercator calculation for OpenStreetMaps (#32)
* Add disable mercator optional kwarg
* Always fave filename
* Add example and update README
* Clean generated example plots
* Bump patch version
* Add image to README
* Remove obsolete save dir test
* Add unittest for disable mercator
* Consolidate osm conftest fixtures
* change order of linting in makefile test
* flake8
* Change mapper type instead of checking class var
* Flake8
* Remove incorrect desc from ocstring
* Update stand constructor docstring
* Code formatting
Copy file name to clipboardExpand all lines: README.md
+28-10Lines changed: 28 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,8 @@ plot.save()
59
59
---
60
60
## OpenStreetMaps
61
61
WKTPlot now supports the ability to integrate with OpenStreetMaps. Shape coordinates will be projected to the Mercator coordinate system, which appear to distort shape proportions compared to standard geometric projection.
62
+
63
+
If your shape data has already been projected, you can disable the Mercator calculation by setting the `disable_mercator` parameter when creating the plot object. See [Advanced Usage](#advanced-usage) for an example.
62
64
```python
63
65
# Import OpenStreetMaps plotting class
64
66
from wktplot.plots.osm import OpenStreetMapsPlot
@@ -76,26 +78,42 @@ plot.save()
76
78
---
77
79
78
80
## Advanced Usage
79
-
Example for plotting from shapefile. Shapefile is of California's county boundaries from [here](https://data.ca.gov/dataset/ca-geographic-boundaries).
81
+
Example for plotting from shapefile. Shapefile is of California's county boundaries, download from [here](https://data.ca.gov/dataset/ca-geographic-boundaries).
0 commit comments