[Geoserver-users] Elevation WMS

Hi,

I've instaled the GeoServer Version 8-SNAPSHOT (rev 38629) and I want to test Elavation WMS funcionality.How to do it - publish elevation WMS.
My question is: What type of source file do I need to publish? Currently I have 16 bit grayscale tiff, but I can't active Elevation - Cannot enable, no attribute of type Number found.

Regards
Pawel Precikowski

On Wed, Mar 21, 2012 at 3:00 PM, Pawel Precikowski <pprecikowski@anonymised.com> wrote:

Hi,

I’ve instaled the GeoServer Version 8-SNAPSHOT (rev 38629) and I want to test Elavation WMS funcionality.How to do it - publish elevation WMS.
My question is: What type of source file do I need to publish? Currently I have 16 bit grayscale tiff, but I can’t active Elevation - Cannot enable, no attribute of type Number found.

Elevation works against mosaics where each tile of the mosaic is associated to a different elevation value
(e.g., think air temperature maps at different heights).

It is not a mean to select a subset of pixels from a DEM layer

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf


My source elevation data are DTM in IMG, TiFF or ASC files.

I want to publish it as elevation WMS and display it in 3D window.

Pawel precikowski

Dnia 21-03-2012 o godz. 16:01 Andrea Aime napisa³(a):

On Wed, Mar 21, 2012 at 3:00 PM, Pawel Precikowski <pprecikowski@anonymised.com> wrote:

Hi,

I’ve instaled the GeoServer Version 8-SNAPSHOT (rev 38629) and I want to test Elavation WMS funcionality.How to do it - publish elevation WMS.
My question is: What type of source file do I need to publish? Currently I have 16 bit grayscale tiff, but I can’t active Elevation - Cannot enable, no attribute of type Number found.

Elevation works against mosaics where each tile of the mosaic is associated to a different elevation value
(e.g., think air temperature maps at different heights).

It is not a mean to select a subset of pixels from a DEM layer

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf


On Wed, Mar 21, 2012 at 4:50 PM, Pawel Precikowski <pprecikowski@anonymised.com> wrote:

My source elevation data are DTM in IMG, TiFF or ASC files.

I want to publish it as elevation WMS and display it in 3D window.

I don’t think WMS is the right protocol then, WMS can only color pixels at different
elevations in different colors, but cannot subset them nor show a 3D view of them.
There is some experimentation on 3D viewers by OGC but afaik it has not reached
the state of being an official standard, and GeoServer does not implement it anyways.

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf


Does Geoserwer WMS support grayscale 16bit PNG?
If so, I can create as input grayscale PNG16bit file where pixel value is elevation between 0-65536.

  1. Uploaded it to GeoServer. The Geoserver WMS sholud public gray 16bit PNG image format. It is a solution is possible?

PPrecikowski

Dnia 21-03-2012 o godz. 17:10 Andrea Aime napisa³(a):

On Wed, Mar 21, 2012 at 4:50 PM, Pawel Precikowski <pprecikowski@anonymised.com> wrote:

My source elevation data are DTM in IMG, TiFF or ASC files.

I want to publish it as elevation WMS and display it in 3D window.

I don’t think WMS is the right protocol then, WMS can only color pixels at different
elevations in different colors, but cannot subset them nor show a 3D view of them.
There is some experimentation on 3D viewers by OGC but afaik it has not reached
the state of being an official standard, and GeoServer does not implement it anyways.

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf


On Thu, Mar 22, 2012 at 9:11 AM, Pawel Precikowski <pprecikowski@anonymised.com> wrote:

Does Geoserwer WMS support grayscale 16bit PNG?
If so, I can create as input grayscale PNG16bit file where pixel value is
elevation between 0-65536.

1. Uploaded it to GeoServer. The Geoserver WMS sholud public gray 16bit
PNG image format. It is a solution is possible?

Generally speaking WMS is meant to publish data "painted", if you want
to extract raw data the right protocol is WCS.

That said, the above might work, but I'm not 100% sure since I've never tried
out that particular case.

Cheers
Andrea

--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

Most elevation data you can paint to 16-bit without much loss of fidelity,
depending on your range of values. For (the very flat) Ohio terrain we
have, the range of values is from ~500ft to ~1500ft, so over a range of 1000
ft, we can paint values from 0-65535, meaning our precision is about 0.015
feet, which is more than adequate. We've had some use cases where our tool
of choice could only handle 16-bit data, so it made sense to do the
translation. Your client software would need to know how to translate that
range back into your real range, I would guess. It might be simpler to just
use WCS as Andrea suggests.

Best,
Steve

Stephen Mather
Geographic Information Systems (GIS) Manager
(216) 635-3243
svm@anonymised.com
clevelandmetroparks.com

-----Original Message-----
From: Andrea Aime [mailto:andrea.aime@anonymised.com]
Sent: Thursday, March 22, 2012 5:26 AM
To: Pawel Precikowski
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Elevation WMS

On Thu, Mar 22, 2012 at 9:11 AM, Pawel Precikowski <pprecikowski@anonymised.com>
wrote:

Does Geoserwer WMS support grayscale 16bit PNG?
If so, I can create as input grayscale PNG16bit file where pixel value is
elevation between 0-65536.

1. Uploaded it to GeoServer. The Geoserver WMS sholud public gray

