[Geoserver-users] multiple layers in geoserver

hi ,

i am using one shape file to build map… now i want to add layers to the map (shapefile)… how should i do that please let me know the detialed steps to do that.

thanks


Naseer MCA

Naseer Mohammed Abdul ha scritto:

hi ,

i am using one shape file to build map... now i want to add layers to the map (shapefile).. how should i do that please let me know the detialed steps to do that.

Hem, detailed steps, I dont' have time to provide. But anyways,
you have to configure each shape file in the data configuration
section just like you did with the first, and then issue wms
requests that do use more than one layer.

See the WMS 1.1.1 standard if you are doing direct request (www.opengeospatial.org), or your client documentation if you are using a javascript client such as MapBuilder or OpenLayers.

Cheers
Andrea

IHi Naseer,
When you make a WMS request there are two parameters: "layers=" and "styles="
To have geoserver render multiple layers (shapefiles) just append the layer names and their styles to the request. For example:
layers=topp:states,topp:mylayer,ggg:mylayer2&styles=population,mystyle1,mystyle2

here is a working example:
http://localhost:8080/geoserver/wms?bbox=142,-44,150,-39&Format=image/png&request=GetMap&layers=topp:tasmania_state_boundaries,topp:tasmania_cities,topp:tasmania_water_bodies&styles=green,simple_roads,cite_lakes&width=550&height=250&srs=EPSG:4326

Brent Owens
(The Open Planning Project)

Andrea Aime wrote:

Naseer Mohammed Abdul ha scritto:
  

hi ,

i am using one shape file to build map... now i want to add layers to the map (shapefile).. how should i do that please let me know the detialed steps to do that.
    
Hem, detailed steps, I dont' have time to provide. But anyways,
you have to configure each shape file in the data configuration
section just like you did with the first, and then issue wms
requests that do use more than one layer.

See the WMS 1.1.1 standard if you are doing direct request (www.opengeospatial.org), or your client documentation if you are using a javascript client such as MapBuilder or OpenLayers.

Cheers
Andrea

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users