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:4655096
Created January 28, 2013 12:23
OL3 format development questions
* should XML class still have read and write functions, or just use goog.dom.xml functions straight up?
bart-van-den-eijndens-macbook-pro:geoserver-geonode-ext bartvde$ ls /var/lib/geoserver/geonode-data/
data gwc imports printing2 temp wcs.xml wps.xml
demo gwc-gs.xml logging.xml process_tmp_dir uploader wfs.xml
global.xml gwc-layers logs security uploader.xml.example wms.xml
gs-data images printing styles uploads workspaces
bart-van-den-eijndens-macbook-pro:geoserver-geonode-ext bartvde$ ./startup.sh
CompilerOracle: exclude net/sf/saxon/event/ReceivingContentHandler.startElement
[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in your local
repository will be inaccessible.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building GeoNode GeoServer Extensions
[INFO] task-segment: [jetty:run]
Ext.ns("myapp.plugins");
myapp.plugins.AddLayers = Ext.extend(gxp.plugins.AddLayers, {
ptype: "myapp_addlayers",
addActions: function() {
var actions = {
iconCls: 'gxp-icon-addlayers',
text: this.findActionMenuText,
// override to always use the proxy also on same origin requests
OpenLayers.Request.makeSameOrigin = function(url, proxy) {
if (proxy) {
if (typeof proxy == "function") {
url = proxy(url);
} else {
url = proxy + encodeURIComponent(url);
}
}
return url;
@bartvde
bartvde / geogit_diff
Created December 7, 2012 12:39
geogit diff
java.lang.NullPointerException: id
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:208)
at org.geogit.storage.bdbje.JEObjectDatabase.exists(JEObjectDatabase.java:170)
at org.geogit.storage.bdbje.JEStagingDatabase.get(JEStagingDatabase.java:151)
at org.geogit.cli.porcelain.Diff$FullPrinter.print(Diff.java:185)
at org.geogit.cli.porcelain.Diff.runInternal(Diff.java:110)
at org.geogit.cli.AbstractCommand.run(AbstractCommand.java:32)
at org.geogit.cli.GeogitCLI.execute(GeogitCLI.java:327)
at org.geogit.cli.GeogitCLI.processCommand(GeogitCLI.java:263)
at org.geogit.cli.GeogitCLI.main(GeogitCLI.java:216)
@bartvde
bartvde / dft.xml
Created November 22, 2012 13:27
dft
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" 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:Update typeName="asbuilt:NOTES" xmlns:asbuilt="http://www.sfmta.com/">
<wfs:Property><wfs:Name>MEMO</wfs:Name><wfs:Value>sssss</wfs:Value></wfs:Property>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:FeatureId fid="DOCS.98997"/></ogc:Filter>
</wfs:Update></wfs:Transaction>
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows http://localhost:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">
@bartvde
bartvde / upgrade_ST21
Created November 8, 2012 10:19
upgrade to Sencha Touch 2.1 and Sencha Cmd 3.0
Watch out if you have an existing build.xml in your project. Make sure you use the Sencha version.
Copying OpenLayers.js was possible before with adding the following in app.json:
```
"resources": [
"externals/openlayers/build/OpenLayers.js",
```
This does not work anymore, error is:
bart-van-den-eijndens-macbook-pro:gxp bartvde$ git diff examples/viewer.js
diff --git a/examples/viewer.js b/examples/viewer.js
index c7c1ec6..5b3317f 100644
--- a/examples/viewer.js
+++ b/examples/viewer.js
@@ -95,6 +95,18 @@ Ext.onReady(function() {
},
outputTarget: "south"
}, {
+ ptype: "gxp_selectedfeatureactions",
@bartvde
bartvde / print_payload
Created September 27, 2012 07:25
print payload
{"units":"m","srs":"EPSG:900913","layout":"A4","dpi":75,"outputFilename":"GeoExplorer-print","mapTitle":"GeoExplorer Demo Map","comment":"This is a demonstration of GeoExplorer, an application for assembling and publishing web based maps. After adding layer to the map, find the 'Export Map' button above to embed this map in any web page.","layers":[{"baseURL":"http://suite.opengeo.org/geoserver/wms?SERVICE=WMS&","opacity":1,"singleTile":false,"type":"WMS","layers":["world:cities"],"format":"image/png","styles":[""],"customParams":{"EXCEPTIONS":null,"TRANSPARENT":true,"TILED":true}}],"pages":[{"center":[0,0],"scale":262144000,"rotation":0}]}