|
From: REBOUX M. <m.r...@re...> - 2015-10-27 13:33:43
|
Thanks a lot.
I added a new entry (in WMS 1.1.1) in the config-spring-geonetwork.xml
Then, in the administration console > Region API, changed the id of the map.
Save, restart tomcat.
Nothing better : still nothing appears.
The url of the image is still http://myserver/geonetwork/srv/fre/region.getmap.png?mapsrs=EPSG:3857&width=250&background=osm&geomsrs=EPSG:4326&geom=Polygon%28%28-1.96327%2047.93192,-1.46558%2047.93192,-1.46558%2048.30684,-1.96327%2048.30684,-1.96327%2047.93192%29%29
How can I debug that ? How can be sure than a request get out of the server ?
De : Juan Luis Rodríguez Ponce [mailto:jua...@ge...]
Envoyé : mercredi 21 octobre 2015 13:39
À : REBOUX Maël
Cc : geo...@li...
Objet : Re: [GeoNetwork-users] [GN 3.0.x] Wich services behind region.getmap.png service ?
You can setup the WMS URL in the GN settings -> Region API -> GetMap request -> Background map, URL or Named Layer ID. Put an URL like the one defined for terrestris. Pass to the service region.getmap.png the parameter background=settings to use this map.
Also you can add an entry to the <util:map id="regionGetMapBackgroundLayers>
<util:map id="regionGetMapBackgroundLayers>
<entry value="http://ows.terrestris.de/osm/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=OSM-WMS&STYLES=default&SRS={srs}&BBOX={minx},{miny},{maxx},{maxy}&WIDTH={width}&HEIGHT={height}&FORMAT=image/png<http://s.bl-1.com/h/syKkycM?url=http://ows.terrestris.de/osm/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=OSM-WMS&STYLES=default&SRS=%7bsrs%7d&BBOX=%7bminx%7d,%7bminy%7d,%7bmaxx%7d,%7bmaxy%7d&WIDTH=%7bwidth%7d&HEIGHT=%7bheight%7d&FORMAT=image/png>" key="osm"/>
<entry value="http://mywmsservice.com?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=myLayerName&STYLES=default&SRS={srs}&BBOX={minx},{miny},{maxx},{maxy}&WIDTH={width}&HEIGHT={height}&FORMAT=image/png<http://s.bl-1.com/h/syKk20P?url=http://mywmsservice.com/?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=myLayerName&STYLES=default&SRS=%7bsrs%7d&BBOX=%7bminx%7d,%7bminy%7d,%7bmaxx%7d,%7bmaxy%7d&WIDTH=%7bwidth%7d&HEIGHT=%7bheight%7d&FORMAT=image/png>" key="myLayerName"/>
</util:map id="regionGetMapBackgroundLayers>
and then set in the settings the layer id, myLayerName. Or pass the parameter background=myLayerName to the region.getmap.png service if you don't want this to be the default background for your maps.
Regards,
Juan Luis.
On Tue, Oct 20, 2015 at 6:02 PM, REBOUX Maël <m.r...@re...<mailto:m.r...@re...>> wrote:
I have networking problems with the region.getmap.png service.
It is used when you are reading a metadata to produce the extend map above the overview image
In the \WEB-INF\config-spring-geonetwork.xml fiel I have found this :
-<util:map id="regionGetMapBackgroundLayers"> <entry value="http://ows.terrestris.de/osm/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=OSM-WMS&STYLES=default&SRS={srs}&BBOX={minx},{miny},{maxx},{maxy}&WIDTH={width}&HEIGHT={height}&FORMAT=image/png<http://ows.terrestris.de/osm/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=OSM-WMS&STYLES=default&SRS=%7bsrs%7d&BBOX=%7bminx%7d,%7bminy%7d,%7bmaxx%7d,%7bmaxy%7d&WIDTH=%7bwidth%7d&HEIGHT=%7bheight%7d&FORMAT=image/png>" key="osm"/> </util:map>
Someone could confirm that is the server http://ows.terrestris.de/osm/service? Is really use for the backgrounds ?
It seems to be related with Region API ? or not ?
How to declare a new background service ?
|