[Geoserver-users] can't get description.ftl working

Hi all,
And thanks for this nice piece of software.
I have encountered a problem. I want to change the default ftl for the kml layer. Following the tutorial i created a description.ftl file with simple “Hello World” in my featureTypes subdirectory. But nothing happens.

I tried every kind of stupid change like changing file name, rights, folders etc…

Any idea why? (i use geoserver 1.5.1 on linux centos)

gersh

Hi gersh,

Just to verify... you put the description.ftl in the "description.ftl" file under "featureTypes/<yourFeatureType>" and not just under "featureTypes"?

Also... a bit more info about what you are getting back. Are you getting the default description back (the html table with all the attributes). Or are you getting nothing back?

Also do you see any errors logged by GeoServer?

-Justin

gershwinou wrote:

Hi all,
And thanks for this nice piece of software.
I have encountered a problem. I want to change the default ftl for the kml layer. Following the tutorial i created a description.ftl file with simple "Hello World" in my featureTypes subdirectory. But nothing happens.

I tried every kind of stupid change like changing file name, rights, folders etc...

Any idea why? (i use geoserver 1.5.1 on linux centos)

gersh
!DSPAM:4007,46a76b3e15362458217002!

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

!DSPAM:4007,46a76b3e15362458217002!

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,46a76b3e15362458217002!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Hmmm... tricky. Can you include the following info:

1. the exact request you are making (the url)
2. the structure of your data directory (perhaps the output of "find ." from the root of it)
3. the kml you are getting back

Hopefully with that info we can figure out what is going on.

-Justin

gershwinou wrote:

Hey Justin,
Nope put the file under featureTypes/<yourFeatureType>
getting the default table back. I tried in topp:states layer as well, does not work either
my feature is from postgis.
Thanks a lot for the reply

On 25/07/07, *Justin Deoliveira* <jdeolive@anonymised.com <mailto:jdeolive@anonymised.com>> wrote:

    Hi gersh,

    Just to verify... you put the description.ftl in the "description.ftl"
    file under "featureTypes/<yourFeatureType>" and not just under
    "featureTypes"?

    Also... a bit more info about what you are getting back. Are you getting
    the default description back (the html table with all the attributes).
    Or are you getting nothing back?

    Also do you see any errors logged by GeoServer?

    -Justin

    gershwinou wrote:
     > Hi all,
     > And thanks for this nice piece of software.
     > I have encountered a problem. I want to change the default ftl
    for the
     > kml layer. Following the tutorial i created a description.ftl
    file with
     > simple "Hello World" in my featureTypes subdirectory. But nothing
    happens.
     >
     > I tried every kind of stupid change like changing file name, rights,
     > folders etc...
     >
     > Any idea why? (i use geoserver 1.5.1 on linux centos)
     >
     > gersh
     >
    ------------------------------------------------------------------------

     >
    -------------------------------------------------------------------------
     > This SF.net email is sponsored by: Splunk Inc.
     > Still grepping through log files to find problems? Stop.
     > Now Search log events and configuration files using AJAX and a
    browser.
     > Download your FREE copy of Splunk now >> http://get.splunk.com/
     >
     > !DSPAM:4007,46a76b3e15362458217002!
     >
    ------------------------------------------------------------------------

     >
     > _______________________________________________
     > Geoserver-users mailing list
     > Geoserver-users@lists.sourceforge.net
    <mailto:Geoserver-users@lists.sourceforge.net>
     > https://lists.sourceforge.net/lists/listinfo/geoserver-users
     >
     > !DSPAM:4007,46a76b3e15362458217002!

    --
    Justin Deoliveira
    The Open Planning Project
    http://topp.openplans.org

!DSPAM:4007,46a76e1623362458217002!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

I notice that the url include has KMSCORE=0 which means always return raster. That would probably be the problem.

However this network link does not match the one you included in your attachment so i am not sure. Does the kml you get back have placemark icons that you can click on?

Also can you keep your replies on the public mailing list (reply-all instead of reply). Thanks.

gershwinou wrote:

* the wms call in my network link:
http://fishnet-dev.jrc.it:4326/geoserver/wms?service=WMS&request=GetMap&format=application/vnd.google-earth.kml+XML&width=1024&height=1024&srs=EPSG:4326&layers=fishreg:testgepolygon&styles=polygon&KMScore=0&KMAttr=true&legend=false
(server in intranet so you can't try it, sorry)
* the structure of the data feature type: find data_dir/ | grep featureTypes
data_dir/featureTypes
data_dir/featureTypes/tasmania_cities
data_dir/featureTypes/tasmania_cities/info.xml
data_dir/featureTypes/states
data_dir/featureTypes/states/info.xml
data_dir/featureTypes/states/description.ftl
data_dir/featureTypes/DS_poi_poi
data_dir/featureTypes/DS_poi_poi/info.xml
data_dir/featureTypes/tasmania_roads
data_dir/featureTypes/tasmania_roads/info.xml
data_dir/featureTypes/DS_giant_polygon_giant_polygon
data_dir/featureTypes/DS_giant_polygon_giant_polygon/info.xml
data_dir/featureTypes/Biological_vmscalc_gis
data_dir/featureTypes/Biological_vmscalc_gis/info.xml
data_dir/featureTypes/fishnetdevCopy_testgepoint
data_dir/featureTypes/fishnetdevCopy_testgepoint/info.xml
data_dir/featureTypes/fishnetdevCopy_testgepolygon
data_dir/featureTypes/fishnetdevCopy_testgepolygon/description.ftl.back
data_dir/featureTypes/fishnetdevCopy_testgepolygon/info.xml
data_dir/featureTypes/fishnetdevCopy_testgepolygon/kmlPlacemarkDescription.ftl
data_dir/featureTypes/fishnetdevCopy_testgepolygon/description.ftl
data_dir/featureTypes/tasmania_state_boundaries
data_dir/featureTypes/tasmania_state_boundaries/info.xml
data_dir/featureTypes/tasmania_water_bodies
data_dir/featureTypes/tasmania_water_bodies/info.xml
data_dir/featureTypes/fishnetdevCopy_testwfs
data_dir/featureTypes/fishnetdevCopy_testwfs/info.xml
data_dir/featureTypes/fishnetdevCopy_testgelinestring
data_dir/featureTypes/fishnetdevCopy_testgelinestring/info.xml
data_dir/featureTypes/DS_poly_landmarks_poly_landmarks
data_dir/featureTypes/DS_poly_landmarks_poly_landmarks/info.xml
data_dir/featureTypes/DS_tiger_roads_tiger_roads
data_dir/featureTypes/DS_tiger_roads_tiger_roads/info.xml

and the kml i get back is attached (for topp:states layer)

thanks in advance

Gersh

On 25/07/07, *Justin Deoliveira* < jdeolive@anonymised.com <mailto:jdeolive@anonymised.com>> wrote:

    Hmmm... tricky. Can you include the following info:

    1. the exact request you are making (the url)
    2. the structure of your data directory (perhaps the output of "find ."
    from the root of it)
    3. the kml you are getting back

    Hopefully with that info we can figure out what is going on.

    -Justin

    gershwinou wrote:
     > Hey Justin,
     > Nope put the file under featureTypes/<yourFeatureType>
     > getting the default table back. I tried in topp:states layer as well,
     > does not work either
     > my feature is from postgis.
     > Thanks a lot for the reply
     >
     > On 25/07/07, *Justin Deoliveira* < jdeolive@anonymised.com
    <mailto:jdeolive@anonymised.com>
     > <mailto: jdeolive@anonymised.com <mailto:jdeolive@anonymised.com>>>
    wrote:
     >
     > Hi gersh,
     >
     > Just to verify... you put the description.ftl in the
    "description.ftl"
     > file under "featureTypes/<yourFeatureType>" and not just under
     > "featureTypes"?
     >
     > Also... a bit more info about what you are getting back. Are
    you getting
     > the default description back (the html table with all the
    attributes).
     > Or are you getting nothing back?
     >
     > Also do you see any errors logged by GeoServer?
     >
     > -Justin
     >
     > gershwinou wrote:
     > > Hi all,
     > > And thanks for this nice piece of software.
     > > I have encountered a problem. I want to change the default ftl
     > for the
     > > kml layer. Following the tutorial i created a description.ftl
     > file with
     > > simple "Hello World" in my featureTypes subdirectory. But
    nothing
     > happens.
     > >
     > > I tried every kind of stupid change like changing file
    name, rights,
     > > folders etc...
     > >
     > > Any idea why? (i use geoserver 1.5.1 on linux centos)
     > >
     > > gersh
     > >
     > ------------------------------------------------------------------------

     >
     > >
     > -------------------------------------------------------------------------
     > > This SF.net email is sponsored by: Splunk Inc.
     > > Still grepping through log files to find problems? Stop.
     > > Now Search log events and configuration files using AJAX and a
     > browser.
     > > Download your FREE copy of Splunk now >> http://get.splunk.com/
     > >
     > ------------------------------------------------------------------------
     >
     > >
     > > _______________________________________________
     > > 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
    <https://lists.sourceforge.net/lists/listinfo/geoserver-users&gt;
     > >
     > > !DSPAM:4007,46a76b3e15362458217002!
     >
     > --
     > Justin Deoliveira
     > The Open Planning Project
     > http://topp.openplans.org
     >
     > !DSPAM:4007,46a76e1623362458217002!

    --
    Justin Deoliveira
    The Open Planning Project
    http://topp.openplans.org

!DSPAM:4007,46a7739f33341849620573!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org