On Mon, Mar 19, 2012 at 9:18 AM, Robert Buckley <[email protected]>wrote:
> Hi,
>
> I have a DEM which I exported as geotiff and uploaded to geoserver and am
> currently serving as wms. The gdalinfo output is as follows...
>
> Although the image is coloured, the colorInterp=Gray?.....When I do a
> getFeature query, the only field that appers is called "grey_index"...I
> assume this is related!
>
> The height is however correct when I do the query...so I am a bit confused
> as to why the z value gets put into the grey_index field...
>
> I would ideally like the field to be called "elevation"...is there anyway
> I can change the name of the field from "grey_index" to "elevation" and if
> not, how can I influence the field names in a geotiff?
>
There is no way to do that at present, but patches in that directions would
be welcomed.
If you are using HTML as your GetFeatureInfo output have a look at rolling
a custom
freemarker template for that layer. The other formats (text, gml) do not
have templates,
so they can't be changed
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users