WMS wmsLayer = new WMS ...

2408
0
04-30-2015 03:14 AM
antoniotrapasso
New Contributor

Salve,

dovrei aggiungere un layer ma ho difficoltà a capire come passare parametri e proprietà (in java) per poter arrivare alla seguente stringa:

http://192.168.3.176:8080/geoserver/cite/wms?service=WMS&version=1.1.0&request=GetMap&layers=cite:sa...=

&bbox=2645315.5,4272973.0,2655446.5,4279559.5&width=512

&height=332&srs=EPSG:3004&format=application/openlayers

utilizzo:

WMSParams wmsParams = new WMSParams();
 

...

WMSOptions wmsLayerParams = new WMSOptions();

...

WMS wmsLayer = new WMS("Basic WMS", wmsUrl, wmsParams, wmsLayerParams);

  Map map = mapWidget.getMap();
  map.addLayer(wmsLayer);

...

in sostanza non riesco a comporre la stringa di sopra definendo nel modo giusto parametri e opzioni .

grazie mille!!

0 Kudos
0 Replies