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
@bartvde
bartvde / gist:773da09549ee911959e41e6131e7a340
Created September 29, 2016 15:36
Esri satellite basemap
new ol.layer.Tile({
type: 'base',
title: 'ESRI world imagery',
visible: false,
source: new ol.source.XYZ({
attributions: [
new ol.Attribution({
html: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
})
],
<?php
function createLegendGraphicRequest ($oLayer, $nScale, $nWidth=18, $nHeight=12)
{
/* required parameters: version, request, layer
* uses width, height, version, sld_body, scale
* sld,style,featuretype,rule,exceptions not used
* format is png
*/
if ( !($sName = $oLayer->getmetadata("wms_name")) ) $sName = $oLayer->name;
$szSLDBody = urlencode( $oLayer->getMetaData("wms_sld_body") );
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 {
Published: 08:59 CEST 04-07-2013 /Thomson Reuters /Source: Imtech /XAMS: IM /ISIN: NL0006055329
Royal Imtech lanceert volledig gegarandeerde 4 voor 1 claimemissie van circa EUR 500 miljoen
NIET BESTEMD OM TE WORDEN VRIJGEGEVEN, VERSPREID OF GEPUBLICEERD
IN DE VERENIGDE STATEN, AUSTRALIE, CANADA OF JAPAN
Claimemissie belangrijke volgende stap in financiële herstructurering van Royal Imtech