[GeoNetwork-users] Publish as WMS, WFS and WCS in GN 3.0

Hello all,

I am trying to publish shapefiles to GeoNetwork 3.0 using GeoServer.
First I've zipped all my shapefiles to an archive named like the files I want to publish e.g. shapefiles.zip containing .shp, .shx, .prf and .dbf files.

Secondly I went to create a new metadata using the ISO 19139 template. And uploaded the .zip file using the + Online Resources link. Now there is a button named "publish as wms, wfs, wcs". Clicking on it will let me choose the .zip file I've uploaded and I can choose the Geoserver I've added in the settings menu.

Thirdly I want to publish them by clicking on the "publish" link but nothing happens. A GET request is requested to the following URL:
http://server_url/geoserver.publisher?_content_type=json&&access=private&action=CREATE&file=shapefiles.zip&metadataAbstract=shapefile+test&metadataId=9824&metadataTitle=shapefiles&metadataUuid=486408ff-a682-4f7e-b821-7512ec8787a4&nodeId=4635

As response to the GET request I do get:
{
   "@type": "vector",
   "@status": "The data \"null\" is not legal for a JDOM attribute: A null is not a legal XML value."
}

My GeoServer is configurated like this:

Rest API config-url: http://server_url/geoserver/rest
workspace: shapefiletest : http://server_url/geoserver/rest/workspaces/
wms: http://server_url/geoserver/wms
wfs: http://server_url/geoserver/wfs
wcs: http://server_url/geoserver/wcs
styler: http://server_url/geoserver/var/www/styler/index.html

How do and where I change the "@type":"vector" so it will be a valid XML value?

Kind regards,

Sebastian

Hi,

2015-05-26 15:20 GMT+02:00 Sebastian Hübner <
sebastian.huebner@anonymised.com>:

Hello all,

I am trying to publish shapefiles to GeoNetwork 3.0 using GeoServer.
First I've zipped all my shapefiles to an archive named like the files I
want to publish e.g. shapefiles.zip containing .shp, .shx, .prf and .dbf
files.

One guess, do you follow this rule "In case of ZIP compression, ZIP file
base name must be equal to Shapefile or GeoTiff base name (ie. if the
shapefile is rivers.shp, ZIP file name must be rivers.zip).". In your case,
do you have shapefiles.shp in shapefile.zip ?
http://geonetwork-opensource.org/manuals/trunk/eng/users/quickstartguide/new_metadata/linking.html#link-your-data

HTH

Francois

Secondly I went to create a new metadata using the ISO 19139 template.
And uploaded the .zip file using the + Online Resources link. Now there
is a button named "publish as wms, wfs, wcs". Clicking on it will let me
choose the .zip file I've uploaded and I can choose the Geoserver I've
added in the settings menu.

Thirdly I want to publish them by clicking on the "publish" link but
nothing happens. A GET request is requested to the following URL:

http://server_url/geoserver.publisher?_content_type=json&&access=private&action=CREATE&file=shapefiles.zip&metadataAbstract=shapefile+test&metadataId=9824&metadataTitle=shapefiles&metadataUuid=486408ff-a682-4f7e-b821-7512ec8787a4&nodeId=4635

As response to the GET request I do get:
{
   "@type": "vector",
   "@status": "The data \"null\" is not legal for a JDOM attribute: A
null is not a legal XML value."
}

My GeoServer is configurated like this:

Rest API config-url: http://server_url/geoserver/rest
workspace: shapefiletest : http://server_url/geoserver/rest/workspaces/
wms: http://server_url/geoserver/wms
wfs: http://server_url/geoserver/wfs
wcs: http://server_url/geoserver/wcs
styler: http://server_url/geoserver/var/www/styler/index.html

How do and where I change the "@type":"vector" so it will be a valid XML
value?

Kind regards,

Sebastian

------------------------------------------------------------------------------
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