Hi,
I did not notice that reprojection happens. I had a look at the CRS extension
standard. First thing that it says is that range set values should not change
without CRS change.
“The GetCoverage request is extended with two optional parameters indicating
the CRSs for
subsetting coordinates and for the result coverage. If these parameters are
omitted then all
access will be performed in the coverage’s Native CRS (as reported in its
Coverage
Description).
Note This normally ensures that the coverage’s unchanged range set values are
retrieved, assuming
that no other operations than subsetting is performed in the GetCoverage
request.”
Then it says that server can do whatever it likes with resampling
“No statement is made in this specification about the interpolation method
applied by the
server in the course of the CRS transformation. A server is free to employ any
interpolation
method during CRS transformation, and information about the interpolation
applied may not
be accessible to the client. While the interpolation method applied may change
over requests,
and different interpolation methods may be applied to different range
components of a
particular coverage, a server should not change interpolation across the domain
of coverage
during execution of a single coverage CRS transformation.”
And this probably explains what should happen with extents and pixel size if
reader can interpret it (I couldn’t yet).
“The range values of the response to a successful GetCoverage request
containing an
outputCrs parameter shall be determined according to the following conceptual
evaluation model: Take the bounding box of the request’s subsetting parameter
(or the full
coverage bounding box if no subsetting was specified in the request);
re-project this
bounding box to the output CRS provided; generate the result image extent as
the smallest
bounding box around the reprojected subsetting box; fill this new image extent
with pixel
values re-projected from the coverage’s Native CRS to the output CRS in a way
that, for each
axis, the smallest distance between any two reprojected grid points is used as
offset
(including all interpolation and resampling necessary) unless specified
otherwise by further
request parameters.
Note Request parameters dictating a different behaviour wrt. grid point offset
are defined in the
WCS Scaling & Interpolation extension specification”
I have a feeling that without using those parameters from scaling and
interpolation extensions it is not at all guaranteed that the result is totally
predictable and identical for all WCS servers.
-Jukka Rahkonen-
Lähettäjä: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] Puolesta Andrea
Aime
Lähetetty: 11. elokuuta 2017 12:43
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahko...@maanmittauslaitos.fi>
Kopio: anna-lena.h...@bkg.bund.de; geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WCS returns wrong GeoTiffs
On Fri, Aug 11, 2017 at 11:32 AM, Rahkonen Jukka (MML)
<jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>>
wrote:
Hi,
I would have a try with SCALESIZE and SCALEEXTENT parameters of the scaling
extension https://portal.opengeospatial.org/files/12-039. In theory
GetCoverage should keep the native pixel size but it may be that GeoServer does
not really know what the native pixel size is.
I don't have an answer for the original question, but mind, there is
reprojection involved here, http://epsg.io/31467 is not UTM32N.
I don't believe there is in the spec a requirement to maintain the native
resolution in this case, but I may be wrong.
Cheers
Andrea
--
Regards,
Andrea Aime
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo
è consentito esclusivamente al destinatario del messaggio, per le finalità
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro
sistema. Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse,
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the
attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act (Legislative
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in
accord with its purpose, any disclosure, reproduction, copying, distribution,
or either dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the intended
recipient, please contact immediately the sender by telephone, fax or e-mail
and delete the information in this message that has been received in error. The
sender does not give any warranty or accept liability as the content, accuracy
or completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.
------------------------------------------------------------------------------
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:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users