Developers Corner: Improving GeoServer security

Hi,during the last few weeks we have been thinking a lot about improving the GeoServer security, making it at the same time easier to integrate with external authorization systems and making it more expressive in terms of what kind of security rules can be expressed.As part of the work we have been re-evaluating how the security can be applied in an ever growing software like GeoServer without having to cripple the available service abilities or to have to run after the developers constantly adding new features to the system.The evaluation resulted in a (long-ish) comparison of the possible models, including...

More

Estimating time and space required to build a GeoWebCache on disk cache

An outstanding issue when using GeoWebCache is finding out how much disk space a certain layer will use, on disk, once fully cached, and also how much time it will take to pre-seed the cache up until a certain layer.The GeoWebCache site used to link to a Google Documents spreadsheet providing such an estimate, but the link is gone from the current documentation and, regardless, we found the spreadsheet to be less than accurate, basically ending up computing at the very least the seeding size of 1/4 of the entire world no matter how small the given area was.Therefore we...

More

GeoServer Tips & Tricks: Auto alignement of labels within polygons

Labeling polygons can sometimes be tricky. GeoServer ormally places the labels horizontally within the polygon, accepting only labels that "sit" inside the polygon for at least half of their length.However sometimes the polygons just don't collaborate with that setup, they can be thin and long, but rotated on an non horizontal angle: in this case GeoServer would not label them until the user zoomed in quite a bit in the map.Some time ago Björn Hartell and Andrea Aime started working on a patch to add a vendor option auto-rotate the labels for those polygons. After a few iterations and work...

More

Fun Stuff: Computing circular buffers in geographic coordinates

Finding all the objects within a certain distance from a point is surely a common GIS problem. The problem is normally solved using OGC "dwithin" filters or by computing a buffer and then finding all the intersecting objects. Very often both of the approaches fail miserably in case the coordinate system is a geographic one, as common libraries, such as JTS and GEOS, are not able to handle the non planar nature of it. As far as "dwithin" is concerned rencent Oracle and PostGIS versions can manage the problem properly, but what to do if they cannot be used?We had...

More