The proposal that Sarah Beecroft and I wrote for the Open Source Bridge 2011 conference was accepted, as was our proposal for the Open Source GIS Desktop Smackdown, which we gave at GIS in Action (see previous post). I guess I have to post one of these badges now:
Tuesday, April 19, 2011
Wednesday, March 30, 2011
Recent goings on
Been a bit infrequent on updates, but I'm going to work on that.
Yesterday I presented at the "Open Source GIS Desktop Smackdown" as part of the GIS in Action regional conference. We presented gvSIG, OpenJUMP, and Quantum GIS. I presented gvSIG (using the OA edition), and handily trounced the competition, largely, I think based on the modeler, and the fact that gvSIG has a number of advanced features, in particular more advanced topology tools than anything I've seen outside of Arc. Now if only the Mac interface worked better.
Locally, the PDX OSGeo group I'm part of has officially become an OSGeo chapter, which comes with, well, very little really, but I think it's important to recognize the good work that OSGeo is doing.
Oh, and finally, as part of the aforementioned GIS in Action conference, we're running an unconference tomorrow (March 31st) and a hackathon on the following day (April 1). It's not too late to sign up and attend - and it's free! More info and registration here: http://calagator.org/events/1250459876.
Hopefully future posts will have more technical content, but for now, that is all.
Yesterday I presented at the "Open Source GIS Desktop Smackdown" as part of the GIS in Action regional conference. We presented gvSIG, OpenJUMP, and Quantum GIS. I presented gvSIG (using the OA edition), and handily trounced the competition, largely, I think based on the modeler, and the fact that gvSIG has a number of advanced features, in particular more advanced topology tools than anything I've seen outside of Arc. Now if only the Mac interface worked better.
Locally, the PDX OSGeo group I'm part of has officially become an OSGeo chapter, which comes with, well, very little really, but I think it's important to recognize the good work that OSGeo is doing.
Oh, and finally, as part of the aforementioned GIS in Action conference, we're running an unconference tomorrow (March 31st) and a hackathon on the following day (April 1). It's not too late to sign up and attend - and it's free! More info and registration here: http://calagator.org/events/1250459876.
Hopefully future posts will have more technical content, but for now, that is all.
Monday, September 20, 2010
Voronoi Diagrams in PostGIS
(Update: A faster version of this code is here: Faster Voronoi Diagrams in PostGIS)
I found myself in a situation where I needed to create a Voronoi diagram from a set of points using PostGIS. This isn't built in, but a little googling turned up a function written by Mike Leahy. I adapted it and made it a bit more generic, so it shouldn't require any editing to make it work for many (most?) cases.
Call it as: select * from voronoi(table_name text,table_primary_key text,geom_col text) as (id id_type, the_geom geometry)
For example:
select * from voronoi('oregon_cities', 'id', 'the_geom_centroids') as (id integer, the_geom geometry);
The 'as' clause is required because we don't know and don't want to assume what type your primary key might be. But, because we're returning a record type, the query planner wants to know what type to expect. If you're always using the same type, say an integer for your primary key, then it would be easy to define a type thusly:
create type my_type as (id integer, the_geom geometry);
Then change the code at line 24 from 'rec record;' to 'rec record%my_type;' and you will no longer need the 'as' clause.
Code at this URL: http://db.tt/aInuiJ2. Enjoy.
I found myself in a situation where I needed to create a Voronoi diagram from a set of points using PostGIS. This isn't built in, but a little googling turned up a function written by Mike Leahy. I adapted it and made it a bit more generic, so it shouldn't require any editing to make it work for many (most?) cases.
Call it as: select * from voronoi(table_name text,table_primary_key text,geom_col text) as (id id_type, the_geom geometry)
For example:
select * from voronoi('oregon_cities', 'id', 'the_geom_centroids') as (id integer, the_geom geometry);
The 'as' clause is required because we don't know and don't want to assume what type your primary key might be. But, because we're returning a record type, the query planner wants to know what type to expect. If you're always using the same type, say an integer for your primary key, then it would be easy to define a type thusly:
create type my_type as (id integer, the_geom geometry);
Then change the code at line 24 from 'rec record;' to 'rec record%my_type;' and you will no longer need the 'as' clause.
Code at this URL: http://db.tt/aInuiJ2. Enjoy.
Sunday, April 4, 2010
Pondering vector representations.
So one thing I've wondered is why more GIS systems can't/don't use B-splines, opting instead for simple lines. The OGC Simple Features standard defines a Curve, which must specify its method of interpolation between points, but then only defines one method – straight linear interpolation.
Obviously there are disadvantages to using b-splines, such as the assumption of accuracy which permeates so many people's interactions with GIS data. At least when you using simple linear features, as you move to a large scale map, you can see the clumsy straight lines that make up your data. But it sure would look nicer when outputting the same data to use B-splines.
Not being hugely math skilled anymore (woe for math atrophy), I'm not even sure how to go about answering the question. But some of the more interesting issues that bounce around in my mind are:
1) Do B-splines/bezíer curves even work in non-euclidean (in particular spherical) geometry?
1a) If they do, then how would one go about projecting them into a euclidean space – if one can meaningfully do so at all?
2) Assuming a "bezíer polygon" were defined as closed series of curves just like linear polygons, how would one calculate the area of said polygon?
Any math über-geeks out there in my vast (hah!) readership have any insights?
Obviously there are disadvantages to using b-splines, such as the assumption of accuracy which permeates so many people's interactions with GIS data. At least when you using simple linear features, as you move to a large scale map, you can see the clumsy straight lines that make up your data. But it sure would look nicer when outputting the same data to use B-splines.
Not being hugely math skilled anymore (woe for math atrophy), I'm not even sure how to go about answering the question. But some of the more interesting issues that bounce around in my mind are:
1) Do B-splines/bezíer curves even work in non-euclidean (in particular spherical) geometry?
1a) If they do, then how would one go about projecting them into a euclidean space – if one can meaningfully do so at all?
2) Assuming a "bezíer polygon" were defined as closed series of curves just like linear polygons, how would one calculate the area of said polygon?
Any math über-geeks out there in my vast (hah!) readership have any insights?
Wednesday, November 25, 2009
Too much of a good thing?
Slashgeo reports yet another new Open Source GIS tool, noting "Open source GIS software is crowded with options: QGIS, uDig, gvSIG, OpenJUMP, MapWindow, GRASS, OSSIM, etc."
Yes, it is - and the question to me is: "Why so many?" - I understand the arguments for a diverse software ecosystem, and I even agree with them. But with the possible exception of GRASS, most of these packages implement the same basic functionality without implementing the advanced functionality that is necessary to seriously take on ESRI. Plus, the UIs are almost always terrible, which makes the problem even worse.
So, in that spirit I'm listing a few things that I think are missing from most, if not all, OS GIS software, in no particular order:
1. Topological data model (the only exception I can think of is GRASS)
2. Editing, especially centralized, version controlled editing.
2a. Which means you need a topology model in your database
3. UIs not designed by software engineers. (Well, at least ESRI has this problem, too.)
4. Quality cartographic tools.
5. COGO tools
6. Metadata editing tools
7. Scriptability (GRASS, being command-line based is fairly scriptable, I know of no others that are.)
8. Runs on my Macs.
9. Comprehensive interface for building extensions
Well, those are a few that come to mind right away. Make more suggestions - maybe we can turn this into a manifesto.
Yes, it is - and the question to me is: "Why so many?" - I understand the arguments for a diverse software ecosystem, and I even agree with them. But with the possible exception of GRASS, most of these packages implement the same basic functionality without implementing the advanced functionality that is necessary to seriously take on ESRI. Plus, the UIs are almost always terrible, which makes the problem even worse.
So, in that spirit I'm listing a few things that I think are missing from most, if not all, OS GIS software, in no particular order:
1. Topological data model (the only exception I can think of is GRASS)
2. Editing, especially centralized, version controlled editing.
2a. Which means you need a topology model in your database
3. UIs not designed by software engineers. (Well, at least ESRI has this problem, too.)
4. Quality cartographic tools.
5. COGO tools
6. Metadata editing tools
7. Scriptability (GRASS, being command-line based is fairly scriptable, I know of no others that are.)
8. Runs on my Macs.
9. Comprehensive interface for building extensions
Well, those are a few that come to mind right away. Make more suggestions - maybe we can turn this into a manifesto.
Subscribe to:
Posts (Atom)
