Hi,
Your system seems to be a Northing-Easting one
http://epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::2193
While waiting for a proper answer I would try how it would behave with flipped coordinates:
bbox: [3087000, -1000000, 10000000, 3327000]
-Jukka Rahkonen-
···
Lähettäjä: Jeremy Palmer [mailto:JPalmer@…3296…]
Lähetetty: 6. helmikuuta 2018 10:43
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] Issue Setting Origin for WMTS Tile Matrix Set
Sorry to top post, but does anyone have any advice about this?
Thanks again.
Jeremy
On 5/02/2018, at 1:09 PM, Jeremy Palmer <JPalmer@…3296…> wrote:
Hi All,
I’m trying to define a Tile Matrix Set for https://www.linz.govt.nz/data/linz-data-service/guides-and-documentation/nztm2000-map-tile-service-schema. But I’m having some trouble trying to set the origin correctly to get the correct WMTS TileMatrixSet TopLeftCorner defined for each TileMatrix entry. I need each zoom level to define TopLeftCorner as the origin of the tile grid i.e 10000000.0 -1000000.0, but when I set the min X = -1000000.0 and max y = 10000000.0 I get a WMTS capabilities document with the following:
https://gist.github.com/palmerj/a8499f4f352556c327dc3fd946347bd2
At the moment I have setup the grid as per this screen shot:
<nztm_tile_matrix_set.jpeg>
I’ve defined this same grid in other software before, like mapproxy and it’s worked ok.
NZTM:
srs: EPSG:2193
origin: nw
bbox_srs: EPSG:2193
bbox: [-1000000, 3087000, 3327000, 10000000]
res: [8960, 4480, 2240, 1120, 560, 280, 140, 70, 28, 14, 7, 2.8, 1.4, 0.7, 0.28, 0.14, 0.07]
Any help would be greatly received.
Cheers,
Jeremy
This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info@…3296…) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.
Hi Jukka,
Thanks for your reply.
On 6/02/2018, at 10:33 PM, Rahkonen Jukka (MML) <jukka.rahkonen@…6847…> wrote:
Hi,
Your system seems to be a Northing-Easting one
http://epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::2193
Yes I thought that too and tried different combination of the bbox values, but it didn’t work.
While waiting for a proper answer I would try how it would behave with flipped coordinates:
bbox: [3087000, -1000000, 10000000, 3327000]
When using this option I get the following in teh WMTS:
3087000.0 3587520.0"
Cheers,
Jeremy
This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info@…3296…) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.
On 7 February 2018 at 04:21, Jeremy Palmer <JPalmer@anonymised.com> wrote:
Hi Jukka,
Thanks for your reply.
On 6/02/2018, at 10:33 PM, Rahkonen Jukka (MML) <jukka.rahkonen@
maanmittauslaitos.fi> wrote:
Hi,
Your system seems to be a Northing-Easting one
*http://epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::2193
<http://epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::2193>\*
Yes I thought that too and tried different combination of the bbox values,
but it didn’t work.
While waiting for a proper answer I would try how it would behave with
flipped coordinates:
bbox: [3087000, -1000000, 10000000, 3327000]
When using this option I get the following in teh WMTS:
<TopLeftCorner>3087000.0 3587520.0" </TopLeftCorner>
That looks correct to me based on that bbox - the BBOX is
xmin,ymin,xmax,ymax so TopLeftCorner is Xmin,Ymax -> 3087000,3327000
Ian
Cheers,
Jeremy
------------------------------
This message contains information, which may be in confidence and may be
subject to legal privilege. If you are not the intended recipient, you must
not peruse, use, disseminate, distribute or copy this message. If you have
received this message in error, please notify us immediately (Phone 0800
665 463 <0800%20665463> or info@anonymised.com) and destroy the original
message. LINZ accepts no responsibility for changes to this email, or for
any attachments, after its transmission from LINZ. Thank You.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to
this list:
- Earning your support instead of buying it, but Ian Turton:
Earning Your Support Instead of Buying it
- The GeoServer user list posting guidelines: Community - GeoServer
userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
Home · geoserver/geoserver Wiki · GitHub
requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
geoserver-users List Signup and Options
--
Ian Turton
Hi Ian,
On 7/02/2018, at 9:45 PM, Ian Turton <ijturton@…84…> wrote:
While waiting for a proper answer I would try how it would behave with flipped coordinates:
bbox: [3087000, -1000000, 10000000, 3327000]
When using this option I get the following in teh WMTS:
3087000.0 3587520.0"
That looks correct to me based on that bbox - the BBOX is xmin,ymin,xmax,ymax so TopLeftCorner is Xmin,Ymax → 3087000,3327000
Those values were tired based on Jukka’s suggestions that the x and y might be flipped due to the ordinate axis order of EPSG:2193. What I originally had (see screenshot) was -1000000, 3087000, 3327000, 10000000 which is the correct xmin, ymin, xmax, ymax as per the NZTM2000 specification. Note the origin (top left corner) is:
Origin X: -1000000
Origin Y: 10000000
So that’s what I expect to see in the TopLeftCorner.
Cheers
Jeremy
This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info@…3296…) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.