16bit

PNG image format. It is a solution is possible?

Generally speaking WMS is meant to publish data "painted", if you want
to extract raw data the right protocol is WCS.

That said, the above might work, but I'm not 100% sure since I've never
tried
out that particular case.

Cheers
Andrea

--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

----------------------------------------------------------------------------
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

We are trying to do the same thing. Did you ever figure out if GeoServer can return 16bit PNG from a Store containing elevation data?

Pawel Precikowski wrote
Does Geoserwer WMS support grayscale 16bit PNG? If so, I can create as input grayscale PNG16bit file where pixel value is elevation between 0-65536. 1. Uploaded it to GeoServer. The Geoserver WMS sholud public gray 16bit PNG image format. It is a solution is possible? PPrecikowski Dnia 21-03-2012 o godz. 17:10 Andrea Aime napisał(a): On Wed, Mar 21, 2012 at 4:50 PM, Pawel Precikowski < [hidden email] > wrote: My source elevation data are DTM in IMG, TiFF or ASC files. I want to publish it as elevation WMS and display it in 3D window. I don’t think WMS is the right protocol then, WMS can only color pixels at different elevations in different colors, but cannot subset them nor show a 3D view of them. There is some experimentation on 3D viewers by OGC but afaik it has not reached the state of being an official standard, and GeoServer does not implement it anyways. Cheers Andrea


View this message in context: Re: Elevation WMS
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Fri, Jun 22, 2012 at 5:56 PM, mortac8 <ashley_c_mort@anonymised.com> wrote:

We are trying to do the same thing. Did you ever figure out if GeoServer can return 16bit PNG from a Store containing elevation data?

Pawel Precikowski wrote
Does Geoserwer WMS support grayscale 16bit PNG? If so, I can create as input grayscale PNG16bit file where pixel value is elevation between 0-65536. 1. Uploaded it to GeoServer. The Geoserver WMS sholud public gray 16bit PNG image format. It is a solution is possible?

WMS is about depicting data, not about returning it in its raw format.

We could modify WMS to become also a raw data server,
but that would required coding changes from the ground (geotools) up (geoserver output format
encoders), as well as a new type of SLD “symbolizer” that actually does not alter data (so it would
also require changes to the geotools style api, and SLD parsers and encoders).
It’s doable, but it needs to be sponsored.

Cheers
Andrea


Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

Thanks for the response! What is my best option if I want to get 16bit elevation tiles (from a DTED store) from GeoServer? Do I need to use WCS to request TIFF images?

On 6/23/2012 5:30 AM, Andrea Aime wrote:

On Fri, Jun 22, 2012 at 5:56 PM, mortac8 <ashley_c_mort@anonymised.com <mailto:ashley_c_mort@anonymised.com>> wrote:

    We are trying to do the same thing. Did you ever figure out if
    GeoServer can return 16bit PNG from a Store containing elevation
    data?

        Pawel Precikowski wrote
        Does Geoserwer WMS support grayscale 16bit PNG? If so, I can
        create as input grayscale PNG16bit file where pixel value is
        elevation between 0-65536. 1. Uploaded it to GeoServer.
        The Geoserver WMS sholud public gray 16bit PNG image format.
        It is a solution is possible?

WMS is about depicting data, not about returning it in its raw format.

We could modify WMS to become also a raw data server,
but that would required coding changes from the ground (geotools) up (geoserver output format
encoders), as well as a new type of SLD "symbolizer" that actually does not alter data (so it would
also require changes to the geotools style api, and SLD parsers and encoders).
It's doable, but it needs to be sponsored.

Cheers
Andrea

--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

--
Ashley Mort
Sr. Software Engineer
Raytheon - Intelligence and Information Systems
972-205-5165 (office)
814-571-3039 (cell)

On Mon, Jun 25, 2012 at 6:21 PM, Ashley Mort <ashley_c_mort@anonymised.com> wrote:

Thanks for the response! What is my best option if I want to get 16bit elevation tiles (from a DTED store) from GeoServer? Do I need to use WCS to request TIFF images?

Yep

Cheers
Andrea


Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

Hi Andrea,
  Can you provide more details on how to get GeoServer to deliver a 16bit
GeoTIFF? I've tried using both WMS and WCS services, but I keep getting an
8 bit format returned from GeoServer. My data store is 16 bit elevation
data. Can you help with this? FYI, we'd really like to use GeoServer, but
we really need to get the 16 bit data out in order to continue working with
GeoServer.
  Regards,
  Debbie

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Elevation-WMS-tp4640677p4985339.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Mon, Jul 2, 2012 at 3:11 PM, djv <djv@anonymised.com.> wrote:

Hi Andrea,
Can you provide more details on how to get GeoServer to deliver a 16bit
GeoTIFF? I’ve tried using both WMS and WCS services, but I keep getting an
8 bit format returned from GeoServer. My data store is 16 bit elevation
data. Can you help with this? FYI, we’d really like to use GeoServer, but
we really need to get the 16 bit data out in order to continue working with
GeoServer.

Returning raw 16 bits out of WMS is not something a WMS is supposed to do,
but WCS should work, if it does not please open a bug report on jira.codehaus.org
including the origin data you used and the WCS request that failed to deliver
a 16 bit TIFF file

Cheers
Andrea


Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf