installing geoserver on debian

I just installed geoserver on debian using apache 2.2 . Here’s what I did:

First of all I installed jetty using “sudo aptitude install jetty” , then I grabbed the geoserver source from http://svn.codehaus.org/geoserver/trunk/ and compiled it using openjdk-6 and maven 2.2  (looks like the build fails using the standard maven in debian, so I grabbed a version of maven from ftp://mirrors.sunsite.dk ) .

After compiling, I copied geoserver/src/web/app/target/geoserver.war to /usr/share/jetty/webapps/ and restarted jetty using /etc/init.d/jetty restart .

I can only access port 80 on my webhost, and I need apache 2 for other purposes , so I had to configure mod_proxy. I setup a virtual host in /etc/apache2/sites-available/geo.searchzen.org and symlinked it to /etc/apache2/sites-enabled/geo.searchzen.org . To enable mod_proxy , I created  symlinks  for  /etc/apache2/mods-available/proxy.load and /etc/apache2/mods-available/proxy_http.load to /etc/apache2/mods-enabled. (mod_proxy fails without the symlink to proxy_http.load)

Here’s the relevant parts of my mod_proxy configuration in /etc/apache2/sites-enabled/geo.searchzen.org :

Tags:

Listening to the geoguys at wherecamp eu 2011

Today I attended the first day of Wherecamp EU 2011  unconference, learning about the latest stuff on the geoscene.   This being my first geo-related event , I didn’t know anybody  - but the geoguys seemed like a friendly lot . The Wherecamps are annually returning events all over the world – and it looked like the most of the guys knew each other from a lot of earlier events (and of course there were some friendly rivalry between the Nokia, google and openstreetmap guys).

Ed Parsons discussing open data

I started the day by dropping in late   ( I had been eating breakfeast with my family) . When I arrived , Ed parsons from Google lead a discussion on  how we want goverments to share data. It  sounds like Google are trying to help out the EU with  the process of sharing data.  During the discussion  I noted that people do not like the general idea of goverments sharing data in form of pdf reports or other non machine-readable forms – people also discussed the pros and cons of adding a clause of making data collected for govements “open”  - and what “open” should mean.

 

Kashif Rasul leading a debate on geodatabases

After walking around a bit to find the room,  I participated in a session called  ”Postgis on an iphone?” by Kashif Rasul. I think Kashif wanted to talk about his libpg-ios project where he is building a client for postgis that runs on the iphone  - but the discussion ended up more in the general concepts of what a geo database can do. This session was great! At the end of the session I had an impression of what the general expectations are of a geodatabase.   Kashif left some notes here

Gary Gale  talking about his experience with his w3c work on poi

 

I walked into the middle of  a session (true unconference style) while Gary Gale was talking about “democratic maps”. Gary talked about the difference  in the production of maps back from when maps were produced and printed into a book – not changing  for years-  to today where changes are almost instant .

After that  he talked  about his experience on the poi working group at the w3c working group , trying to define what a place of interest is.

 

 

Peter Batty on “To G or not to G”

After lunch Petter Batty talked about his work at ubisense and the various different architectures his products has been through – the current architecture is using Postgis and mapfish with a mix of google maps and openlayers. It sounded like a healthy approach to mix the use of google maps for publicly facing stuff – and using Openlayers for more complex data.  During his talk , Peter discussed various licensing aspects of google appengine and why he chose not to use it  in production for enterprise clients.

I also attended a Q/A session with the Openstreetmap guys , they managed to keep focus away from their upcoming license change for a bit, but then the debate went over into license discussions – with the Google and Nokia guys giving some friendly rivalry. I was a bit bored, so I decided to checkout potlach2 .  I am not a big fan of flash – so I hope to find a javascript openlayers editor to contribute to.

The last session I attended was by Georgi Kobilarov from Uberblick (of dbpedia fame). They are working on aggregating place data and commentary from various social networking sites.  I will look into this technology in the future.

All in all – a day well spent in Berlin . I am here with my family , so I will spend the rest of the weekend seeing the sights  . I hope to attend another wherecamp in the future!

 

 

 

Tags:

geocoding with nominatim

Update 2011-03-30: I fixed som z-index issues that made the example fail in browsers other than google chrome

I have been playing around with nominatim for geocoding using openstreetmaps data. You can see the result here . I took the original frontend code from nominatim.org and added a Openstreetmaps map .

Tags:

git svn goodness

Some time ago I put a experimental websocket gameserver using node js and socket-io into a branch on 1942js on google code.

These days I prefer git over svn ,so I created 1942jsmulti on github.com and tried this :

git svn clone https://1942js.googlecode.com/svn/branches/multiplayer/ 1942jsmulti
git remote add origin git@github.com:jacobandresen/1942jsmulti.git
git push origin master

Now I can mirror changes from the svn repo and still use git . sweet!

Tags:

openlayers 2.8 supports WFS-T

if you are in a organisation where you store data with geographical information associated with it , then you have the option of sharing your data using the following standards specified by OGC:

One way to leverage these standards is to use the geoserver project for data storage and the openlayers project web for showing and editing maps.update 2009-09-03: When integrating with the extjs framework , then it is worth using the geoext project.

An example snippet from geoserver shows the use of WFS-T for inserting geometric data with associated metadata for an alley in Tasmania. I’ll just bring it here:

xmlns:wfs="http://www.opengis.net/wfs"
xmlns:topp="http://www.openplans.org/topp"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd http://www.openplans.org/topp http://localhost:8080/geoserver/wfs/DescribeFeatureType?typename=topp:tasmania_roads">

494475.71056415,5433016.8189323 494982.70115662,5435041.95096618

alley

Note that oracle has a well supported ways of extracting GML from spatial datatypes if you need to construct the wfs transactions yourself ( oracle locator )

At the first glance wfs can seem a bit complicated. Luckily openlayers has nice wrappings for it that is easily accessed from code as shown in one of their examples running here :