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") );
@bartvde
bartvde / osgeo.md
Last active November 23, 2015 10:20
Why I left OSGeo

For the people who don't know, I was a charter member at OSGeo since 2006, and I recently served on the OSGeo board of directors.

The main reason for leaving OSGeo at this point in time is that I feel that the recent communication that has been happening between OSGeo and LocationTech is very unprofessional and disrespectful from the side of OSGeo. I must say that Andrea Ross of LocationTech has been super professional, I'm not sure I would have been able to do the same in her position. This communication has been mostly on the conference_dev e-mail list (but also on discuss). It has been really hard for me to read that communication and not speak up publicly about it. I'm glad Cameron Shorter did say something about it here: https://lists.osgeo.org/pipermail/discuss/2015-November/015310.html on which I fully agree but I feel like a lot more people involved in OSGeo should have said something about this. I encourage everyone to read the relevant November threads in the archives https://lists.osgeo.org/piperm

14 Jan 19:19:20 TRACE [org.geotools.factory] - ENTRY (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY)
14 Jan 19:19:20 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): user provided a Class.
14 Jan 19:19:20 TRACE [org.geotools.factory] - CHECK (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): consider hint[last] AbstractEpsgMediator.
14 Jan 19:19:20 TRACE [org.geotools.factory] - THROW (CRSAuthorityFactory, CRS_AUTHORITY_FACTORY): could not find implementation.
14 Jan 19:19:24 INFO [org.geoserver.catalog] - Disposing feature type 'states'
14 Jan 19:19:24 INFO [org.geoserver.catalog] - Disposing datastore 'states_shapefile'
14 Jan 19:19:24 INFO [org.geoserver.catalog] - Dispose data access 'states_shapefile' ShapefileDataStore
14 Jan 19:19:24 DEBUG [org.geotools.data.shapefile] - Read lock: file:/Users/bartvandeneijnden/opengeo/geoserver/geoserver-2.7-SNAPSHOT/bin/../data_dir/data/shapefiles/states.shp by org.geotools.data.shapefile.shp.ShapefileReader
14 Jan 19:19:24 TRACE [org.ge
new ol.style.RegularShape({
fill: fill,
stroke: stroke,
points: 4,
radius1: 80,
radius2: 80,
angle: Math.PI / 4
})
map.on('singleclick', function(evt) {
var viewResolution = map.getView().getView2D().getResolution();
var layers = map.getLayers();
var gfi = [];
var formats = [], titles = [];
layers.forEach(function(layer) {
if (layer.getVisible() === true && layer instanceof ol.layer.Tile && layer.getSource() instanceof ol.source.TileWMS) {
var url = layer.getSource().getGetFeatureInfoUrl(
evt.coordinate, viewResolution, map.getView().getView2D().getProjection(),
{'INFO_FORMAT': infoFormat});
@bartvde
bartvde / mapping
Created July 21, 2014 11:24
JsonIx
var WPS = {
name: 'WPS',
defaultElementNamespaceURI: 'http:\/\/www.opengis.net\/ows\/1.1',
defaultAttributeNamespaceURI: 'http:\/\/www.w3.org\/1999\/xlink',
typeInfos: [{
type: 'classInfo',
localName: 'ProcessOfferings',
propertyInfos: [{
type: 'element',
name: 'process',
De gemeente heeft wel vragen ontvangen over het opheffen van parkeerplaatsen aan de Parkzichtlaan voor het verbeteren van het zicht op de kruising komend vanaf de Aledorperweg komende uit Het Zand. De gemeente heeft echter ook vragen ontvangen over het realiseren van extra parkeerplaatsen op deze locatie.
1) ol.format.GML #readGeometry point can read a point geometry:
TypeError: 'undefined' is not an object (evaluating 'n.namespaceURI')
at http://localhost:9810/input/test/$$/src/ol/xml.js:277
at http://localhost:9810/input/test/$$/src/ol/xml.js:301
at http://localhost:9810/input/test/$$/src/ol/format/gmlformat.js:51
at http://localhost:9810/input/test/$$/src/ol/format/gmlformat.js:40
at http://localhost:9810/input/test/$$/src/ol/format/xmlformat.js:123
at http://localhost:9810/input/test/$$/test/spec/ol/format/gmlformat.test.js:20
at file:///Users/bartvandeneijnden/opengeo/git/ol3_bartvde/test/mocha-1.8.1/mocha.js:4053
at file:///Users/bartvandeneijnden/opengeo/git/ol3_bartvde/test/mocha-1.8.1/mocha.js:4410
goog.require('ol.Map');
goog.require('ol.RendererHint');
goog.require('ol.View2D');
goog.require('ol.layer.Vector');
goog.require('ol.proj.Projection');
goog.require('ol.source.GeoJSON');
goog.require('ol.style.Fill');
goog.require('ol.style.Stroke');
goog.require('ol.style.Style');