Re: [Geoserver-users] GetFeatureInfo to Geoserver

2014-06-27 Thread raphsus
main.js http://osgeo-org.1560.x6.nabble.com/file/n5148071/main.js  
I am uploading the full java script code.

Thanks 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GetFeatureInfo-to-Geoserver-tp3802214p5148071.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GetFeatureInfo to Geoserver

2014-06-27 Thread raphsus
I must mention that i do not get the error messages when i run the
application on local host. The error messages only appear when i run the
application on the server machine which would be used for hosting the
application. The operating system of the server machine is 'windows server
2008 standard'. When running on local host for the 'layers' bit if the code
(copied above) i just have the work space name only, i did not spell out
each layer name, and i do not get any error message. 
I don't know if it is the code or if it is a machine related problem. 

Thanks  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GetFeatureInfo-to-Geoserver-tp3802214p5148075.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GetFeatureInfo to Geoserver

2014-06-27 Thread raphsus
Thanks for your response. I have copied the bit of code below. For the Layers
bit of the code i have tried 3 different things, 
1) i first tried only including the workspace name 'mapapp', my application
opens correctly but i get the following error message: 
serviceexception code=LayerNotDefined locator=layers
  Could not find layer mapapp:mapapp
/serviceexception
2) Then i decided to spell out the layers i want to query, (in the code
below it is commented out). I want to query 4 out of the 5 layers, so i
comment the Layers: 'mapapp',, and tried typing in each of the layers
name, in this case i get the following error
QUERY_LAYERS contains layers not cited in LAYERS. It should be a proper
subset of those instead
In both cases above my application works but the messages show up in the
bottom when the feature is clicked, i have attached screenshots of both the
error messages. 
http://osgeo-org.1560.x6.nabble.com/file/n5148070/error2.jpg 
http://osgeo-org.1560.x6.nabble.com/file/n5148070/error1.jpg 

CODE IS BELOW

// support GetFeatureInfo
map.events.register('click', map, function (e) {
document.getElementById('nodelist').innerHTML = Loading... please
wait...;
var params = {
REQUEST: GetFeatureInfo,
EXCEPTIONS: application/vnd.ogc.se_xml,
BBOX: map.getExtent().toBBOX(),
SERVICE: WMS,
INFO_FORMAT: 'text/html',
QUERY_LAYERS: map.layers[0].params.LAYERS,
FEATURE_COUNT: 50,
   Layers: 'mapapp',
//Layers:'mapapp:completed_projects_phd_mphil,mapapp:completed_projects_msc,mapapp:projectsinprogress_phd_mres,mapapp:searg_reports,
mapapp:se_asia',
//Layers:'mapapp:completed_projects_phd_mphil,mapapp:completed_projects_msc,mapapp:projectsinprogress_phd_mres,mapapp:searg_reports',
WIDTH: map.size.w,
HEIGHT: map.size.h,
format: format,
styles: map.layers[0].params.STYLES,
srs: map.layers[0].params.SRS
};

Thanks 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GetFeatureInfo-to-Geoserver-tp3802214p5148070.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GetFeatureInfo to Geoserver

2014-06-25 Thread raphsus
My simple application gives me the following error
QUERY_LAYERS contains layers not cited in LAYERS. It should be a proper
subset of those instead. Yes, i do not want to query all layers so under
the 'layers' parameter under 'get feature info' i skipped adding a layer. 
What should be the correct approach? How can i get rid of the error message?

Thanks




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GetFeatureInfo-to-Geoserver-tp3802214p5147541.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users