Comments (3)
FYI we fixed this in #61 by replacing the URI by urn:ogc:def:crs:EPSG:2193
.
import rasterio
rasterio.crs.CRS.from_string("urn:ogc:def:crs:EPSG:2193") == rasterio.crs.CRS.from_user_input("https://www.opengis.net/def/crs/EPSG/0/2193")
>>> True
from morecantile.
Well it should have been "urn:ogc:def:crs:EPSG::2193"
not "urn:ogc:def:crs:EPSG:2193"
FYI it works with rasterio but not with pyproj
import pyproj
import rasterio
rasterio.crs.CRS.from_string("urn:ogc:def:crs:EPSG:2193")
>>> CRS.from_epsg(2193)
pyproj.CRS.from_user_input("urn:ogc:def:crs:EPSG:2193")
>>> CRSError: Invalid projection: urn:ogc:def:crs:EPSG:2193: (Internal Proj Error: proj_create: unrecognized format / unknown name)
rasterio.crs.CRS.from_string("urn:ogc:def:crs:EPSG::2193")
>>> CRS.from_epsg(2193)
pyproj.CRS.from_user_input("urn:ogc:def:crs:EPSG::2193")
>>>
<Projected CRS: EPSG:2193>
Name: NZGD2000 / New Zealand Transverse Mercator 2000
Axis Info [cartesian]:
- N[north]: Northing (metre)
- E[east]: Easting (metre)
Area of Use:
- name: New Zealand - North Island, South Island, Stewart Island - onshore.
- bounds: (166.37, -47.33, 178.63, -34.1)
Coordinate Operation:
- name: New Zealand Transverse Mercator 2000
- method: Transverse Mercator
Datum: New Zealand Geodetic Datum 2000
- Ellipsoid: GRS 1980
- Prime Meridian: Greenwich
from morecantile.
Interesting, so GDAL only added support for https
uris in 3.0, we do not use much (any?) gdal v2 any more so havent noticed this issue.
We took these from the OGC doc https://docs.opengeospatial.org/is/17-083r2/17-083r2.html when we imported the WebMercatorQuad
TMS, then when making this TMS we just used that standard.
from morecantile.
Related Issues (20)
- remove comments!
- Custom UTM TileMatrixSets HOT 2
- add `NZTM2000Quad` HOT 2
- Add `minmax` and `neighbors`
- add python 3.9 in CI
- mercantile 1.2 introduced some change which breaks morecantile
- add GDAL version matrix in all CI runs HOT 1
- Switch to pyproj for new morecantile major release HOT 5
- Official release of Morecantile 3.0 -> 23/09/2021 HOT 4
- Non-Earth TMS definitions HOT 4
- OGC seeks public comment on revision to the OGC Two Dimensional Tile Matrix Set and Tile Set Metadata Standard
- Wrong `_invert_axis` method result for `WorldCRS84Quad` TMS
- add `WGS1984Quad` TMS (`epsg:4326` tms)
- Misleading tiles() iterator
- Align WebMercatorQuad TMS with mercantile and GDAL
- Pip install error HOT 11
- Units other than meters and degrees HOT 3
- add python 3.10 in CI
- OGC TMS Spec 2.0 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morecantile.