[GeoNetwork-users] GeoNetwork Harvesting from GeoServer

Hello GeoNetworkers,

I am trying to figure out how to harvest from our own PostGIS database and
am trying the following.

I have loaded some of our PostGIS datasets into the GeoServer that
GeoNetwork is using and then using the Harvest From "OGC Web Services'
option.

1. Has anyone successfully done anything like this?
2. I am getting an error "Root element not set" when running the harvest

I am guessing I have the service URL incorrect but don't know where to get
the right URL from, within GeoServer.

http://localhost:8080/geoserver/GDSS/wms?service=WMS&version=1.1.0&request=GetMap&layers=ABS&styles=&bbox=96.816941394,-43.8132743835449,159.33576965332,-9.142175977&width=595&height=330&srs=EPSG:4283&format=application/openlayers

Any assistance would be very much appreciated.

Regards

Dean Howell

Hi Dean

You need to specify the capabilities url:

http://localhost:8080/geoserver/GDSS/wms?service=WMS&version=1.1.0&request=GetCapabilities

The harvester creates a service metadata with the description of the
service provided by the capabilities document and a metadata per layer
described in the capabilities document (this is optional, check the
harvester options:
http://geonetwork-opensource.org/manuals/2.10.4/eng/users/managing_metadata/harvesting/ogcwxs/index.html#ogcwxs-harvester
)

Regards,
Jose García

On Tue, May 26, 2015 at 1:50 AM, Dean Howell <deanhowell2009@anonymised.com>
wrote:

Hello GeoNetworkers,

I am trying to figure out how to harvest from our own PostGIS database and
am trying the following.

I have loaded some of our PostGIS datasets into the GeoServer that
GeoNetwork is using and then using the Harvest From "OGC Web Services'
option.

1. Has anyone successfully done anything like this?
2. I am getting an error "Root element not set" when running the harvest

I am guessing I have the service URL incorrect but don't know where to get
the right URL from, within GeoServer.

http://localhost:8080/geoserver/GDSS/wms?service=WMS&version=1.1.0&request=GetMap&layers=ABS&styles=&bbox=96.816941394,-43.8132743835449,159.33576965332,-9.142175977&width=595&height=330&srs=EPSG:4283&format=application/openlayers

Any assistance would be very much appreciated.

Regards

Dean Howell

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Thanks Jose, your response is very much appreciated.

I have set up a harvest task using the URL above but keep getting the
following error

Error: Failed to compile stylesheet. 1 error detected. Class:
TransformerConfigurationException Stack: at:
net.sf.saxon.PreparedStylesheet file: PreparedStylesheet.java line: 176
method: prepare at: net.sf.saxon.TransformerFactoryImpl file:
TransformerFactoryImpl.java line: 139 method: newTemplates at:
de.fzi.dbs.xml.transform.CachingTransformerFactory file:
CachingTransformerFactory.java line: 127 method: newTransformer at:
de.fzi.dbs.xml.transform.CachingTransformerFactory file:
CachingTransformerFactory.java line: 82 method: newTransformer at:
jeeves.utils.Xml file: Xml.java line: 471 method: transform at:
jeeves.utils.Xml file: Xml.java line: 380 method: transform at:
org.fao.geonet.kernel.harvest.harvester.ogcwxs.Harvester file:
Harvester.java line: 284 method: addMetadata at:
org.fao.geonet.kernel.harvest.harvester.ogcwxs.Harvester file:
Harvester.java line: 233 method: harvest at:
org.fao.geonet.kernel.harvest.harvester.ogcwxs.OgcWxSHarvester file:
OgcWxSHarvester.java line: 227 method: doHarvest at:
org.fao.geonet.kernel.harvest.harvester.AbstractHarvester$HarvestWithIndexProcessor
file: AbstractHarvester.java line: 399 method: process at:
org.fao.geonet.kernel.harvest.harvester.AbstractHarvester file:
AbstractHarvester.java line: 429 method: harvest at:
org.fao.geonet.kernel.harvest.harvester.HarvesterJob file:
HarvesterJob.java line: 29 method: execute

On Tue, May 26, 2015 at 4:19 PM Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Dean

You need to specify the capabilities url:

http://localhost:8080/geoserver/GDSS/wms?service=WMS&version=1.1.0&request=GetCapabilities

The harvester creates a service metadata with the description of the
service provided by the capabilities document and a metadata per layer
described in the capabilities document (this is optional, check the
harvester options:
http://geonetwork-opensource.org/manuals/2.10.4/eng/users/managing_metadata/harvesting/ogcwxs/index.html#ogcwxs-harvester
)

