Hey. Currently we've created a content.ftl in the directory of one of our featuretypes,. (geoserver/data/featureTypes/indicator is the path).
In this folder we have just the info.xml and content.ftl.
On a standard wms get feature info the following is an example of what is returned:
Results for FeatureType 'ptrs_Indicator1': -------------------------------------------- the_geom = [GEOMETRY (MultiPolygon) with 49 points] country_id = 37 country_name = Chad dept_id = 40900 reg_code = null status_color = null category_caption = null category_id = null --------------------------------------------
We just want to return the dept_id part so dept_id = 40900 in this case.
What do we need to do in our content template to list just the dept_id? I used this but it didn't seem to work:
<ul>
<#list features as feature>
<li>dept_id ${feature.dept_id}</li>
</#list>
</ul>
Thanks,
-Ali
Hi Ali,
Using ${feature.dept_id.value} should do the trick.
-Justin
Ali Khan wrote:
Hey. Currently we've created a content.ftl in the directory of one of
our featuretypes,. (geoserver/data/featureTypes/indicator is the path).
In this folder we have just the info.xml and content.ftl.
On a standard wms get feature info the following is an example of what
is returned:
Results for FeatureType 'ptrs_Indicator1':
-------------------------------------------- the_geom = [GEOMETRY
(MultiPolygon) with 49 points] country_id = 37 country_name = Chad
dept_id = 40900 reg_code = null status_color = null category_caption =
null category_id = null --------------------------------------------
We just want to return the dept_id part so dept_id = 40900 in this case.
What do we need to do in our content template to list just the dept_id?
I used this but it didn't seem to work:
<ul>
<#list features as feature>
<li>dept_id ${feature.dept_id}</li>
</#list>
</ul>
Thanks,
-Ali
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,46d6c905211691961014482!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
Hey. Tried the solution but I still get all the values. this is what i get when i click on a country
Results for FeatureType 'ptrs_Indicator1': -------------------------------------------- the_geom = [GEOMETRY (MultiPolygon) with 48 points] country_id = 161 country_name = Niger dept_id = 43100 reg_code = 43100 status_color = red category_caption = Adult Females category_id = 1 --------------------------------------------
Am I missing a file or doing something wrong? Do I need to edit the catalog or services file or add something special into the URL that is retrieved? Right now when a user clicks the map the following URL is called.
var url = "http://dev.myunfpa.org/geoserver/wms?bbox="\+ptrs\_Indicator1\.map\.getExtent\(\)\.toBBOX\(\)\+"&style=Indicator&format=jpeg&info\_format=text/plain&request=GetFeatureInfo&layers=geodb:\#view\_name\#&query\_layers=geodb:ptrs\_Indicator1&width=700&height=362&x="\+e\.xy\.x\+"&y="\+e\.xy\.y;
Do I need to change or add something to tell it to use content.ftl?
Justin Deoliveira wrote:
Hi Ali,
Using ${feature.dept_id.value} should do the trick.
-Justin
Ali Khan wrote:
Hey. Currently we've created a content.ftl in the directory of one of our featuretypes,. (geoserver/data/featureTypes/indicator is the path).
In this folder we have just the info.xml and content.ftl.
On a standard wms get feature info the following is an example of what is returned:
Results for FeatureType 'ptrs_Indicator1': -------------------------------------------- the_geom = [GEOMETRY (MultiPolygon) with 49 points] country_id = 37 country_name = Chad dept_id = 40900 reg_code = null status_color = null category_caption = null category_id = null --------------------------------------------
We just want to return the dept_id part so dept_id = 40900 in this case.
What do we need to do in our content template to list just the dept_id? I used this but it didn't seem to work:
<ul>
<#list features as feature>
<li>dept_id ${feature.dept_id}</li>
</#list>
</ul>
Thanks,
-Ali
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,46d6c905211691961014482!
Hi Ali,
I should have asked this earlier but what version of GeoServer are you
using? Is it 1.5.2 or greater?
Ali Khan wrote:
Hey. Tried the solution but I still get all the values. this is what i
get when i click on a country
Results for FeatureType 'ptrs_Indicator1':
-------------------------------------------- the_geom = [GEOMETRY
(MultiPolygon) with 48 points] country_id = 161 country_name = Niger
dept_id = 43100 reg_code = 43100 status_color = red category_caption =
Adult Females category_id = 1 --------------------------------------------
Am I missing a file or doing something wrong? Do I need to edit the
catalog or services file or add something special into the URL that is
retrieved? Right now when a user clicks the map the following URL is
called.
var url =
"http://dev.myunfpa.org/geoserver/wms?bbox="\+ptrs\_Indicator1\.map\.getExtent\(\)\.toBBOX\(\)\+"&style=Indicator&format=jpeg&info\_format=text/plain&request=GetFeatureInfo&layers=geodb:\#view\_name\#&query\_layers=geodb:ptrs\_Indicator1&width=700&height=362&x="\+e\.xy\.x\+"&y="\+e\.xy\.y;
Do I need to change or add something to tell it to use content.ftl?
Justin Deoliveira wrote:
Hi Ali,
Using ${feature.dept_id.value} should do the trick.
-Justin
Ali Khan wrote:
Hey. Currently we've created a content.ftl in the directory of one of
our featuretypes,. (geoserver/data/featureTypes/indicator is the path).
In this folder we have just the info.xml and content.ftl.
On a standard wms get feature info the following is an example of what
is returned:
Results for FeatureType 'ptrs_Indicator1':
-------------------------------------------- the_geom = [GEOMETRY
(MultiPolygon) with 49 points] country_id = 37 country_name = Chad
dept_id = 40900 reg_code = null status_color = null category_caption =
null category_id = null --------------------------------------------
We just want to return the dept_id part so dept_id = 40900 in this case.
What do we need to do in our content template to list just the dept_id?
I used this but it didn't seem to work:
<ul>
<#list features as feature>
<li>dept_id ${feature.dept_id}</li>
</#list>
</ul>
Thanks,
-Ali
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,46d6da3c227901849620573!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
Hey. Trying to output in text/html so as to use the .ftl settings however now i get this error:
Could not locate FeatureTypeConfig 'ptrs_Indicator1' Could not locate FeatureTypeConfig 'ptrs_Indicator1'
The query being used is this:
http://dev.myunfpa.org/geoserver/wms?HEIGHT=300&SRS=EPSG%3A4326&WIDTH=800&STYLES=&LAYERS=indicator&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-15.644531%2C-10.475548%2C124.980469%2C42.258827&X=595&Y=68&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=indicator&FEATURE_COUNT=50&srs=EPSG%3A4326&styles=&layers=indicator
Interestingly if I ask for text/plain for the info_fomrat it gives back the data with no problems.
I should add I am using a MySQL Backend is this a possible reason?
Thanks,
Ali
Hi Ali,
Strange... From the request it appears the name of the layer is
"inidcator" but the message indicates "ptrs_Indicator1".
I tried to access your server but i got forwarded to another screen
asking for a username and password. Is it visible from the outside?
Also. can you include the entire stack trace of the exception. Thanks.
-Justin
Ali Khan wrote:
Hey. Trying to output in text/html so as to use the .ftl settings
however now i get this error:
Could not locate FeatureTypeConfig 'ptrs_Indicator1' Could not locate
FeatureTypeConfig 'ptrs_Indicator1'
The query being used is this:
http://dev.myunfpa.org/geoserver/wms?HEIGHT=300&SRS=EPSG%3A4326&WIDTH=800&STYLES=&LAYERS=indicator&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-15.644531%2C-10.475548%2C124.980469%2C42.258827&X=595&Y=68&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=indicator&FEATURE_COUNT=50&srs=EPSG%3A4326&styles=&layers=indicator
Interestingly if I ask for text/plain for the info_fomrat it gives back
the data with no problems.
I should add I am using a MySQL Backend is this a possible reason?
Thanks,
Ali
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,46d7058c282452090977483!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
Its a secure server I'll look into getting a temporary user set up maybe.
The Style is indicator. the layer itself is ptrs_Indicator1 not sure if that makes a difference. below is the entire xml error.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE ServiceExceptionReport SYSTEM "http://dev.myunfpa.org:80/geoserver/schemas//wms/1.1.1/WMS_exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException>Could not locate FeatureTypeConfig 'ptrs_Indicator1'
Could not locate FeatureTypeConfig 'ptrs_Indicator1'</ServiceException> </ServiceExceptionReport>
Justin Deoliveira wrote:
Hi Ali,
Strange... From the request it appears the name of the layer is
"inidcator" but the message indicates "ptrs_Indicator1".
I tried to access your server but i got forwarded to another screen
asking for a username and password. Is it visible from the outside?
Also. can you include the entire stack trace of the exception. Thanks.
-Justin
Ali Khan wrote:
Hey. Trying to output in text/html so as to use the .ftl settings however now i get this error:
Could not locate FeatureTypeConfig 'ptrs_Indicator1' Could not locate FeatureTypeConfig 'ptrs_Indicator1'
The query being used is this:
http://dev.myunfpa.org/geoserver/wms?HEIGHT=300&SRS=EPSG%3A4326&WIDTH=800&STYLES=&LAYERS=indicator&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-15.644531%2C-10.475548%2C124.980469%2C42.258827&X=595&Y=68&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=indicator&FEATURE_COUNT=50&srs=EPSG%3A4326&styles=&layers=indicator
Interestingly if I ask for text/plain for the info_fomrat it gives back the data with no problems.
I should add I am using a MySQL Backend is this a possible reason?
Thanks,
Ali
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,46d7058c282452090977483!
Another question, we use an SSO Server. When calling WMS does it do any sort of call back to itself? Our Sysadmin thinks it might be an issue of the server blocking the callback.
Ali Khan wrote:
Its a secure server I'll look into getting a temporary user set up maybe.
The Style is indicator. the layer itself is ptrs_Indicator1 not sure if that makes a difference. below is the entire xml error.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE ServiceExceptionReport SYSTEM "http://dev.myunfpa.org:80/geoserver/schemas//wms/1.1.1/WMS_exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException>Could not locate FeatureTypeConfig 'ptrs_Indicator1'
Could not locate FeatureTypeConfig 'ptrs_Indicator1'</ServiceException> </ServiceExceptionReport>
Justin Deoliveira wrote:
Hi Ali,
Strange... From the request it appears the name of the layer is
"inidcator" but the message indicates "ptrs_Indicator1".
I tried to access your server but i got forwarded to another screen
asking for a username and password. Is it visible from the outside?
Also. can you include the entire stack trace of the exception. Thanks.
-Justin
Ali Khan wrote:
Hey. Trying to output in text/html so as to use the .ftl settings however now i get this error:
Could not locate FeatureTypeConfig 'ptrs_Indicator1' Could not locate FeatureTypeConfig 'ptrs_Indicator1'
The query being used is this:
http://dev.myunfpa.org/geoserver/wms?HEIGHT=300&SRS=EPSG%3A4326&WIDTH=800&STYLES=&LAYERS=indicator&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-15.644531%2C-10.475548%2C124.980469%2C42.258827&X=595&Y=68&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=indicator&FEATURE_COUNT=50&srs=EPSG%3A4326&styles=&layers=indicator
Interestingly if I ask for text/plain for the info_fomrat it gives back the data with no problems.
I should add I am using a MySQL Backend is this a possible reason?
Thanks,
Ali
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,46d7058c282452090977483!
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
That would be helpful. I think I will need a bit more info to diagnose
this one.
-Justin
Ali Khan wrote:
Its a secure server I'll look into getting a temporary user set up maybe.
The Style is indicator. the layer itself is ptrs_Indicator1 not sure if
that makes a difference. below is the entire xml error.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://dev.myunfpa.org:80/geoserver/schemas//wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1"> <ServiceException>Could not
locate FeatureTypeConfig 'ptrs_Indicator1'
Could not locate FeatureTypeConfig
'ptrs_Indicator1'</ServiceException> </ServiceExceptionReport>
Justin Deoliveira wrote:
Hi Ali,
Strange... From the request it appears the name of the layer is
"inidcator" but the message indicates "ptrs_Indicator1".
I tried to access your server but i got forwarded to another screen
asking for a username and password. Is it visible from the outside?
Also. can you include the entire stack trace of the exception. Thanks.
-Justin
Ali Khan wrote:
Hey. Trying to output in text/html so as to use the .ftl settings
however now i get this error:
Could not locate FeatureTypeConfig 'ptrs_Indicator1' Could not locate
FeatureTypeConfig 'ptrs_Indicator1'
The query being used is this:
http://dev.myunfpa.org/geoserver/wms?HEIGHT=300&SRS=EPSG%3A4326&WIDTH=800&STYLES=&LAYERS=indicator&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-15.644531%2C-10.475548%2C124.980469%2C42.258827&X=595&Y=68&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=indicator&FEATURE_COUNT=50&srs=EPSG%3A4326&styles=&layers=indicator
Interestingly if I ask for text/plain for the info_fomrat it gives
back the data with no problems.
I should add I am using a MySQL Backend is this a possible reason?
Thanks,
Ali
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,46d80586148791804284693!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
There can be. If your request specifies a remote SLD being published by
the same geoserver instance then one http request will make another. But
general no. There are cases in which output occurs with links back the
original server.
Ali Khan wrote:
Another question, we use an SSO Server. When calling WMS does it do any
sort of call back to itself? Our Sysadmin thinks it might be an issue of
the server blocking the callback.
Ali Khan wrote:
Its a secure server I'll look into getting a temporary user set up maybe.
The Style is indicator. the layer itself is ptrs_Indicator1 not sure
if that makes a difference. below is the entire xml error.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://dev.myunfpa.org:80/geoserver/schemas//wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1"> <ServiceException>Could
not locate FeatureTypeConfig 'ptrs_Indicator1'
Could not locate FeatureTypeConfig
'ptrs_Indicator1'</ServiceException> </ServiceExceptionReport>
Justin Deoliveira wrote:
Hi Ali,
Strange... From the request it appears the name of the layer is
"inidcator" but the message indicates "ptrs_Indicator1".
I tried to access your server but i got forwarded to another screen
asking for a username and password. Is it visible from the outside?
Also. can you include the entire stack trace of the exception. Thanks.
-Justin
Ali Khan wrote:
Hey. Trying to output in text/html so as to use the .ftl settings
however now i get this error:
Could not locate FeatureTypeConfig 'ptrs_Indicator1' Could not
locate FeatureTypeConfig 'ptrs_Indicator1'
The query being used is this:
http://dev.myunfpa.org/geoserver/wms?HEIGHT=300&SRS=EPSG%3A4326&WIDTH=800&STYLES=&LAYERS=indicator&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-15.644531%2C-10.475548%2C124.980469%2C42.258827&X=595&Y=68&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=indicator&FEATURE_COUNT=50&srs=EPSG%3A4326&styles=&layers=indicator
Interestingly if I ask for text/plain for the info_fomrat it gives
back the data with no problems.
I should add I am using a MySQL Backend is this a possible reason?
Thanks,
Ali
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,46d81411159733668746562!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org