Motivations behind Open Source

Waxing philosophical tonight.  Apologies in advance. Paul Ramsey had a great opening keynote opening keynote at FOSS4G on the business model/economics (punchline: business tactic) behind Open Source software, and Free and Open Source companies.  It was funny and convincing, began with absurdity, and made me laugh, as did his PostGIS for Power Users.  His presentation style is at once casual, clever, and passionate.  What caught … Continue reading Motivations behind Open Source

Cleaning PostGIS Geometries — Revised

In a previous post: “Another short post. Got self intersecting geometries? Want to fix them inside PostGIS? Me too. Fortunately, someone has already written the code, so you and I don’t have to: http://linfiniti.com/2010/07/cleaning-geometries-inside-postgis/ Now, let’s see how long it takes to run on my 760,000 record landcover table… .”   As usual, there’s a better way.  With PostGIS 2.0, you can (will be able … Continue reading Cleaning PostGIS Geometries — Revised

What is the center line of a complex polygon?

Sat in on a great presentation yesterday by Tim Schaub and Justin Deoliveira on GeoScript. Definitely check out their tutorials. To practice what I learned, I thought I’d apply it to the problem of how to find the centerline of a polygon. What do I mean by the centerline of a polygon? Well in the case of a stream that is drawn with both it’s … Continue reading What is the center line of a complex polygon?

Debian Configuration– Tomcat on Boot, revision

I revised my startup script for Tomcat to use a non-privileged user for security reasons. I used the following page as my resource: http://linux-sxs.org/internet_serving/c140.html #!/bin/sh # /etc/init.d/tomcat6: start Tomcat6 server. test -f /opt/apache-tomcat-6.0.32/bin/startup.sh || exit 0 PATH=$PATH:/opt/apache-tomcat-6.0.32/bin/ case “$1” in start) export JAVA_HOME=/opt/jre1.6.0_26/ logger -t Tomcat6 “Starting Tomcat 6…” exec su – tomcat -c /opt/apache-tomcat-6.0.32/bin/startup.sh | logger -t Tomcat6 ;; stop) export JAVA_HOME=/opt/jre1.6.0_26/ logger -t … Continue reading Debian Configuration– Tomcat on Boot, revision

PostgreSQL Views within GeoServer, GetFeatureInfo with Freemarker Templates, etc.

GeoServer now has the ability to consume database views from PostGIS, not just raw tables. I say it “now” has that ability– I think that came online with GeoServer 2.x series, but I’m just “now” starting to take advantage of it. You can also create views on the fly within GeoServer, but I prefer to apply the logic at the database level, just in case … Continue reading PostgreSQL Views within GeoServer, GetFeatureInfo with Freemarker Templates, etc.

FOSS4G 2011 Denver– Ideal schedule

I spent a few hours winnowing down my list of desired talks at FOSS4G and came up with the following list. Path dependence (i.e. technologies related to the ones I’m already deploying) were at the top of this list, but I do hope to expand my knowledge of all the options as well. For almost every slot, there were anywhere from 2 to 4 presentations … Continue reading FOSS4G 2011 Denver– Ideal schedule

Really loooong WMS requests

We have a GeoExt/Mapfish/GeoServer/PostGIS stack in house that allows us to print nice maps through a web interface. There has been a ceiling, however, as far as size– 140dpi and 22×34 has been the largest we’ve been able to render maps, and even then, sometimes the layers are too complicated. For a long time I was under the naïve impression that it was a memory … Continue reading Really loooong WMS requests

GDAL, MrSid, and nearblack

Translating MrSid lossy compressed files into uncompressed imagery has its drawbacks, including licensing and artifacts. Old versions of fwtools, which includes the GDAL utilities (and more), were compiled with a license that allowed for the translation of MrSid into e.g. Erdas Imagine images or GeoTiff. The licensing changed on that library, so FWTools and MS4W don’t do this anymore. If you have a compiled version … Continue reading GDAL, MrSid, and nearblack