Pages

Tuesday, 23 July 2013

GeoServer 2.4 Beta

My series on making the 2.4-beta release concludes today:


There was an impressive showing of work, testing, translation and dedication. Excellent work by all involved.

Postscript - GeoServer 2.3.3 downloads
GeoServer 2.3.3 sees a pretty even split between platforms (where the platform independent bin and war archives can be run on linux, mac or windows).


Wednesday, 17 July 2013

Counting Features

Had a bit of fun explaining FeatureSource.getCount( Query ) on IRC.

Here is the code example:
    Query query = new Query("countries", CQL.toFilter("REGION = 3") );
    int count = featureSource.getCount( query );
    if( count == -1 ){
        count = featureSource.getFeatures( query ).size();
    }

Why the difference? The first one checks the header (or index) if such a thing exists. The second one checks the content.

Docs harmed in the making of this post: