Skip to content

Instantly share code, notes, and snippets.

View arbakker's full-sized avatar

Anton Bakker arbakker

  • Kadaster
  • Apeldoorn
View GitHub Profile

Instruction for using PCAPI

Instructions for using the PCAPI for app development. Original documentation can be found here. Source code is hosted on Github.

1. Usage

For the mobile app, you will need a server-side compenent for the app to communicate with. This will be PCAPI, which at the moment is running at EDINA, university of Edinburgh. PCAPI receives and stores observations, when these are send to PCAPI. PCAPI can also publish the observations to a WFS server, so the observations will be avalaible in a standardized way. This is a requirement for your application, but PCAPI is taking care of this. This document will explain how to setup a PCAPI development server and how to "talk" to PCAPI. You will need a development server, since most of the data you will be creating during development will just be dummy data. So it is better to not "bother" the live serv

Manual to publish postgis layer in GeoServer

Install GeoServer (in this case Geoserver 2.5.2) on machine, then acces the adminpanel of geoserver through: localhost:8080/geoserver/web

And login with user admin and pass geoserver.

1. Create workspace in

Go to Workspaces and click 'Add new workspace'.

Instructions to build android app

Prerequisites

  1. Create a private key according to this: http://developer.android.com/tools/publishing/app-signing.html#secure-key keytool -genkey -v -keystore my-release-key.keystore -alias scb_app -keyalg RSA -keysize 2048 -validity 10000
  2. Create ant.properties file with the following lines: key.store=/anton/Workspace/android- keys/my-release-key.keystore key.alias=scb_app
@arbakker
arbakker / gist:ed43ea5dd862a8bdbbdb
Last active August 29, 2015 14:16
GeoServer ArcSDE Issue
2015-03-02 17:30:55,872 ERROR [wicket.RequestCycle] - org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[btpool0-8,5,main], giving up trying to get the page for path: 7:resource
org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[btpool0-8,5,main], giving up trying to get the page for path: 7:resource
at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.ser
@arbakker
arbakker / gist:33a4c152f80fba8860d8
Last active August 29, 2015 14:19
Create highres square images
gm convert ~/Downloads/DSC_0255.jpg -resize "600x" -unsharp 2x0.5+0.7+0 -quality 98 jpg:- | gm convert -size 600x600 jpg:- -thumbnail 600x600^ -gravity north -extent 600x600 disc-thumb.jpg
$.getJSON(aurl + "schedule2.cfm?" + "sport=" + sportID, function (data) {
}).success(function (a,b,c) {
var items=a.items;
$.each(items, function (index, value) {
$.getJSON(aurl + "detail.cfm?" + "sport=" + value.id, function (data2) {
@arbakker
arbakker / settings.xml
Created September 16, 2016 09:13
GeoServer WMS settings configuration file.
<wms>
<id>WMSInfoImpl--6d507638:13a005ea3a2:-7ff3</id>
<workspace>
<id>WorkspaceInfoImpl--570ae188:124761b8d78:-7ff3</id>
</workspace>
<enabled>true</enabled>
<name>WMS</name>
<title>GeoServer Web Map Service</title>
<maintainer>http://geoserver.org/comm</maintainer>
<abstrct>A compliant implementation of WMS plus most of the SLD extension (dynamic styling). Can also generate PDF, SVG, KML, GeoRSS</abstrct>
@arbakker
arbakker / check_layergroups.py
Created May 7, 2018 11:29
Python script to check GeoServer layergroups integrity
#!/usr/bin/env python
import os
import glob
import lxml.etree as ET
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("path", help="path to GeoServer data directory")
args = parser.parse_args()
# -------------------------------
# MapProxy configuration for debugging getfeatureinfo feature_count issue
# -------------------------------
# Starts the following services:
# Demo:
# http://localhost:8080/demo
# WMS:
# capabilities: http://localhost:8080/service?REQUEST=GetCapabilities
# WMTS:
# capabilities: http://localhost:8080/wmts/1.0.0/WMTSCapabilities.xml
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: `basename $0` [endpoint] [file_path]"
exit 0
fi
if [ -z "$2" ]
then
echo "Usage: `basename $0` [endpoint] [file_path]"