JON GARRIDO GIS EXPERT - DESARROLLADOR GIS

DESARROLLADOR GIS FREELANCE

Enable jsonp request in geoserver

By jongarrido | septiembre 23, 2015 | 0 Comment

Hi,

In order to access wfs services through jsonp call you’ll need to enable this elemnt in your java server. In my case tomcat 7 in a ubuntu 14.04 server.

 

Access to your server and edit web.xml file of your geoserver webapp..

 

#vi /var/lib/tomcat7/webapps/geoserver/WEB-INF/web.xml

Add the next filter in the context parameters part of the document…

 

(press insert key in vi editor)

 


ENABLE_JSONP true

 

Save the documement (press «:» and type «wq»).

 

And restart tomcat.

 

/etc/init.d/tomcat7 restart

 

That’s all

 

 

 

 

 

0 Comments

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *