May
3
A day with FeatureServer #2
Filed Under GIS, PostGIS, devs, Windows, Ubuntu, FeatureServer, Python, WFS, WMS, OpenStreetMap, Web2.0, Flickr, Twitter, OpenLayers | 2 Comments
In the previous post we have seen an introduction to FeatureServer, and we were just playing with the base edit sample, with the scribble layer.
Now it is time to use FeatureServer with our datasets: I am assuming that you will want to create FeatureServer services for shapefiles, PostGis layers, OpenStreetMap, Twitter and Flickr.
Feb
29
Do you get errors in the mapscript c# tutorial?…
Filed Under GIS, MapServer, PostGIS, devs, .NET, Tutorials, MapServer Tutorial for C# mapscript (ASP .NET), Windows | 6 Comments
…well, this is the solution to your problems (at least I hope so).
I am continuing receiving emails from people in despair that cannot successfully use this tutorial. I am sorry but I cannot answer to all this emails, so I thought to write this post in order to allow people to configure it correctly.
BTW, this demo is still working since 2 years without any problems, and the code there is just the same you can download from this blog. So it must work also for you
So if you just cannot use it, this is a check list:
If you receive the "Unable to load dll (mapscript)" error, look at this article from Tamas Szekeres (the mapscript c# mantainer).
Feb
21
A day with FeatureServer #1
Filed Under GIS, PostGIS, devs, Windows, Ubuntu, Apache, FeatureServer, QGIS, uDig, gvSIG, Python, WFS, WMS | 6 Comments
Some friends already spoke me well about FeatureServer by MetaCarta in the last weeks, so I already was waiting for having a bit of time to get started with it. Then James posted this on his blog, and my curiosity was definitely fired.
So I decided to spend a day for installing and testing it, without thinking of the lack of documentation (FeatureServer is still a young project, so no wonder here if the only way to get infos is digging in the source code and posting to the mailing list). The day I considered to spend on it then spawned to more and more hours that I could imagine, and given my actually very busy schedule at my job, I had to find free hours during the night and the weekend. I then decided to write this post to help people in getting started with FeatureServer in a quicker way that was for me.
FeatureServer is a simple and powerfull RESTful-Pythonic WFS server.
Only from this last sentence there are 3 very important things that made me like (and you should - also) FeatureServer before even getting started with it:
- Its RESTful architecture
- It is written in Python, and having chosen Plone as our CMS here at my office I am starting to like this language very much
- I truly believe that WFS is the way to go for remotely editing GIS data
Jan
30
Installing PostGIS on Ubuntu
Filed Under GIS, PostGIS, devs, Ubuntu, QGIS, uDig, gvSIG | 9 Comments
With this post I will show how to install PostGIS 1.2.1 on Postgres 8.2.5 in Ubuntu 7.10 (but this procedure should work also for previous PostGIS/Postgres/Ubuntu versions) from repositories.
I will also show you how to load and secure GIS data and how to access them with some cool OS GIS Client (QGIS, UDig and gvSIG).
If you use this instructions together with my previous post, you will have a fully functional GIS Server Open Source Ubuntu workstation!
-1- Install Postgres
If you haven't Postgres, you need to install it (PostGIS runs on top of it). Open an Ubuntu terminal, and type:
sudo apt-get install postgresql postgresql-client postgresql-contrib pgadmin3 sudo apt-get install postgresql pgadmin3
Postgres (8.2.5) will be now on your Ubuntu box.
Jan
10
Installing MapServer on Ubuntu
Filed Under GIS, MapServer, devs, Ubuntu, Apache | 8 Comments
With this post I will show hot to install MapServer 4.10.3 in Ubuntu 7.10 (but this procedure should work also for previous Ubuntu versions) from repositories.
1) set Ubuntu sources needed for this software
Add universe ( http://archive.ubuntu.com/gutsy/universe ) and multiverse repositories to your sources (by default are not in Ubuntu)
sudo gedit /etc/apt/sources.list
and uncomment this two lines:
deb http://archive.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse
save the sources.list file and then then update your sources:
sudo apt-get update
Jan
2
Here are my notes for installing Zope and Plone from source in Ubuntu. I took this notes installing on 7.10 (Gutsy) but should work without problems for earlier Ubuntu versions, and for other Linux platforms
-1- install libraries needed for build (build-essential) and Zope
sudo apt-get install build-essential python2.4-dev python-lxml python-elementtree python-imaging
-2- download zope 2.10.5 and plone 3.0.4
wget https://launchpad.net/plone/3.0/3.0.4/+download/Plone-3.0.4.tar.gz wget http://www.zope.org/Products/Zope/2.10.5/Zope-2.10.5-final.tgz
Nov
15
Ruby on Rails applications with Mongrel cluster and Apache url rewriting on Windows
Filed Under devs, Ruby on Rails, Windows, Apache | 24 Comments
In the last post I showed you a configuration for serving Ruby on Rails applications with Mongrel cluster and Apache in a *nix environment (Ubuntu).
With this post I will reproduce the same configuration in a Windows environment.
The main difference in Windows is that you cannot use the mongrel_rails command with the cluster option (provided by the mongrel_cluster gem) that relies on daemonize functionality, only available on *nix platforms.
What you will need to do is to manually create n mongrel services for the n clusters you will need. Let's see how to do that.
Nov
8
Ruby on Rails applications with Mongrel cluster and Apache url rewriting on Ubuntu
Filed Under devs, Ruby on Rails, Ubuntu, Apache | 3 Comments
This is the workflow I followed for setting up my Ubuntu (Ubuntu 7.04 - the Feisty Fawn, but should work without problems also for the latest Ubuntu 7.10 - Gutsy Gibbon ) development machine for serving Rails application with Mongrel clusters and Apache.
Install Ruby, Gems and Ruby on Rails
# install ruby sudo apt-get install ruby ri rdoc libmysql-ruby # download rubygems sudo wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz # tar rubygems tar -xvzf rubygems-0.9.4.tgz # ruby setup.rb rubygems script cd rubygems-0.9.4 sudo ruby setup.rb # download and install Ruby on Rails framework sudo gem install rails --include-dependencies
Sep
13
Writing the Domain Model classes: coding time (Castle MonoRail and ActiveRecord Tutorial - Part 5)
Filed Under devs, .NET, CastleProject, Tutorials, Castle MonoRail and ActiveRecord Tutorial | 4 Comments
This is the fifth post of a series started with this post about a MonoRail and ActiveRecord tutorial.
With this post we will finally start to write code for our MonoRail and ActiveRecord tutorial. Here we will go on writing the model classes, and from them we will autogenerate the database schema (alternatively you could first create the database schema and then generate the classes using the generator).
We need to write 5 classes for our 5 models (Album, AlbumGenre, Artist, Genre, Support). As we discussed the convention is to place them under the Models folder of our CastleProject solution.
So let's create these 5 classes.
Aug
30
Writing the Domain Model classes: implementing Relationships (Castle MonoRail and ActiveRecord Tutorial - Part 4)
Filed Under devs, .NET, CastleProject, Tutorials, Castle MonoRail and ActiveRecord Tutorial | 2 Comments
This is the fourth post of a series started with this post about a MonoRail and ActiveRecord tutorial.
Last time we wrote the Album class and we have seen how to implement the primary key mapping and simple properties mapping.
With simple properties mapping I mean the class properties that will go to map simple data type in the database. Instead with complex properties I will mean the class properties that will go to map a relationship with another table in the database.
For the album class there are simple properties (ID, Name and Year) and complex properties (Support, Artists and Genres).
The simple properties are mapped to standard data types: ID (primary key) to int, Name to string, Year to Int16.
The complex properties are mapped to object types: Support to Support Object, Artists to an IList of Artist Object and Genres to an IList of Genre objects.
Now to go on with the tutorial we should continue writing the other classes (otherwise Album class will not compile), but in this part I first want to show you how to implement relationships in your class.
For a complete introduction to relationship mapping in ActiveRecord you can look here. In this tutorial we will use the most important relationship mapping kinds: BelongsTo, HasAndBelongsToMany (simple and with an attribute).
