Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Harvey andrewharvey

View GitHub Profile
We couldn’t find that file to show.
@andrewharvey
andrewharvey / adding NearMap image sources to libchamplain.
Created Mar 21, 2010
libchamplain edit. This adds NearMap images as libchamplain sources.
View adding NearMap image sources to libchamplain.
diff --git a/champlain/champlain-map-source-factory.c b/champlain/champlain-map-source-factory.c
index e21e509..8bb0f30 100644
--- a/champlain/champlain-map-source-factory.c
+++ b/champlain/champlain-map-source-factory.c
@@ -254,6 +254,96 @@ ChamplainMapSourceDesc MFF_RELIEF_DESC =
};
static
+ChamplainMapSourceDesc NEARMAP_DEM_DESC =
+ {
@andrewharvey
andrewharvey / gist:643097
Created Oct 24, 2010
nearmap-photomap.dgml
View gist:643097
<?xml version="1.0" encoding="UTF-8"?>
<dgml xmlns="http://edu.kde.org/marble/dgml/2.0">
<document>
<head>
<name>NearMap PhotoMaps</name>
<target>earth</target>
<theme>nearmap-photomap</theme>
<!-- <icon pixmap="nearmap-photomap-preview.png"/> -->
<visible>true</visible>
<description><![CDATA[<p>Aerial imagery of Australia from NearMap.</p>]]></description>
@andrewharvey
andrewharvey / osm.labels.xml
Created Oct 29, 2010
Mapnik OSM osm.xml split into text and non-text
View osm.labels.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
%entities;
]>
<!-- This stylesheet uses features only available in mapnik builds with
libxml2 as the XML parser. Furthermore, there are other features
and behaviour that necessitate an upgrade to mapnik 0.7.1 -->
<Map bgcolor="rgba(0,0,0,0)" srs="&srs900913;" minimum_version="0.7.1">
&fontset-settings;
@andrewharvey
andrewharvey / Makefile
Created Sep 24, 2015
Scrips to mass download and extract animal tracks uploaded to zoatrack.org
View Makefile
# Scrips to mass download and extract animal tracks uploaded to zoatrack.org
#
# Originally by Andrew Harvey <andrew.harvey4@gmail.com>
# This file is licenced CC0 http://creativecommons.org/publicdomain/zero/1.0/
#
# At the time of writing, all data provided from zoatrack is released under the
# Creative Commons Attribution-NonCommercial-NoDerivs License.
# http://zoatrack.org/
get:
@andrewharvey
andrewharvey / gist:874161
Created Mar 17, 2011
GeoServer SLD For ABS Meshblocks landuse
View gist:874161
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>ASB_Meshblocks</Name>
<UserStyle>
@andrewharvey
andrewharvey / planet-replicate-find-next.pl
Created Jul 8, 2011
Keeps a local minute-replicate mirror of fosm.org osc files
View planet-replicate-find-next.pl
#!/usr/bin/perl -w
# Inspect a local minute-replicate mirror and return the URL of the next diff file
# To the extent possible under law, the person who associated CC0
# with this work has waived all copyright and related or neighboring
# rights to this work.
# http://creativecommons.org/publicdomain/zero/1.0/
use strict;
@andrewharvey
andrewharvey / sbs-tdf-playlist.pl
Created Jul 15, 2011
Generates an RSS feed with mp4 links for SBS's Tour de France Coverage
View sbs-tdf-playlist.pl
#!/usr/bin/perl
# SBS Playlist To RSS - v0.2.0
# This script will download the ajax xml file containing the latest full episode videos added to the SBS.com.au site and convert this data into an RSS feed format.
# Originally adapted from the code at http://www.perl.com/pub/a/2001/11/15/creatingrss.html by Chris Ball.
# I declar this code to be in the public domain.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
@andrewharvey
andrewharvey / osm-dev.svg
Created Jul 24, 2011
Diagram of OpenStreetMap, development/code/data focused.
View osm-dev.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bboxfilter.pl
#!/usr/bin/perl -wT
# This script uses XML::Atom::Filter to filter an existing FOSM recent changes
# feed given a query bbox based on the georss:box for each entry in the feed
#
# Ideally we would implement it on the server for /feed to return the static
# atom feed from disk, and /feed?bbox to call this CGI script.
#
# This script is licensed CC0 by Andrew Harvey <andrew.harvey4@gmail.com>
#
You can’t perform that action at this time.