How to add WFS and WCS services using java script API.

5427
4
10-01-2013 09:04 PM
Pankajroy
New Contributor
Hi All,

Any idea how to add WCS and WFS services as a layer using arcgis javascript API. I did not find any sample.

Please help.


Thanx,
Pankaj Roy
0 Kudos
4 Replies
GaneshSolai_Sambandam
New Contributor III
Hi Pankaj
There is loads of examples to use WFS via feature layer class.
https://developers.arcgis.com/en/javascript/jssamples/fl_hover.html


and similarly for WCS - see link below
https://developers.arcgis.com/en/javascript/jssamples/image_simpleimageservice.html

If you are interested in creating your own / custom WFS or WCS service, you need to use ARCGIS server to make it as a service for coverage and feature layer services.
0 Kudos
Pankajroy
New Contributor
Hi Ganesh,

Thanks for the reply. I tried the solution you have suggested but could not have the layers added to the map.
My requirement is to add WCS and WFS layer using the respective URL just like WMS services are added using javascript API.
The problem i am facing is that the URL returns the service capabilities when we check the result in firebug. The expected response is an image in case of WCS service and feature set in case of WFS service.

I realised that same can be achieved using open layers but not using ESRI java script API. If you can provide some code snippet in
java script, it would be a great help.

Rgds,
Pankaj Roy
0 Kudos
Kawaal_Saleem
New Contributor II

Have you figured out how to do this?

I'm also trying to add a wfs layer.

0 Kudos
BraulioCordova
New Contributor III

I have the same problem. I need load services WCS and WFS . Any help out there

0 Kudos