Regards,
Jose García

On Tue, May 26, 2015 at 1:50 AM, Dean Howell <deanhowell2009@anonymised.com>
wrote:

Hello GeoNetworkers,

I am trying to figure out how to harvest from our own PostGIS database and
am trying the following.

I have loaded some of our PostGIS datasets into the GeoServer that
GeoNetwork is using and then using the Harvest From "OGC Web Services'
option.

1. Has anyone successfully done anything like this?
2. I am getting an error "Root element not set" when running the harvest

I am guessing I have the service URL incorrect but don't know where to get
the right URL from, within GeoServer.

http://localhost:8080/geoserver/GDSS/wms?service=WMS&version=1.1.0&request=GetMap&layers=ABS&styles=&bbox=96.816941394,-43.8132743835449,159.33576965332,-9.142175977&width=595&height=330&srs=EPSG:4283&format=application/openlayers

Any assistance would be very much appreciated.

Regards

Dean Howell

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

Hi Dean

What version of GeoNetwork are you using?

Regards,
Jose García

On Tue, May 26, 2015 at 8:32 AM, Dean Howell <deanhowell2009@anonymised.com>
wrote:

Thanks Jose, your response is very much appreciated.

I have set up a harvest task using the URL above but keep getting the
following error

Error: Failed to compile stylesheet. 1 error detected. Class:
TransformerConfigurationException Stack: at:
net.sf.saxon.PreparedStylesheet file: PreparedStylesheet.java line: 176
method: prepare at: net.sf.saxon.TransformerFactoryImpl file:
TransformerFactoryImpl.java line: 139 method: newTemplates at:
de.fzi.dbs.xml.transform.CachingTransformerFactory file:
CachingTransformerFactory.java line: 127 method: newTransformer at:
de.fzi.dbs.xml.transform.CachingTransformerFactory file:
CachingTransformerFactory.java line: 82 method: newTransformer at:
jeeves.utils.Xml file: Xml.java line: 471 method: transform at:
jeeves.utils.Xml file: Xml.java line: 380 method: transform at:
org.fao.geonet.kernel.harvest.harvester.ogcwxs.Harvester file:
Harvester.java line: 284 method: addMetadata at:
org.fao.geonet.kernel.harvest.harvester.ogcwxs.Harvester file:
Harvester.java line: 233 method: harvest at:
org.fao.geonet.kernel.harvest.harvester.ogcwxs.OgcWxSHarvester file:
OgcWxSHarvester.java line: 227 method: doHarvest at:
org.fao.geonet.kernel.harvest.harvester.AbstractHarvester$HarvestWithIndexProcessor
file: AbstractHarvester.java line: 399 method: process at:
org.fao.geonet.kernel.harvest.harvester.AbstractHarvester file:
AbstractHarvester.java line: 429 method: harvest at:
org.fao.geonet.kernel.harvest.harvester.HarvesterJob file:
HarvesterJob.java line: 29 method: execute

On Tue, May 26, 2015 at 4:19 PM Jose Garcia <jose.garcia@anonymised.com>
wrote:

Hi Dean

You need to specify the capabilities url:

http://localhost:8080/geoserver/GDSS/wms?service=WMS&version=1.1.0&request=GetCapabilities

The harvester creates a service metadata with the description of the
service provided by the capabilities document and a metadata per layer
described in the capabilities document (this is optional, check the
harvester options:
http://geonetwork-opensource.org/manuals/2.10.4/eng/users/managing_metadata/harvesting/ogcwxs/index.html#ogcwxs-harvester
)

Regards,
Jose García

On Tue, May 26, 2015 at 1:50 AM, Dean Howell <deanhowell2009@anonymised.com>
wrote:

Hello GeoNetworkers,

I am trying to figure out how to harvest from our own PostGIS database
and
am trying the following.

I have loaded some of our PostGIS datasets into the GeoServer that
GeoNetwork is using and then using the Harvest From "OGC Web Services'
option.

1. Has anyone successfully done anything like this?
2. I am getting an error "Root element not set" when running the harvest

I am guessing I have the service URL incorrect but don't know where to
get
the right URL from, within GeoServer.

http://localhost:8080/geoserver/GDSS/wms?service=WMS&version=1.1.0&request=GetMap&layers=ABS&styles=&bbox=96.816941394,-43.8132743835449,159.33576965332,-9.142175977&width=595&height=330&srs=EPSG:4283&format=application/openlayers

Any assistance would be very much appreciated.

Regards

Dean Howell

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*