hm. have you tried moving the *50 outside of the {} symbols, remove the 
'number'.. turn on verbose logging see if theres anything interesting.  
If you are using postgis then you could always make a view with the 
scaling of CAT already done.

-i



Le 24/05/2011 12:38 PM, Gis Mage a écrit :
> Ivan, hi!
> Thanks for a tip, but changing "value" to "rawValue" doesn't do anything.
> Still all the features have one fixed height.
>
> Any clues?
>
> 2011/5/24 Ivan PRICE <[email protected] 
> <mailto:[email protected]>>
>
>     gday gis mage,
>
>     i vaguely remember having problems with ftl templates until i read
>     this bit :
>
>     
> http://docs.geoserver.org/latest/en/user/tutorials/GetFeatureInfo/index.html#advanced-formating
>
>     specifically where they talk about using '
>     ${attribute*.rawValue*'.. it could be that you are effectively
>     multiplying a string by a number which doesn't work withou
>     recasting (although i see you are using the word 'number'
>     there)... just a guess.
>
>     -i
>
>
>
>
>
>     Le 24/05/2011 11:48 AM, Gis Mage a écrit :
>
>         Hello list!
>
>         I've got some problems using a height.ftl template.
>         I have a postgis table with linestring geometry and a
>         shapefile with the same data.
>         The elevation attribute is called "cat".
>
>         I add a height.ftl file to my layer folder in geoserver data dir.
>         In the file I have:
>         ${cat.value?number*50}
>
>         When I add a network link to google earth, i get:
>         Layer from postgis - is shown with vector lines draped on a
>         globe surface without any extrusion.
>         Layer from shapefile - is shown with vector lines with fixed
>         extrusion. Every feature has a height of 4350 meters.
>
>         Inspecting kml objects in GE, I've noticed, that every feature
>         has tags:
>
>         <altitude>0</altitude>
>         <extrude>1</extrude>
>         <altitudeMode>relativeToGround</altitudeMode>
>
>         What am I doing wrong?
>         Thanks for your help.
>
>
>         
> ------------------------------------------------------------------------------
>         vRanger cuts backup time in half-while increasing security.
>         With the market-leading solution for virtual backup and recovery,
>         you get blazing-fast, flexible, and affordable data protection.
>         Download your free trial now.
>         http://p.sf.net/sfu/quest-d2dcopy1
>
>
>         _______________________________________________
>         Geoserver-users mailing list
>         [email protected]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to