Skip to content

Instantly share code, notes, and snippets.

@mpriour
mpriour / geotools-move.log
Created September 29, 2011 15:27
Geotools log after moving GeoserverDataDirectory to a new machine
2011-09-29 16:22:23,803 DEBUG [geoserver.logging] - Logging output to file 'E:\Tomcat60\webapps\geoserverdata\logs\verbose_03-2011.log'
2011-09-29 16:22:23,803 WARN [geoserver.logging] - Suppressing StdOut logging. If you want to see GeoServer logs, be sure to look in 'E:\Tomcat60\webapps\geoserverdata\logs\verbose_03-2011.log'
2011-09-29 16:22:23,803 DEBUG [geoserver.logging] - FINISHED CONFIGURING GEOSERVER LOGGING -------------------------
2011-09-29 16:22:23,818 DEBUG [geoserver.config] - Persisted org.geoserver.config.impl.LoggingInfoImpl to E:\Tomcat60\webapps\geoserverdata\logging.xml
2011-09-29 16:22:23,818 DEBUG [geoserver.filters] - filtering http://operativjarnvagskarta:8080/geoserver/web/
2011-09-29 16:22:23,834 DEBUG [geoserver.web] - cannot convert url: jar:file:/E:/Tomcat60/webapps/geoserver/WEB-INF/lib/web-core-2.0.2.jar!/org/geoserver/web/css/blueprint/screen.css to file (URI is not hierarchical), falling back to the inputstream for polling
2011-09-29 16:22:23,834 DEBUG [geoserver.web] - can
@mpriour
mpriour / gist:1374684
Created November 17, 2011 21:59
Saved map config vs Retrieved map config
SENT JSON
{
"tools": [
...
],
"proxy": "/proxy/?url=",
"rest": "/maps/",
"sources": {
"0": {
"ptype": "gx_olsource",
@mpriour
mpriour / gist:1377897
Created November 18, 2011 21:59
GeoTools SQL Error
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:Or>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TagTyp</ogc:PropertyName>
<ogc:Literal>GT</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TagTyp</ogc:PropertyName>
<ogc:Literal>RST</ogc:Literal>
</ogc:Or>
@mpriour
mpriour / gist:2885245
Created June 6, 2012 22:32
WFS post body
this is the post body that was posted to:
http://sfpark.demo.opengeo.org/geoserver/ows
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" outputFormat="json" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query typeName="feature:CITATION_OPPORTUNITY_VW" srsName="EPSG:900913" xmlns:feature="http://www.sfpark.org/SFenforce"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:And><ogc:And><ogc:PropertyIsGreaterThan><ogc:PropertyName>PARKING_SESSION_ID</ogc:PropertyName><ogc:Literal>-1</ogc:Literal></ogc:PropertyIsGreaterThan><ogc:Or><ogc:PropertyIsEqualTo matchCase="true"><ogc:PropertyName>PCO_BEAT</ogc:PropertyName><ogc:Literal>110</ogc:Literal></ogc:PropertyIsEqualTo><ogc:PropertyIsEqualTo matchCase="true"><ogc:PropertyName>PCO_BEAT</ogc:PropertyName><ogc:Literal>111</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Or></ogc:And><ogc:BBOX><ogc:PropertyName>GEOM</ogc:PropertyN
@mpriour
mpriour / gist:3640440
Created September 5, 2012 17:22
Mapstory backend error
File "M:\libraries\venv\lib\site-packages\django\db\utils.py", line 44, in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 'django.contrib.gis.db.backends.postgis' isnt an available database backend.
Try using django.db.backends.XXX, where XXX is one of:
'dummy', 'mysql', 'oracle', 'postgresql_psycopg2', 'sqlite3'
Error was: No module named psycopg2.extensions
@mpriour
mpriour / maps209.json
Created September 11, 2012 16:33
map config JSON from data endpoint : maps/209/data
{
"sources": {
"1": {
"title": "Geonode WMS",
"url": "http://mapstory.dev.opengeo.org/geoserver/geonode/city_limits_individualized0/wms",
"restUrl": "/gs/rest",
"version": "1.1.1",
"hidden": true,
"id": "ext-gen167"
},
@mpriour
mpriour / printng.html
Created October 24, 2012 19:50
printng html test blob
<html>
<head>
<style type="text/css">
body{background-color: red;}
h1{color: white; font-style: italic;}
p{color: blue; font-size: small;}
</style>
</head>
<body style="width: 1200px; height: 125px;">
<h1>Foo BAR baz</h1>
name: Style for DMA
defaults:
line-color: &lclr '#FF0000'
case-color: &cclr '#000000'
breaks:
0: &zb0
min: 6
1: &zb1
max: 6
min: 8
<TextSymbolizer>
<Label>
<ogc:Function name="strReplace">
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:Literal>-</ogc:Literal>
<ogc:Literal>\n</ogc:Literal>
</ogc:Function>
</Label>
</TextSymbolizer>
@mpriour
mpriour / gist:4090971
Created November 16, 2012 21:14
possible filter function use in yaml
....
label:
function:
name: 'strReplace'
property: 'label'
search: '-'
replace: '\n'
....
line: