Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?><wfs:WFS_Capabilities version="1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ows="http://www.opengis.net/ows" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wfs https://kangas-kehitys.mmm.fi:443/geoserver/schemas/wfs/1.1.0/wfs.xsd" xmlns:it.geosolutions="http://www.geo-solutions.it" xmlns:cite="http://www.opengeospatial.net/cite" xmlns:tiger="http://www.census.gov" xmlns:sde="http://geoserver.sf.net" xmlns:kaveri="http://www.mmm.fi/schemas/kaveri" xmlns:topp="http://www.openplans.org/topp" xmlns:sf="http://www.openplans.org/spearfish" xmlns:mavi="http://www.mavi.fi/schemas/hallintogis" xmlns:nurc="http://www.nurc.nato.int" updateSequence="91"><ows:ServiceIdentification><ows:Title>GeoServer Web Feature Service</ows:Title><ows:Abstract>This is the reference implemen
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:mavi="http://www.mavi.fi/schemas/hallintogis" elementFormDefault="qualified" targetNamespace="http://www.mavi.fi/schemas/hallintogis">
<xsd:import namespace="http://www.opengis.net/gml" schemaLocation="https://kangas-kehitys.mmm.fi:443/geoserver/schemas/gml/3.1.1/base/gml.xsd"/>
<xsd:complexType name="DEMOPISTEType">
<xsd:complexContent>
<xsd:extension base="gml:AbstractFeatureType">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="KOODI" nillable="true" type="xsd:decimal"/>
<xsd:element maxOccurs="1" minOccurs="0" name="NIMI" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="SELITE" nillable="true" type="xsd:string"/>
@tschaub
tschaub / cloud.py
Created January 20, 2010 18:48
automate cloud packaging of Titanium applications (see http://www.appcelerator.com/)
#!/usr/bin/env python
#
# Copyright (c) 2010 The Open Planning Project
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
var ByteArray = require("binary").ByteArray;
var Stream = require("io").Stream;
exports.app = function(env) {
var stream = new Stream(new java.io.ByteArrayOutputStream());
// map defined elsewhere
map.render({
imageType: "png",
output: stream
});
var stream = new Stream(new java.io.PipedInputStream());
var _out = new java.io.PipedOutputStream(stream);
var _runnable = new java.lang.Runnable({
run: function() {
javax.imageio.ImageIO.write(_image, options.imageType, _out);
}
});
var _thread = new java.lang.Thread(_runnable);
_thread.start();
@tschaub
tschaub / gist:636779
Created October 20, 2010 16:41
simple proxy
var Client = require("ringo/httpclient").Client;
var Request = require("ringo/webapp/request").Request;
var MemoryStream = require("io").MemoryStream;
var merge = require("ringo/utils/objects").merge;
var responseForStatus = require("./util").responseForStatus;
var defer = require("ringo/promise").defer;
var app = exports.app = function(env) {
var response;
var request = new Request(env);
@tschaub
tschaub / compile-test.js
Created November 6, 2010 18:50
failing compile test
var google = Packages.com.google;
var jscomp = google.javascript.jscomp;
var ImmutableList = google.common.collect.ImmutableList;
var compiler = new jscomp.Compiler();
// assemble compiler options
var options = new jscomp.CompilerOptions();
options.setCodingConvention(new jscomp.ClosureCodingConvention());
@tschaub
tschaub / content.ftl
Created November 11, 2010 21:20
GeoJSON GetFeatureInfo Response Template
<#list features as feature>
{
"type": "Feature",
"geometry": null,
"properties": {
<#list feature.attributes as attribute>
<#if !attribute.isGeometry>
"${attribute.name}": "${attribute.value}"<#if attribute_has_next>,</#if>
</#if>
</#list>
import java.util.Arrays;
import java.util.List;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Function;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.commonjs.module.Require;
import org.mozilla.javascript.tools.shell.Global;
@tschaub
tschaub / SlowPaste.workflow
Created August 30, 2011 05:43
Automator Workflow for Slowly Pasting in Terminal
on run {input, parameters}
set clip_text to (the clipboard as text)
set clip_paragraphs to paragraphs of clip_text
if (count of clip_paragraphs) > 0 then
set line_text to item 1 of clip_paragraphs
repeat with n from 1 to count of line_text
set next_char to character n of line_text
tell application "Terminal"