{"id":444,"date":"2010-03-14T21:52:54","date_gmt":"2010-03-15T01:52:54","guid":{"rendered":"http:\/\/www.kralidis.ca\/blog\/?p=444"},"modified":"2010-03-14T21:57:30","modified_gmt":"2010-03-15T01:57:30","slug":"easy-csw-with-excat","status":"publish","type":"post","link":"https:\/\/www.kralidis.ca\/blog\/2010\/03\/14\/easy-csw-with-excat\/","title":{"rendered":"easy CSW with eXcat"},"content":{"rendered":"<p>If you have existing metadata and simply want a <a title=\"CSW\" href=\"http:\/\/www.opengeospatial.org\/standards\/cat\">CSW<\/a> interface as a means to search and discover your geospatial metadata, eXcat provides a simple solution.\u00a0 Following the <a title=\"installation steps\" href=\"http:\/\/gdsc.nlr.nl\/gdsc\/software\/excat\/manual\/installation_procedure_excat\">installation steps<\/a>, it&#8217;s quite simple to populate your CSW:<\/p>\n<pre>$ cd excat\/csw\/WEB-INF\/harvest\r\n$ tar zxf my_metadata_files.tgz\r\n$ for i in *.xml\r\n&gt; do\r\n&gt; lwp-download \"http:\/\/localhost\/excat\/csw?request=Harvest&amp;service=CSW&amp;\\\r\n&gt; version=2.0.2\\&amp;namespace=xmlns(csw=http:\/\/www.opengis.net\/cat\/csw)&amp;\\\r\n&gt; source=$i&amp;resourceFormat=application\/xml\\\r\n&gt; &amp;resourceType=http:\/\/www.isotc211.org\/2005\/gmd\"\r\n&gt; done<\/pre>\n<p>That&#8217;s pretty much it.\u00a0 Lightweight simple approach, particularly for those who already have metadata management tools in place and need CSW.<\/p>\n<p>\/me thinks it would be nice to have a Python port of this for those in Java-less environments (why does it seem most CSW server implementations are in Java?)<\/p>\n<link rel=\"stylesheet\" href=\"http:\/\/cdn.leafletjs.com\/leaflet-0.5\/leaflet.css\" \/>\n<!--[if lte IE 8]>\n  <link rel=\"stylesheet\" href=\"http:\/\/cdn.leafletjs.com\/leaflet-0.5\/leaflet.ie.css\" \/>\n<![endif]-->\n<script src=\"http:\/\/cdn.leafletjs.com\/leaflet-0.5\/leaflet.js\"><\/script>\n<style type=\"text\/css\">#map444 { width: 300px; height: 200px; }<\/style>\n\n<div id=\"map444\"><\/div>\n<script type=\"text\/javascript\">\n  var map444 = L.map('map444').setView([43.620495, -79.513198], 10);\n  L.tileLayer('http:\/\/{s}.tile.osm.org\/{z}\/{x}\/{y}.png', {\n      attribution: '&copy; <a href=\"http:\/\/osm.org\/copyright\">OpenStreetMap<\/a> contributors'\n  }).addTo(map444);\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>If you have existing metadata and simply want a CSW interface as a means to search and discover your geospatial metadata, eXcat provides a simple solution.\u00a0 Following the installation steps, it&#8217;s quite simple to populate your CSW: $ cd excat\/csw\/WEB-INF\/harvest $ tar zxf my_metadata_files.tgz $ for i in *.xml &gt; do &gt; lwp-download &#8220;http:\/\/localhost\/excat\/csw?request=Harvest&amp;service=CSW&amp;\\ &gt; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3,11],"tags":[],"class_list":["post-444","post","type-post","status-publish","format-standard","hentry","category-geospatial","category-technology","category-web"],"_links":{"self":[{"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/posts\/444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/comments?post=444"}],"version-history":[{"count":8,"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/posts\/444\/revisions"}],"predecessor-version":[{"id":452,"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/posts\/444\/revisions\/452"}],"wp:attachment":[{"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/media?parent=444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/categories?post=444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kralidis.ca\/blog\/wp-json\/wp\/v2\/tags?post=444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}