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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Mael IG
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}&BBOX={minx},{miny},{maxx},{maxy}&WIDTH={width}&HEIGHT={height}&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 ?


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

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [GN 3.0.x] Wich services behind region.getmap.png service ?

Juan Luis Rodríguez Ponce
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={srs}&BBOX={minx},{miny},{maxx},{maxy}&WIDTH={width}&HEIGHT={height}&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={srs}&BBOX={minx},{miny},{maxx},{maxy}&WIDTH={width}&HEIGHT={height}&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 <[hidden email]>
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"
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [GN 3.0.x] Wich services behind region.getmap.png service ?

Francois Prunayre
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 <[hidden email]>
:

> 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={srs}&BBOX={minx},{miny},{maxx},{maxy}&WIDTH={width}&HEIGHT={height}&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={srs}&BBOX={minx},{miny},{maxx},{maxy}&WIDTH={width}&HEIGHT={height}&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 <[hidden email]>
> 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
> "
> > 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [GN 3.0.x] Wich services behind region.getmap.png service ?

Mael IG
In reply to this post by Juan Luis Rodríguez Ponce
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:[hidden email]]
Envoyé : mercredi 21 octobre 2015 13:39
À : REBOUX Maël
Cc : [hidden email]
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 <[hidden email]<mailto:[hidden email]>> 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 ?


------------------------------------------------------------------------------

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

image001.jpg (456 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [GN 3.0.x] Wich services behind region.getmap.png service ?

FLecuy
Sorry to unearth this topic but I have exactly the same issue. Have you been able to resolve it ?
Thank you
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [GN 3.0.x] Wich services behind region.getmap.png service ?

FLecuy
Never mind, I found that I had to add the proxy settings in the startup.bat. Configuring it in the Settings was not enough.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [GN 3.0.x] Wich services behind region.getmap.png service ?

Jose Garcia
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 <[hidden email]> 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
> [hidden email]
> 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/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [GN 3.0.x] Wich services behind region.getmap.png service ?

Mael IG
In reply to this post by FLecuy
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:[hidden email]]
Envoyé : lundi 21 mars 2016 15:06
À : [hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [GN 3.0.x] Wich services behind region.getmap.png service ?

Jorge Samuel Mendes de Jesus
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}&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}&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:[hidden email]]
> Envoyé : lundi 21 mars 2016 15:06
> À : [hidden email]
> 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
> [hidden email]
> 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

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Loading...