[GeoNetwork-users] Geoserver/Google Maps integration

Hi GeoNetwork users
I'm using GN 2.6.4 and I would to change the dafault base map on to
Geoserver, adding a Google Maps Satellite Layer.
Which is the best way?
Thanks in advance

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-Google-Maps-integration-tp6848744p6848744.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Francis,

integrating google maps as a map-baselayer is not that trivial. The problem
is that geonetwork´s map-component is based on the EPSG:4326 coordinate
reference system. Whereas google maps or OpenStreetMap are based on
EPSG:900913. Therefore what you have to do is switch the complete system to
EPSG:900913. You could simply do that in ol_maps.js with the proper methods
offered by the OpenLayers-API (and even in ol_minimap.js if you want the
google-Layer in the minimap as well). The more complicated but in my opinion
more sustainable way is to change adapt the configuration and the methods
used to parse the configuration. That means that you can change the layers
you want to have on your map in config-gui.xml which is way more
userfriendly than always having to change the code itself.

What you have to do for this is:
- in geo/utils.xsl: find the codelines where the content of config-gui.xml
is parsed (depending on your version of geonetwork should be around line 95.
In our case we´ve configured google-layers like this in config-gui.xml:

and we read it out like this in geo/utils.xsl:

We also changed parts in main-page.xsl to provide transformation from the
extent given in EPSG:4326 in config-gui.xml to EPSG:900913 (keep in mind
that for EPSG:900913 latitudes >=85 or <=-85 lead to a transformation error
thus you should make sure this can´t happen via an if-clause for example).
The last thing you will have to change is the code in ol_map.js and
ol_minimap.js. There´s a method which is looping through the array created
via the function in utils.xsl. You have to check there if it´s a
google-Layer or something else (e.g. Geoserver-Layer) and then point either
to the usual createWMSLayer-method or to a new method createGoogleLayer
(which creates a google-Layer of the given type and adds it to the map).
Before switching to google you also think about which layers you want to add
to your map. Are those only layers from your own geoserver which means
Geoserver can easily reproject them on the fly or is it important for you
that the user is able to add layers from foreign WMS-Servers (which is
sometimes problematic due to the fact that some servers do not offer
EPSG:900913 as CRS for the request which means you won´t be able to add them
to your map).

Best regards
Max Stephan

P.S.: You can have a look at our geonetwork at
http://131.220.109.2/geonetwork/srv/en/main.home
http://131.220.109.2/geonetwork

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-Google-Maps-integration-tp6848744p6907668.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi max,
thank you for your reply, i appreciate it a lot, unfortunately i'm not an
expert of js and some problems still remains.
in my understanding, maybe You use a Google API key (version 2, now
deprecated) so this is the first difference with my system.
i tried to configure the geo/utils.xsl with the google v3 js, but i cannot
work it out
....then...
you talked about a change of configuration in main-page.xsl but I don't
really know how to do it.
I also tried to have a look on to ol_map.js but i cannot find any google or
geoserver occurrence.
So, after many attempts, i'm at the starting point!
Could you help me please?
Maybe you can attach some samples of your code.
thank you in advance

Regards

------------------------------
If you reply to this email, your message will be added to the discussion
below:

http://osgeo-org.1803224.n2.nabble.com/Geoserver-Google-Maps-integration-tp6848744p6907668.html
To unsubscribe from Geoserver/Google Maps integration, click here<http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6848744&code=ZmRlc3NpLmdlb0BnbWFpbC5jb218Njg0ODc0NHwtMTc1ODU3MDU4Ng==&gt;\.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-Google-Maps-integration-tp6848744p6955894.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel
into Geonetwork(small search map) but I couldnt find a clear answer how to
do this so I am here asking for help. could some one please help me in
clarifing what I have to do or linking me to a document which describe how
to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
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

Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:
<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&lt;view\-source:http://maps.google.com/maps/api/js?v=3&sensor=false&gt;&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image002.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

(attachments)

image002.png

Dear Akilu,

congrats. I actually don´t know why this error occurs now. Shouldn´t have anything to do with your changes. Have you checked if the respective javascript es.js exists? The error didn´t occur before you applied the changes I suppose?

Good luck
Max

P.S.: Please send your mails/replies always to geonetwork-user@anonymised.comforge.net<mailto:geonetwork-user@lists.sourceforge.net> as well so that other users can also access and gain their knowledge from them.

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Donnerstag, 30. Mai 2013 19:18
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time
with best regards

On Thu, May 30, 2013 at 7:16 PM, Aklilu Dinkneh <akliludin@anonymised.com<mailto:akliludin@anonymised.com>> wrote:
Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time
with best regards
Aklilu

On Sat, May 25, 2013 at 2:54 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:

<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image001.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

(attachments)

image002.png

Max,

When changing the background to google maps we have to set the CRS to EPSG:900913 or 3857 in geonetwork.
Does it mean that all the Geographic bounding boxes of all the metadata needs to be defined in above EPSG code?

All metadata that is currently in geonetwork uses WSG84 in its geographic bounding box tag. I guess we have to adapt all bounding boxes of all records to use the google EPSG code?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: vrijdag 31 mei 2013 22:12
To: Aklilu Dinkneh; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Akilu,

congrats. I actually don´t know why this error occurs now. Shouldn´t have anything to do with your changes. Have you checked if the respective javascript es.js exists? The error didn´t occur before you applied the changes I suppose?

Good luck
Max

P.S.: Please send your mails/replies always to geonetwork-user@anonymised.comforge.net<mailto:geonetwork-user@lists.sourceforge.net> as well so that other users can also access and gain their knowledge from them.

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Donnerstag, 30. Mai 2013 19:18
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards

On Thu, May 30, 2013 at 7:16 PM, Aklilu Dinkneh <akliludin@anonymised.com<mailto:akliludin@anonymised.com>> wrote:
Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards Aklilu

On Sat, May 25, 2013 at 2:54 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:

<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image001.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer

Hey Bart,

no, you don´t have to change the bounding-box coordinates. They can remain in WGS84 (we did it like that as well). Coordinates which come from the search-map when you perform a geographical search are automatically transformed to WGS84 as far as I remember (it´s been some time since I made these changes).

What you could look into as well is performing a switch to the widget-interface (as far as I understand this is also the path for the future, the old traditional UI will be replaced by the new, widget-based UI). In the Widget-UI it is MUCH simpler to switch the coordinate reference system and base map to google maps or OpenStreetMap (just a matter of commenting out a few lines and uncommenting a few other lines in the settings.js for the map).

Best regards
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 13:40
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

When changing the background to google maps we have to set the CRS to EPSG:900913 or 3857 in geonetwork.
Does it mean that all the Geographic bounding boxes of all the metadata needs to be defined in above EPSG code?

All metadata that is currently in geonetwork uses WSG84 in its geographic bounding box tag. I guess we have to adapt all bounding boxes of all records to use the google EPSG code?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: vrijdag 31 mei 2013 22:12
To: Aklilu Dinkneh; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Akilu,

congrats. I actually don´t know why this error occurs now. Shouldn´t have anything to do with your changes. Have you checked if the respective javascript es.js exists? The error didn´t occur before you applied the changes I suppose?

Good luck
Max

P.S.: Please send your mails/replies always to geonetwork-user@anonymised.comforge.net<mailto:geonetwork-user@lists.sourceforge.net> as well so that other users can also access and gain their knowledge from them.

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Donnerstag, 30. Mai 2013 19:18
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards

On Thu, May 30, 2013 at 7:16 PM, Aklilu Dinkneh <akliludin@anonymised.com<mailto:akliludin@anonymised.com>> wrote:
Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards Aklilu

On Sat, May 25, 2013 at 2:54 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:

<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image001.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer

Hey Max,

So the coordinates of the bounding box in the metadata should be in WGS84 because the search function will take those fields to do the geographical search? Am I correct?

These boundingbox fields are also visualized in a map when you open the metadata in detail. The background layer is also the google map with its own CRS. The bounding box is in WGS84 so there will be a fault when the wgs84 coordinates are mapped on the google map.

I'm using geonetwork2.6.4

Regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 14:23
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Bart,

no, you don´t have to change the bounding-box coordinates. They can remain in WGS84 (we did it like that as well). Coordinates which come from the search-map when you perform a geographical search are automatically transformed to WGS84 as far as I remember (it´s been some time since I made these changes).

What you could look into as well is performing a switch to the widget-interface (as far as I understand this is also the path for the future, the old traditional UI will be replaced by the new, widget-based UI). In the Widget-UI it is MUCH simpler to switch the coordinate reference system and base map to google maps or OpenStreetMap (just a matter of commenting out a few lines and uncommenting a few other lines in the settings.js for the map).

Best regards
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 13:40
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

When changing the background to google maps we have to set the CRS to EPSG:900913 or 3857 in geonetwork.
Does it mean that all the Geographic bounding boxes of all the metadata needs to be defined in above EPSG code?

All metadata that is currently in geonetwork uses WSG84 in its geographic bounding box tag. I guess we have to adapt all bounding boxes of all records to use the google EPSG code?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: vrijdag 31 mei 2013 22:12
To: Aklilu Dinkneh; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Akilu,

congrats. I actually don´t know why this error occurs now. Shouldn´t have anything to do with your changes. Have you checked if the respective javascript es.js exists? The error didn´t occur before you applied the changes I suppose?

Good luck
Max

P.S.: Please send your mails/replies always to geonetwork-user@anonymised.comforge.net<mailto:geonetwork-user@lists.sourceforge.net> as well so that other users can also access and gain their knowledge from them.

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Donnerstag, 30. Mai 2013 19:18
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards

On Thu, May 30, 2013 at 7:16 PM, Aklilu Dinkneh <akliludin@anonymised.com<mailto:akliludin@anonymised.com>> wrote:
Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards Aklilu

On Sat, May 25, 2013 at 2:54 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:

<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image001.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer

Dear Bart,

yep, bounding-box in the metadata should be still in WGS-84. We changed the baselayer of the of the map which displays the map-extent to a WGS84 so that we could still keep the WGS84 coordinates in the metadata-sets.
If you left the config-gui.xml unaltered and change the google-layer for ol_map and ol_minimap directly in the scripts, this should be the case automatically and in the metadata-map you should still see the backgroundlayer as defined in config-gui.xml. If you defined the google-layer in config-gui.xml though, you have to perform changes in extentmap.js, so that you override the backgroundlayers from config-gui.xml.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 15:00
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Max,

So the coordinates of the bounding box in the metadata should be in WGS84 because the search function will take those fields to do the geographical search? Am I correct?

These boundingbox fields are also visualized in a map when you open the metadata in detail. The background layer is also the google map with its own CRS. The bounding box is in WGS84 so there will be a fault when the wgs84 coordinates are mapped on the google map.

I'm using geonetwork2.6.4

Regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 14:23
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Bart,

no, you don´t have to change the bounding-box coordinates. They can remain in WGS84 (we did it like that as well). Coordinates which come from the search-map when you perform a geographical search are automatically transformed to WGS84 as far as I remember (it´s been some time since I made these changes).

What you could look into as well is performing a switch to the widget-interface (as far as I understand this is also the path for the future, the old traditional UI will be replaced by the new, widget-based UI). In the Widget-UI it is MUCH simpler to switch the coordinate reference system and base map to google maps or OpenStreetMap (just a matter of commenting out a few lines and uncommenting a few other lines in the settings.js for the map).

Best regards
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 13:40
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

When changing the background to google maps we have to set the CRS to EPSG:900913 or 3857 in geonetwork.
Does it mean that all the Geographic bounding boxes of all the metadata needs to be defined in above EPSG code?

All metadata that is currently in geonetwork uses WSG84 in its geographic bounding box tag. I guess we have to adapt all bounding boxes of all records to use the google EPSG code?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: vrijdag 31 mei 2013 22:12
To: Aklilu Dinkneh; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Akilu,

congrats. I actually don´t know why this error occurs now. Shouldn´t have anything to do with your changes. Have you checked if the respective javascript es.js exists? The error didn´t occur before you applied the changes I suppose?

Good luck
Max

P.S.: Please send your mails/replies always to geonetwork-user@anonymised.comforge.net<mailto:geonetwork-user@lists.sourceforge.net> as well so that other users can also access and gain their knowledge from them.

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Donnerstag, 30. Mai 2013 19:18
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards

On Thu, May 30, 2013 at 7:16 PM, Aklilu Dinkneh <akliludin@anonymised.com<mailto:akliludin@anonymised.com>> wrote:
Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards Aklilu

On Sat, May 25, 2013 at 2:54 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:

<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image001.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer

Max,

I can see the google map now but I still have a problem when putting extra layers on it. The WMS call when clicking a interactive map button has the wrong coordinates(still WGS84). Do you have any idea which script I have to change, because I don't see where the WMS coordinates are calculated.

Best regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 15:38
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Bart,

yep, bounding-box in the metadata should be still in WGS-84. We changed the baselayer of the of the map which displays the map-extent to a WGS84 so that we could still keep the WGS84 coordinates in the metadata-sets.
If you left the config-gui.xml unaltered and change the google-layer for ol_map and ol_minimap directly in the scripts, this should be the case automatically and in the metadata-map you should still see the backgroundlayer as defined in config-gui.xml. If you defined the google-layer in config-gui.xml though, you have to perform changes in extentmap.js, so that you override the backgroundlayers from config-gui.xml.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 15:00
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Max,

So the coordinates of the bounding box in the metadata should be in WGS84 because the search function will take those fields to do the geographical search? Am I correct?

These boundingbox fields are also visualized in a map when you open the metadata in detail. The background layer is also the google map with its own CRS. The bounding box is in WGS84 so there will be a fault when the wgs84 coordinates are mapped on the google map.

I'm using geonetwork2.6.4

Regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 14:23
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Bart,

no, you don´t have to change the bounding-box coordinates. They can remain in WGS84 (we did it like that as well). Coordinates which come from the search-map when you perform a geographical search are automatically transformed to WGS84 as far as I remember (it´s been some time since I made these changes).

What you could look into as well is performing a switch to the widget-interface (as far as I understand this is also the path for the future, the old traditional UI will be replaced by the new, widget-based UI). In the Widget-UI it is MUCH simpler to switch the coordinate reference system and base map to google maps or OpenStreetMap (just a matter of commenting out a few lines and uncommenting a few other lines in the settings.js for the map).

Best regards
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 13:40
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

When changing the background to google maps we have to set the CRS to EPSG:900913 or 3857 in geonetwork.
Does it mean that all the Geographic bounding boxes of all the metadata needs to be defined in above EPSG code?

All metadata that is currently in geonetwork uses WSG84 in its geographic bounding box tag. I guess we have to adapt all bounding boxes of all records to use the google EPSG code?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: vrijdag 31 mei 2013 22:12
To: Aklilu Dinkneh; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Akilu,

congrats. I actually don´t know why this error occurs now. Shouldn´t have anything to do with your changes. Have you checked if the respective javascript es.js exists? The error didn´t occur before you applied the changes I suppose?

Good luck
Max

P.S.: Please send your mails/replies always to geonetwork-user@anonymised.comforge.net<mailto:geonetwork-user@lists.sourceforge.net> as well so that other users can also access and gain their knowledge from them.

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Donnerstag, 30. Mai 2013 19:18
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards

On Thu, May 30, 2013 at 7:16 PM, Aklilu Dinkneh <akliludin@anonymised.com<mailto:akliludin@anonymised.com>> wrote:
Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards Aklilu

On Sat, May 25, 2013 at 2:54 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:

<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image001.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer

That´s strange. Do you have a link on the web so that I could check it? Have you changed the Coordinate System for the map everywhere to EPSG:900913 (also in the config-gui.xml). Usually when adding an overlay to the OpenLayers-Map it performs the request in the Coordinate Reference System of the basemap (and also with the coordinates of the basemap).

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Mittwoch, 12. Juni 2013 15:33
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

I can see the google map now but I still have a problem when putting extra layers on it. The WMS call when clicking a interactive map button has the wrong coordinates(still WGS84). Do you have any idea which script I have to change, because I don't see where the WMS coordinates are calculated.

Best regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 15:38
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Bart,

yep, bounding-box in the metadata should be still in WGS-84. We changed the baselayer of the of the map which displays the map-extent to a WGS84 so that we could still keep the WGS84 coordinates in the metadata-sets.
If you left the config-gui.xml unaltered and change the google-layer for ol_map and ol_minimap directly in the scripts, this should be the case automatically and in the metadata-map you should still see the backgroundlayer as defined in config-gui.xml. If you defined the google-layer in config-gui.xml though, you have to perform changes in extentmap.js, so that you override the backgroundlayers from config-gui.xml.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 15:00
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Max,

So the coordinates of the bounding box in the metadata should be in WGS84 because the search function will take those fields to do the geographical search? Am I correct?

These boundingbox fields are also visualized in a map when you open the metadata in detail. The background layer is also the google map with its own CRS. The bounding box is in WGS84 so there will be a fault when the wgs84 coordinates are mapped on the google map.

I'm using geonetwork2.6.4

Regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 14:23
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Bart,

no, you don´t have to change the bounding-box coordinates. They can remain in WGS84 (we did it like that as well). Coordinates which come from the search-map when you perform a geographical search are automatically transformed to WGS84 as far as I remember (it´s been some time since I made these changes).

What you could look into as well is performing a switch to the widget-interface (as far as I understand this is also the path for the future, the old traditional UI will be replaced by the new, widget-based UI). In the Widget-UI it is MUCH simpler to switch the coordinate reference system and base map to google maps or OpenStreetMap (just a matter of commenting out a few lines and uncommenting a few other lines in the settings.js for the map).

Best regards
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 13:40
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

When changing the background to google maps we have to set the CRS to EPSG:900913 or 3857 in geonetwork.
Does it mean that all the Geographic bounding boxes of all the metadata needs to be defined in above EPSG code?

All metadata that is currently in geonetwork uses WSG84 in its geographic bounding box tag. I guess we have to adapt all bounding boxes of all records to use the google EPSG code?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: vrijdag 31 mei 2013 22:12
To: Aklilu Dinkneh; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Akilu,

congrats. I actually don´t know why this error occurs now. Shouldn´t have anything to do with your changes. Have you checked if the respective javascript es.js exists? The error didn´t occur before you applied the changes I suppose?

Good luck
Max

P.S.: Please send your mails/replies always to geonetwork-user@anonymised.comforge.net<mailto:geonetwork-user@lists.sourceforge.net> as well so that other users can also access and gain their knowledge from them.

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Donnerstag, 30. Mai 2013 19:18
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards

On Thu, May 30, 2013 at 7:16 PM, Aklilu Dinkneh <akliludin@anonymised.com<mailto:akliludin@anonymised.com>> wrote:
Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards Aklilu

On Sat, May 25, 2013 at 2:54 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:

<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image001.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer

Hello Max,

Do you have a list of all files you have updated for the EPSG900913 integration?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: woensdag 12 juni 2013 16:22
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

That´s strange. Do you have a link on the web so that I could check it? Have you changed the Coordinate System for the map everywhere to EPSG:900913 (also in the config-gui.xml). Usually when adding an overlay to the OpenLayers-Map it performs the request in the Coordinate Reference System of the basemap (and also with the coordinates of the basemap).

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Mittwoch, 12. Juni 2013 15:33
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

I can see the google map now but I still have a problem when putting extra layers on it. The WMS call when clicking a interactive map button has the wrong coordinates(still WGS84). Do you have any idea which script I have to change, because I don't see where the WMS coordinates are calculated.

Best regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 15:38
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Bart,

yep, bounding-box in the metadata should be still in WGS-84. We changed the baselayer of the of the map which displays the map-extent to a WGS84 so that we could still keep the WGS84 coordinates in the metadata-sets.
If you left the config-gui.xml unaltered and change the google-layer for ol_map and ol_minimap directly in the scripts, this should be the case automatically and in the metadata-map you should still see the backgroundlayer as defined in config-gui.xml. If you defined the google-layer in config-gui.xml though, you have to perform changes in extentmap.js, so that you override the backgroundlayers from config-gui.xml.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 15:00
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Max,

So the coordinates of the bounding box in the metadata should be in WGS84 because the search function will take those fields to do the geographical search? Am I correct?

These boundingbox fields are also visualized in a map when you open the metadata in detail. The background layer is also the google map with its own CRS. The bounding box is in WGS84 so there will be a fault when the wgs84 coordinates are mapped on the google map.

I'm using geonetwork2.6.4

Regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 14:23
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Bart,

no, you don´t have to change the bounding-box coordinates. They can remain in WGS84 (we did it like that as well). Coordinates which come from the search-map when you perform a geographical search are automatically transformed to WGS84 as far as I remember (it´s been some time since I made these changes).

What you could look into as well is performing a switch to the widget-interface (as far as I understand this is also the path for the future, the old traditional UI will be replaced by the new, widget-based UI). In the Widget-UI it is MUCH simpler to switch the coordinate reference system and base map to google maps or OpenStreetMap (just a matter of commenting out a few lines and uncommenting a few other lines in the settings.js for the map).

Best regards
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 13:40
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

When changing the background to google maps we have to set the CRS to EPSG:900913 or 3857 in geonetwork.
Does it mean that all the Geographic bounding boxes of all the metadata needs to be defined in above EPSG code?

All metadata that is currently in geonetwork uses WSG84 in its geographic bounding box tag. I guess we have to adapt all bounding boxes of all records to use the google EPSG code?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: vrijdag 31 mei 2013 22:12
To: Aklilu Dinkneh; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Akilu,

congrats. I actually don´t know why this error occurs now. Shouldn´t have anything to do with your changes. Have you checked if the respective javascript es.js exists? The error didn´t occur before you applied the changes I suppose?

Good luck
Max

P.S.: Please send your mails/replies always to geonetwork-user@anonymised.comforge.net<mailto:geonetwork-user@lists.sourceforge.net> as well so that other users can also access and gain their knowledge from them.

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Donnerstag, 30. Mai 2013 19:18
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards

On Thu, May 30, 2013 at 7:16 PM, Aklilu Dinkneh <akliludin@anonymised.com<mailto:akliludin@anonymised.com>> wrote:
Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards Aklilu

On Sat, May 25, 2013 at 2:54 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:

<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image001.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer

Hi Bart,

attached you find the documentation of the google maps integration that I did. It also includes a list of files that needed to be changed and what has been changed there.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Donnerstag, 13. Juni 2013 16:36
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hello Max,

Do you have a list of all files you have updated for the EPSG900913 integration?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: woensdag 12 juni 2013 16:22
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

That´s strange. Do you have a link on the web so that I could check it? Have you changed the Coordinate System for the map everywhere to EPSG:900913 (also in the config-gui.xml). Usually when adding an overlay to the OpenLayers-Map it performs the request in the Coordinate Reference System of the basemap (and also with the coordinates of the basemap).

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Mittwoch, 12. Juni 2013 15:33
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

I can see the google map now but I still have a problem when putting extra layers on it. The WMS call when clicking a interactive map button has the wrong coordinates(still WGS84). Do you have any idea which script I have to change, because I don't see where the WMS coordinates are calculated.

Best regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 15:38
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Bart,

yep, bounding-box in the metadata should be still in WGS-84. We changed the baselayer of the of the map which displays the map-extent to a WGS84 so that we could still keep the WGS84 coordinates in the metadata-sets.
If you left the config-gui.xml unaltered and change the google-layer for ol_map and ol_minimap directly in the scripts, this should be the case automatically and in the metadata-map you should still see the backgroundlayer as defined in config-gui.xml. If you defined the google-layer in config-gui.xml though, you have to perform changes in extentmap.js, so that you override the backgroundlayers from config-gui.xml.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 15:00
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Max,

So the coordinates of the bounding box in the metadata should be in WGS84 because the search function will take those fields to do the geographical search? Am I correct?

These boundingbox fields are also visualized in a map when you open the metadata in detail. The background layer is also the google map with its own CRS. The bounding box is in WGS84 so there will be a fault when the wgs84 coordinates are mapped on the google map.

I'm using geonetwork2.6.4

Regards,
Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: dinsdag 11 juni 2013 14:23
To: Ooms Bart; geonetwork-users@lists.sourceforge.net
Subject: AW: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hey Bart,

no, you don´t have to change the bounding-box coordinates. They can remain in WGS84 (we did it like that as well). Coordinates which come from the search-map when you perform a geographical search are automatically transformed to WGS84 as far as I remember (it´s been some time since I made these changes).

What you could look into as well is performing a switch to the widget-interface (as far as I understand this is also the path for the future, the old traditional UI will be replaced by the new, widget-based UI). In the Widget-UI it is MUCH simpler to switch the coordinate reference system and base map to google maps or OpenStreetMap (just a matter of commenting out a few lines and uncommenting a few other lines in the settings.js for the map).

Best regards
Max

-----Ursprüngliche Nachricht-----
Von: Ooms Bart [mailto:bart.ooms@anonymised.com]
Gesendet: Dienstag, 11. Juni 2013 13:40
An: Max Stephan; geonetwork-users@lists.sourceforge.net
Betreff: RE: [GeoNetwork-users] GeoNetwork/Google Maps integration

Max,

When changing the background to google maps we have to set the CRS to EPSG:900913 or 3857 in geonetwork.
Does it mean that all the Geographic bounding boxes of all the metadata needs to be defined in above EPSG code?

All metadata that is currently in geonetwork uses WSG84 in its geographic bounding box tag. I guess we have to adapt all bounding boxes of all records to use the google EPSG code?

Bart

-----Original Message-----
From: Max Stephan [mailto:max.stephan@anonymised.com]
Sent: vrijdag 31 mei 2013 22:12
To: Aklilu Dinkneh; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Akilu,

congrats. I actually don´t know why this error occurs now. Shouldn´t have anything to do with your changes. Have you checked if the respective javascript es.js exists? The error didn´t occur before you applied the changes I suppose?

Good luck
Max

P.S.: Please send your mails/replies always to geonetwork-user@anonymised.comforge.net<mailto:geonetwork-user@lists.sourceforge.net> as well so that other users can also access and gain their knowledge from them.

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Donnerstag, 30. Mai 2013 19:18
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards

On Thu, May 30, 2013 at 7:16 PM, Aklilu Dinkneh <akliludin@anonymised.com<mailto:akliludin@anonymised.com>> wrote:
Dear Max,
Me again I think I made a good progress after going through the material you suggested and now I have only one error which i couldnt figure out.
I attached here the screen shot do you have any idea what my problem is? Thank you very much for your time with best regards Aklilu

On Sat, May 25, 2013 at 2:54 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hi Akilu,

please make sure that you imported the google-maps-API in main-page.xsl like this:

<script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false&quot;&gt;&lt;/script&gt;

Instead of following the more complicated instructions I provided in this thread earlier, I would recommend you to first add a google-layer manually to the map. This openLayers-example gives you an idea how to do that: http://openlayers.org/dev/examples/all-overlays-google.html . If you get this to work you might then proceed with integrating the configuration in config-gui.xml etc.

Cheers

Max

Von: Aklilu Dinkneh [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 14:46
An: Max Stephan
Betreff: Re: [GeoNetwork-users] GeoNetwork/Google Maps integration

Hi Max,
Thanks a lot for your fast reply I have followed your explanation to different people and followed the steps you explained and I got some error which I attached here do you think you can explain me what I miss?
best regards
Aklilu
[cid:image001.png@anonymised.com]

On Sat, May 25, 2013 at 2:23 PM, Max Stephan <max.stephan@anonymised.com<mailto:max.stephan@anonymised.com>> wrote:
Hey Akilo,

adding a google-maps-layer to the search-map requires you to edit the script "ol_minimap.js". This script is responsible for creating the OpenLayers-based map-object and adds the WMS-layers defined in config-gui.xml to this map. Instead of the WMS-layers you need to create a google-layer in this script and then add it to the map. For this to work, you also have to import the google-maps-API in main-page.xsl. Lastly you will have to minify the scripts, so that it´s not only working in the debug-version. It´s not a simple task if you´re not familiar with editing geonetwork or coding.
Have a look at our geonetwork´s ol_minimap.js-script to get an idea how it should look like: http://131.220.109.2/geonetwork/scripts/ol_minimap.js (though this version differs because we adapted our geonetwork so that google-layers can also be configured through config-gui.xml).

I hope this can give you a rough idea of what you need to change.

Cheers,
Max

-----Ursprüngliche Nachricht-----
Von: aklilu [mailto:akliludin@anonymised.com]
Gesendet: Samstag, 25. Mai 2013 13:32
An: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Betreff: [GeoNetwork-users] GeoNetwork/Google Maps integration

Dear Geonetwork users
I have tried to go through all past posts regarding integration of googel into Geonetwork(small search map) but I couldnt find a clear answer how to do this so I am here asking for help. could some one please help me in clarifing what I have to do or linking me to a document which describe how to do this.
thank you for your help
best regards,
Aklilu

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-Google-Maps-integration-tp3860447p5055709.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
[http://www.vito.be/e-maildisclaimer/vito.png\]

Ontdek hoe VITO de transitie naar een duurzame maatschappij op gang trekt: www.vito.be/duurzaamheidsverslag2012<http://www.vito.be/duurzaamheidsverslag2012&gt;
Discover how VITO initiates the transition towards a sustainable society: www.vito.be/sustainabilityreport2012<http://www.vito.be/sustainabilityreport2012&gt;

VITO Disclaimer: http://www.vito.be/e-maildisclaimer

(attachments)

Google maps integration.odt (9.8 KB)