Skip to content

Instantly share code, notes, and snippets.

View bartvde's full-sized avatar

Bart van den Eijnden bartvde

  • OSGIS
  • Utrecht, The Netherlands
View GitHub Profile
from owslib.csw import CatalogueServiceWeb
csw = CatalogueServiceWeb('http://nationaalgeoregister.nl/geonetwork/srv/dut/csw')
csw.getrecords2()
print csw.results
Barts-MacBook-Air:tmp bartvandeneijnden$ python test.py
0.8.4
Traceback (most recent call last):
File "test.py", line 5, in <module>
csw.getrecords2()
{"inherits": "../../buildcfg/base.json", "inputs": ["../examples/geoserver-preview.js"], "id": "geoserver-preview", "externs": ["//json.js", "../build/src/external/externs/types.js", "../externs/bingmaps.js", "../externs/geojson.js", "../externs/topojson.js", "../externs/oli.js", "../externs/proj4js.js", "../externs/tilejson.js", "../externs/closure-compiler.js"]}
goog.require('ol.Map');
goog.require('ol.View2D');
goog.require('ol.control.MousePosition');
goog.require('ol.layer.Image');
goog.require('ol.source.ImageWMS');
goog.require('ol.layer.Tile');
goog.require('ol.source.TileWMS');
goog.require('ol.coordinate');
goog.require('ol.proj.Projection');
COMPD_CS["TBC_CS",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],VERT_CS["TBC_VCS",VDATUM["GEOID03_(Conus)"],PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],UNIT["Meter",1]]]
@bartvde
bartvde / gist:8011652
Created December 17, 2013 20:03
KML error message
SystemID: /Users/bartvandeneijnden/Downloads/Untitled2.xml
Main validation file: /Users/bartvandeneijnden/Downloads/Untitled2.xml
Engine name: Xerces
Severity: fatal
Description: The prefix "xsi" for attribute "xsi:schemaLocation" associated with an element type "Document" is not bound.
Start location: 3:24
End location: 3:42
(function(){function h(a){return function(){return this[a]}}function ba(a){return function(){return a}}var m,ca=ca||{},p=this;function ea(){}function fa(a){a.ra=function(){return a.Rd?a.Rd:a.Rd=new a}}
function ga(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function r(a){return void 0!==a}function ia(a){return"array"==ga(a)}function ja(a){var b=ga(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function ka(a){retu
@bartvde
bartvde / gist:6685882
Created September 24, 2013 14:48
CSW bbox
<ows:BoundingBox crs="urn:x-ogc:def:crs:EPSG:6.11:4326">
<ows:LowerCorner>-90.0 -180.0</ows:LowerCorner>
<ows:UpperCorner>90.0 180.0</ows:UpperCorner>
</ows:BoundingBox>
../src/ol/parser/ogc/sldparser_v1.js:97: ERROR - actual parameter 1 of ol.style.Text does not match formal parameter
found : {color: (null|ol.expr.Expression|string|undefined), fontFamily: (null|ol.expr.Expression|string|undefined), fontSize: (null|number|ol.expr.Expression|undefined), opacity: (null|number|ol.expr.Expression|undefined), ...}
required: {color: (null|ol.expr.Expression|string|undefined), fontFamily: (null|ol.expr.Expression|string|undefined), fontSize: (null|number|ol.expr.Expression|undefined), opacity: (null|number|ol.expr.Expression|undefined), ...}
new ol.style.Text(config)
bbox = this.createBBOX(vertex.geometry.parent.components[this.vertexIndex-1], vertex.geometry);
bbox.point1 = vertex.geometry.parent.components[this.vertexIndex-1];
bbox.point2 = vertex.geometry;
bbox = this.createBBOX(vertex.geometry.parent.components[this.vertexIndex+1], vertex.geometry);
bbox.point1 = vertex.geometry;
bbox.point2 = vertex.geometry.parent.components[this.vertexIndex+1];
/** private: method[createOutputConfig] */
createOutputConfig: function() {
var tree = gxp.plugins.LayerManager.superclass.createOutputConfig.apply(this, arguments);
Ext.applyIf(tree, Ext.apply({
listeners: {
'rendernode': function(node) {
if (node.layer && node.component) {
if (node.layer.getVisibility()) {
node.component.show();
} else {