[GeoNetwork-users] [GN 3.0.x] Wich services behind region.getmap.png service ?

Hello,

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\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;FORMAT=image/png&quot; 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 ?

Maël REBOUX
Service SIG mutualisé Ville de Rennes / Rennes Métropole
Chargé de mission "diffusion"

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\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;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=\{srs\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;FORMAT=image/png&gt;&quot;
key="osm"/>

    <entry value="
http://mywmsservice.com?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=myLayerName&STYLES=default&SRS=\{srs\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;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=\{srs\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;FORMAT=image/png&gt;&quot;
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.reboux@anonymised.com>
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\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;FORMAT=image/png&quot;
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 ?

Hi Juan, would be good to add those instruction to the documentation if you
have time ?
http://geonetwork-opensource.org/manuals/trunk/eng/users/administrator-guide/configuring-the-catalog/system-configuration.html

Cheers.

Francois

2015-10-21 13:39 GMT+02:00 Juan Luis Rodríguez Ponce <juanluisrp@anonymised.com4...>
:

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\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;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=\{srs\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;FORMAT=image/png
>"
key="osm"/>

    <entry value="

http://mywmsservice.com?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=myLayerName&STYLES=default&SRS=\{srs\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;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=\{srs\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;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.reboux@anonymised.com>
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\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;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 ?
>

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

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((-1.96327%2047.93192,-1.46558%2047.93192,-1.46558%2048.30684,-1.96327%2048.30684,-1.96327%2047.93192))

How can I debug that ? How can be sure than a request get out of the server ?

De : Juan Luis Rodríguez Ponce [mailto:juanluisrp@…444…]
Envoyé : mercredi 21 octobre 2015 13:39
À : REBOUX Maël
Cc : geonetwork-users@lists.sourceforge.net
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\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;FORMAT=image/png&lt;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={srs}&amp;BBOX={minx},{miny},{maxx},{maxy}&amp;WIDTH={width}&amp;HEIGHT={height}&amp;FORMAT=image/png&gt;&quot; key="osm"/>

    <entry value="http://mywmsservice.com?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=myLayerName&STYLES=default&SRS=\{srs\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;FORMAT=image/png&lt;http://s.bl-1.com/h/syKk20P?url=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&gt;&quot; 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.reboux@...1417...<mailto:m.reboux@…1417…>> 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\}&amp;BBOX=\{minx\},\{miny\},\{maxx\},\{maxy\}&amp;WIDTH=\{width\}&amp;HEIGHT=\{height\}&amp;FORMAT=image/png&lt;http://ows.terrestris.de/osm/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=OSM-WMS&STYLES=default&SRS={srs}&amp;BBOX={minx},{miny},{maxx},{maxy}&amp;WIDTH={width}&amp;HEIGHT={height}&amp;FORMAT=image/png&gt;&quot; 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 ?

(attachments)

image001.jpg

Sorry to unearth this topic but I have exactly the same issue. Have you been
able to resolve it ?
Thank you

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GN-3-0-x-Wich-services-behind-region-getmap-png-service-tp5231456p5257662.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Never mind, I found that I had to add the proxy settings in the startup.bat.
Configuring it in the Settings was not enough.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GN-3-0-x-Wich-services-behind-region-getmap-png-service-tp5231456p5257696.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

I identified a issue with this service not using the proxy, I'll commit a
fix as soon as possible, when tested properly.

Regards,
Jose García

On Mon, Mar 21, 2016 at 5:50 PM, FLecuy <fanny.lecuy@anonymised.com> wrote:

Never mind, I found that I had to add the proxy settings in the
startup.bat.
Configuring it in the Settings was not enough.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GN-3-0-x-Wich-services-behind-region-getmap-png-service-tp5231456p5257696.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Currently : no.
I'm waiting to install the 3.0.3 version to see if it is better.

And I want to test it out of my LAN too.
Not enough time actually...

-----Message d'origine-----
De : FLecuy [mailto:fanny.lecuy@anonymised.com]
Envoyé : lundi 21 mars 2016 15:06
À : geonetwork-users@lists.sourceforge.net
Objet : Re: [GeoNetwork-users] [GN 3.0.x] Wich services behind region.getmap.png service ?

Sorry to unearth this topic but I have exactly the same issue. Have you been able to resolve it ?
Thank you

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GN-3-0-x-Wich-services-behind-region-getmap-png-service-tp5231456p5257662.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi to all

I have uncovered this topic since I was trying to manipulate the
region.getmap.png presented on each record (I noticed that the email
thread finished without a clear solution so I am written with a solution)

There is a good explanation here:

http://osgeo-org.1560.x6.nabble.com/GN-3-0-x-Wich-services-behind-region-getmap-png-service-td5231456.html

If you can configure the
geonetwork/WEB-INF/config-spring-geonetwork.xml like this

<util:map id="regionGetMapBackgroundLayers">
    <entry key="osm"
          
value="http://ows.terrestris.de/osm/service?SERVICE=WMS&amp;REQUEST=GetMap&amp;VERSION=1.1.0&amp;LAYERS=OSM-WMS&amp;STYLES=default&amp;SRS=\{srs\}&amp;a$
    <entry key="gray"
    
value="http://ows.terrestris.de/osm-gray/service?SERVICE=WMS&amp;REQUEST=GetMap&amp;VERSION=1.1.0&amp;LAYERS=TOPO-WMS&amp;STYLES=default&amp;SRS=\{srs\}&amp;a$

   </util:map>

and add the required map (in my case was testing with 'gray')

After you can make a request like this to check if gray is working

http://localhost:8080/geonetwork/srv/eng/region.getmap.png?mapsrs=EPSG:3857&width=250&background=gray&geomsrs=EPSG:4326&geom=Polygon((-180%20-90,180%20-90,180%2090,-180%2090,-180%20-90))

The problem is that GN3 hasn't implemented the regio.getmap.map from the
configuration system and in the file
catalog/views/default/templates/recordView.html

There is:

<!-- TODO: use map config -->
          <p data-ng-repeat="bbox in mdView.current.record.geoBox">
            <img class="gn-img-thumbnail img-thumbnail gn-img-extent"
                
data-ng-src="region.getmap.png?mapsrs=EPSG:3857&width=250&background=osm&geomsrs=EPSG:4326&geom={{mdView.current.record.getBoxAsPolygon($in$
          </p>

So the background is hard coded, if you change it to the entry key
things will start to work

background=gray

Thank you
Jorge

On 29-03-16 11:34, REBOUX Maël wrote:

Currently : no.
I'm waiting to install the 3.0.3 version to see if it is better.

And I want to test it out of my LAN too.
Not enough time actually...

-----Message d'origine-----
De : FLecuy [mailto:fanny.lecuy@anonymised.com]
Envoyé : lundi 21 mars 2016 15:06
À : geonetwork-users@lists.sourceforge.net
Objet : Re: [GeoNetwork-users] [GN 3.0.x] Wich services behind region.getmap.png service ?

Sorry to unearth this topic but I have exactly the same issue. Have you been able to resolve it ?
Thank you

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GN-3-0-x-Wich-services-behind-region-getmap-png-service-tp5231456p5257662.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
ISRIC - World Soil Information
Post: PO box 353, 6700 AJ, Wageningen,
The Netherlands Visiting Address: Droevendaalsesteeg 3, 6708 PB
Wageningen (Bdg. 101),
Office: C.013
Office Phone: +31 (0) 317 4 83715
Mobile Phone: +31 (0) 613 9 06950
Skype: jorge.de.jesus (Jorge Samuel Mendes de Jesus)
OpenPGPKey: 0xA3D0065A