Skip to content

Commit

Permalink
update with latest from master
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Aug 20, 2021
2 parents eaa0e13 + 10e8537 commit 417a3c3
Show file tree
Hide file tree
Showing 24 changed files with 807 additions and 48 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/

# PyCharm:
.idea
23 changes: 23 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@

## 2.1.4 (2021-08-20)

* add **NZTM2000Quad** tile matrix set from LINZ (author @blacha, https://github.com/developmentseed/morecantile/pull/57)
* add **quadkey** supports (@author adrian-knauer, https://github.com/developmentseed/morecantile/pull/56)

```python
import morecantile

tms = morecantile.tms.get("WebMercatorQuad")

# Tile to Quadkey
tms.quadkey(486, 332, 10)
>>> "0313102310"

# Quadkey to Tile
tms.quadkey_to_tile("0313102310")
>>> Tile(486, 332, 10)
```

* update `NZTM2000*` CRS uri from `https://www.opengis.net/def/crs/EPSG/0/2193` to `urn:ogc:def:crs:EPSG:2193` (https://github.com/developmentseed/morecantile/pull/61)

## 2.1.3 - Doesn't exists

## 2.1.2 (2021-05-18)

* fix wrong TMS boundingBox definition when using inverted CRS (https://github.com/developmentseed/morecantile/pull/53)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ $ pip install git+https://github.com/developmentseed/morecantile.git
- **EuropeanETRS89_LAEAQuad**: ETRS89-extended / LAEA Europe - EPGS:3035
- **LINZAntarticaMapTilegrid**: LINZ Antarctic Map Tile Grid (Ross Sea Region) - EPSG:5482
- **NZTM2000**: LINZ NZTM2000 Map Tile Grid - EPSG:2193
- **NZTM2000Quad**: LINZ NZTM2000 Map Tile Grid - EPSG:2193
- **UPSAntarcticWGS84Quad**: Universal Polar Stereographic WGS 84 Quad for Antarctic - EPSG:5042
- **UPSArcticWGS84Quad**: Universal Polar Stereographic WGS 84 Quad for Arctic - EPSG:5041
- **UTM31WGS84Quad**: Example of UTM grid - EPSG:32631
Expand Down
3 changes: 3 additions & 0 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Options:
- CanadianNAD83_LCC
- UPSArcticWGS84Quad
- NZTM2000
- NZTM2000Quad
- UTM31WGS84Quad
- UPSAntarcticWGS84Quad
- WorldMercatorWGS84Quad
Expand Down Expand Up @@ -91,6 +92,7 @@ Options:
- CanadianNAD83_LCC
- UPSArcticWGS84Quad
- NZTM2000
- NZTM2000Quad
- UTM31WGS84Quad
- UPSAntarcticWGS84Quad
- WorldMercatorWGS84Quad
Expand Down Expand Up @@ -149,6 +151,7 @@ Options:
- CanadianNAD83_LCC
- UPSArcticWGS84Quad
- NZTM2000
- NZTM2000Quad
- UTM31WGS84Quad
- UPSAntarcticWGS84Quad
- WorldMercatorWGS84Quad
Expand Down
1 change: 1 addition & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ print(morecantile.tms.list())
'CanadianNAD83_LCC',
'UPSArcticWGS84Quad',
'NZTM2000',
'NZTM2000Quad',
'UTM31WGS84Quad',
'UPSAntarcticWGS84Quad',
'WorldMercatorWGS84Quad',
Expand Down
2 changes: 1 addition & 1 deletion morecantile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""

__version__ = "2.1.2"
__version__ = "2.1.4"

from .commons import BoundingBox, Coords, Tile # noqa
from .defaults import tms # noqa
Expand Down
6 changes: 3 additions & 3 deletions morecantile/data/CanadianNAD83_LCC.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"identifier": "CanadianNAD83_LCC",
"boundingBox": {
"type": "BoundingBoxType",
"crs": "http://www.opengis.net/def/crs/EPSG/0/3978",
"crs": "urn:ogc:def:crs:EPSG::3978",
"lowerCorner": [
-7786476.885838887,
-5153821.09213678
Expand All @@ -14,7 +14,7 @@
7928343.534071138
]
},
"supportedCRS": "http://www.opengis.net/def/crs/EPSG/0/3978",
"supportedCRS": "urn:ogc:def:crs:EPSG::3978",
"tileMatrix": [
{
"type": "TileMatrixType",
Expand Down Expand Up @@ -355,4 +355,4 @@
"matrixHeight": 2625811
}
]
}
}
6 changes: 3 additions & 3 deletions morecantile/data/EuropeanETRS89_LAEAQuad.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"identifier": "EuropeanETRS89_LAEAQuad",
"boundingBox": {
"type": "BoundingBoxType",
"crs": "http://www.opengis.net/def/crs/EPSG/0/3035",
"crs": "urn:ogc:def:crs:EPSG::3035",
"lowerCorner": [
1000000.0,
2000000.0
Expand All @@ -14,7 +14,7 @@
5500000.0
]
},
"supportedCRS": "http://www.opengis.net/def/crs/EPSG/0/3035",
"supportedCRS": "urn:ogc:def:crs:EPSG::3035",
"tileMatrix": [
{
"type": "TileMatrixType",
Expand Down Expand Up @@ -225,4 +225,4 @@
"matrixHeight": 32768
}
]
}
}
2 changes: 1 addition & 1 deletion morecantile/data/LINZAntarticaMapTilegrid.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "TileMatrixSetType",
"title": "LINZ Antarctic Map Tile Grid (Ross Sea Region)",
"identifier": "LINZAntarticaMapTilegrid",
"supportedCRS": "http://www.opengis.net/def/crs/EPSG/0/5482",
"supportedCRS": "urn:ogc:def:crs:EPSG::5482",
"tileMatrix": [
{
"type": "TileMatrixType",
Expand Down
6 changes: 3 additions & 3 deletions morecantile/data/NZTM2000.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"title": "LINZ NZTM2000 Map Tile Grid",
"abstract": "See https://www.linz.govt.nz/data/linz-data-service/guides-and-documentation/nztm2000-map-tile-service-schema",
"identifier": "NZTM2000",
"supportedCRS": "http://www.opengis.net/def/crs/EPSG/0/2193",
"supportedCRS": "urn:ogc:def:crs:EPSG::2193",
"boundingBox": {
"type": "BoundingBoxType",
"crs": "http://www.opengis.net/def/crs/EPSG/0/2193",
"crs": "urn:ogc:def:crs:EPSG::2193",
"lowerCorner": [
3087000,
274000
Expand Down Expand Up @@ -239,4 +239,4 @@
"matrixHeight": 512000
}
]
}
}
Loading

0 comments on commit 417a3c3

Please sign in to comment.