ah ok. if its not working for postgis at all then remove the *50 until its working in the simplest case. are you sure its seeing the height.kml file, maybe try making a description.ftl to observe that working to see if its even the right place.
also try capitalising 'cat', and/or changing 'cat' to 'xxx' to see if notices a change. also verify what you are using in your 'format_options' parameter dunno what else. -i Le 24/05/2011 1:58 PM, Gis Mage a écrit : > Hmm....verbose logging on. I don't see anything strange in the logs. > > > I've tried to remove the 'number' - it doesn't affect the result. > Tried to move *50 outside {} - then vectors become flat in google earth. > > Multiplying "cat" in the database doesn't make sense, because > height.ftl doesn't affect postgis layers AT ALL! Regardless of what's > inside a file. Is it a bug? > > Any other thoughts? > > 2011/5/24 Ivan PRICE <ivan.pr...@noveltis.fr > <mailto:ivan.pr...@noveltis.fr>> > > > 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 <ivan.pr...@noveltis.fr > <mailto:ivan.pr...@noveltis.fr> <mailto:ivan.pr...@noveltis.fr > <mailto:ivan.pr...@noveltis.fr>>> > > > 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 > Geoserver-users@lists.sourceforge.net > <mailto:Geoserver-users@lists.sourceforge.net> > <mailto:Geoserver-users@lists.sourceforge.net > <mailto:Geoserver-users@lists.sourceforge.net>> > > 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 Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users