Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed GeoServer and publish one shapefile on it. Now my question is, How can i access that shapefile from GeoServer? and can i work with that resource (shapefile) with ArcGIS API. As we can access any resource from ArcGIS sample server like the code below:

queryTask = new esri.arcgis.gmaps.QueryTask("…;);

Similarly, which piece of code i need to access my published file from GeoServer ?

share|improve this question
up vote 0 down vote accepted

GeoServer is serving your shapefile using OGC standards. WMS will send an image of your data while WFS will return the actual data as a vector (encoded in GML by default). Try searching in the ArcGIS help for details of how to import these standards.

share|improve this answer

The ArcGIS Web API's all support WMS (but not WFS). So the QueryTask will not work with your geoserver).

To use it within the ArcGIS API for JavaScript, use

var wmsLayer = new esri.layers.WMSLayer(YOURURL); 

See the JSAPI resource center for more samples:

share|improve this answer

If you want to see the url or download the shapefile from geoserver go to the console and then look at the published datasets. Your set should be there and there should be a whole different set of ways to preview your data.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.