Notes from Where Camp Boston 2011

I had a great time at this little event and it was good prep for the Maine GIS User group’s Ignite meeting tonight. Hopefully I’ll be able to attend more stuff like this in the future. But, before then, I’d better get some materials together about Spatialite in return for the kind gentleman giving the spatial sql talk at my request (from the session board).

So what follows are my notes from Where Camp Boston 2011, and in generally chronological order.

Session board

The session board at Where camp Boston 2011

sailing, snow, halloween, boston, crazy, awesome!

sailing, snow, halloween, boston, crazy, awesome!

Crazy folks out sailing. When I left at 6pm-ish it was raining hard with snow mixed in and nearly dark out – they were still sailing. I take my hand off to them.

Tom McWright keynote speaker: technology, spatial curmudgeon

<Soapbox>: Data without metadata are useless crap

There was some talk about various projects using (1) publicly available historical data, or (2) data from a range of public, crowd-sourced, etc sources. There were also related discussions about collecting data for broad public use (use case 2). But all the discussions left out an important topic — which is a common malady in many discussions in the open, free, non-government (not necessarily related, but often coincident concepts) circles: documentation/metadata. I love open data. But when I use it,  I need to have convenient, parse-able, understandable, hopefully standards-based information about this stuff I am about to use. It doesn’t have to be elaborate, but it needs to be present.

 

I wish the spatial community would agree on some simple, general, common approach to embed metadata right into the data so that the two could never be separated. When you create/maintain/manage/supply data, you’d better assume responsibility for the metadata and the data, as they should be two sides of the same coin. So, in your spatial DBs, maybe always include a table called.. DOCUMENTATION, link to the information_schema and create records contains Dublin Core RDF, or SOMETHING. Now I just need to follow my own advice…

</Soapbox>

See:

Scratch pad

History of Rasters in PostGIS and a glimpse into the mechanics of an Open Source Project

I love this post thread so much I’m going to stick it into my blog. First because if you read into it and follow the links you can see the history of raster support in PostGIS (or reasons for lack thereof) for the PostGIS newbie readers. You can also see Paul’s encouragement and explanation of how this open source project works. Open Source developers develop stuff for their own needs. However, if you can make a well educated and clear argument for why they should spend their time putting your functionality into the project, they might just do it. Otherwise, they usually say, “it’s open source. code it yourself.”

——-

----- Original Message ----From: Paul Ramsey 
To: Pierre Racine 
Cc: warmerdam@pobox.com; nicolas.gignac@msp.gouv.qc.ca; smarshall@wsi.com; PostGIS Users Discussion 
Sent: Monday, July 14, 2008 10:11:05 PMSubject: Re: [postgis-users] PostGIS WKT Raster

Pierre,

Firstly, let me commend you for your understanding of the open sourcecommunity process! Not being shy, not taking "no" for an answer, andneedling the people you need to move are all excellent ways to keepthe wheels turning, particularly when done with good humor as you haveshown.  Other first timers could/should learn from your example!

So now I owe you a reply, no doubt:

You have gotten over my first hurdle, in that you have an actual usecase for raster, that is more involved than "I want to my images,because I hear database are faster".

I have long thought that analysis, in particular a fusing of vectorand raster analysis was the only really compelling use case for rasterin database, so again, you're on the side of the angels (me).

So, is your *design* good?

Probably as good as possible, but let me point out places of concernand see what you think:

- You propose to do this because their is a "great demand for it", butthe great demand is generally the stupid demand for images-in-database"just because". You must either somehow *stop* those people, or ensureyour solution is capable of meeting their needs.  Since you propose tomeet the demand, presumably you aim for the latter.  This *will*involve a good deal of non-analytical pre-processing infrastructure toconvert people's multi-resolution, overlapping/underlapping filelibraries into a uniform resolution coverage.  I suggest you ignorethese people.- You are going to carry a certain amount of information into thedatabase and process data into bands, potentially for externalstorage.  Why not store external data in a format like TIFF that canhold all the bands and pyramids, etc?- Once you have the idea of external storage, you could as easily moveto internal storage with the BLOB interface.  Not that I recommendthis, it's easier to back up and restore a filesystem of files than ahuge database full of BLOBs.- If you step back a bit and don't even bother splitting up therasters into tiles, you can use an existing raster access library likeGDAL to work with serialized data.- Or you could use GRASS as your serialization format and hook intothat.  Added bonus: free algorithms.- Basically the less you muck with creating a "disk format for raster"(solved problem) and the more you muck with "integrating raster andvector analysis in SQL" (unsolved problem) the more leverage you willget.- I like your external storage idea. What are the implications forCREATE TABLE foo AS SELECT...?

Summary: your proposal is better than any I have seen, addressessolving problems that if solved will provide actual new functionalityand benefit to users, and clearly you've thought this through oversome time.

So, I look forward to seeing your initial plan of attack for development  :)  

As you begin looking at the code base, you'll find a few stubs ofraster support that Sandro built at my request for rasterizing vectorsinto CHIPs in the database... basically the first tip toe down thepath you have written up so completely.

Go with God.

Paul
On Mon, Jul 14, 2008 at 12:43 PM, Pierre Racine wrote: Paul Ramsey hasn't yet said my design was: -a "meme" (http://blog.cleverelephant.ca/2008/06/x-my-l.html), -a "waste of time" (http://postgis.refractions.net/pipermail/postgis-devel/2007-July/002653.html) -"useless" (http://postgis.refractions.net/pipermail/postgis-users/2007-May/015578.html) -that it was "pointless" (http://postgis.refractions.net/pipermail/postgis-users/2007-October/017250.html) -or that I was a "fool" (http://postgis.refractions.net/pipermail/postgis-users/2007-October/017239.html) So I conclude it's a good design!!! :-) He asked for a good design some time ago for raster in the database (http://postgis.refractions.net/pipermail/postgis-users/2006-October/013628.html) Where is the clever elephant? Pierre

—–Message d’origine—–

De : postgis-users-bounces@postgis.refractions.net

[mailto:postgis-users-bounces@postgis.refractions.net] De la

part de Pierre Racine

Envoyé : 7 juillet 2008 11:30

À : postgis-users@postgis.refractions.net

Cc : warmerdam@pobox.com; nicolas.gignac@msp.gouv.qc.ca;

smarshall@wsi.com

Objet : [postgis-users] PostGIS WKT Raster

Hi raster people,

I’m starting a 2-3 year project to develop a web-based application to

automate certain GIS tasks commonly needed in ecological research. The

tool will support queries over VERY large extent based on a Canada-wide

assemblages of raster and vector data layers. The queries will

typically

involve intersecting those layers with buffers defined around points or

transects.

We would like to implement this system with PostGIS, but it currently

does not to support raster data. We could convert all our data to a

single format (raster or vector) and use other tools, however PostGIS

seems to us the best and most powerful vector analysis tool available

and we would prefer to use it. We would like to develop a unified

toolkit so that the application mostly need not worry about

whether base

layers are in vector or raster format. We are then strong proponents of

having raster functionality in PostGIS. I have reviewed every thread on

this list on the subject. I have analysed them and I have compiled them

in the wiki

(http://postgis.refractions.net/support/wiki/index.php?RasterNotes).

The argument goes like this: The geodatabase paradigm has been a major

recent enhancement in GIS technology, I feel that the seamless

integration of raster and vector analysis should be one of the next.

Spatial analysis is emerging, beside the making and publishing of maps,

as one of the main desktop and web-GIS applications. Rastor/vector

seamless integration is already done for display (in most GIS and with

MapServer or ArcIMS on the web) but definitely not for

analysis. Desktop

analysts must still learn to use two distinct toolsets within most

(all?) GIS packages: one toolset for raster and another for

vector data.

Would not it be easier to build and use applications if we had a unique

data query and analysis toolset independent of the data model? I don’t

know any tool having this approach right now. A PostGIS foundation that

addressed this problem would offer better directions to application

developers than the dichotomic one proposed by ESRI since their

beginning. It would provide the necessary abstraction to develop GIS

with ONE set of analysis tools. I feel this is one good reason to

integrate raster in PostGIS. There is “GIS” in the word “PostGIS”.

PostGIS should then provide a COMPLETE GIS data foundation (read

“base”!) for geoapplication developers. I think Steve Marshall’s design

is a good step in this direction

(http://postgis.refractions.net/pipermail/postgis-users/2006-De

cember/01

4059.html).

At the same time, we would have a chance to reconsider the raster model

as a coverage instead of a series of images. Spatial databases got rid

of map sheets by allowing complete vector coverages to be stored as

single table (e.g. the entire United States) This approach should works

for raster data as well. Isn’t this the approach taken by ArcSDE?

In summary, I think we must stop thinking about PostGIS as a

mere vector

data repository to support mapping applications. This is the way most

objectors to raster integration seem to view it. We must think about

PostGIS as a powerfull indexed data analysis tool. Seamless

raster/vector analysis in the database could lead to a major

simplification of geoapplications.

I prepared a PowerPoint presentation with a complete specification of

raster in PostGIS and an analysis of what should be the result of

overlay operation between raster and vector layers. You can download

this PPT at: http://www.cef-cfr.ca/uploads/Membres/WKTRasterPostGIS.ppt

Please have a look at it, feel free to answer questions I ask and

comment.

Here are the main propositions of this design:

-Like a vector feature, rasters are stored as a subtype of “geometry”(a

new WKB/WKT geometry type called RASTER instead of POINT or POLYGON)

-There is no distinction between a raster and a tile. A tile

is a raster

and a table of rasters can be seen as a tile coverage. Hence, contrary

to Oracle GeoRaster, only one table is needed to store a coverage and

there is only one type.

-It support raster in the database AND raster out of the database. This

mailing list has shown that both approaches have their pros and cons.

Let’s not impose one approach over the other.

-It supports: multi-band, pyramids and variable nodata value, raster

size, pixel size and pixel type for each row.

-It supports import/export from/to Tiff and JPEG.

But moreover seamless raster/vector integration is materialized by

theses propositions:

-A lot of existing vector-only functions are adapted to work

with raster

also.

-Most new raster functions are also implemented to work with vector.

Only basic raster derivation functions are proposed.

-Most vector/vector existing functions are adapted to work seamlessly

with raster/vector or raster/raster

I also want to ask:

-What is the status of PGRaster? Is any development now underway?

We have some resources to devote to this project over the next

few years

and are very interested in forming collaborations to move this work

forward.

Pierre Racine

GIS/Programmer Analyst

University Laval

http://www.cef-cfr.ca/index.php?n=Membres.PierreRacine

Changing a light bulb

Bought one of these Bulb Changer Kit/Pole tonight after months of dragging my feet about hauling the ladder up stairs to change the ceiling bulb in the bathroom. Totally worth money. If you have tall ceilings with light bulbs that hang down. Get one of these things. Period.

Greed is not synonymous with America

But it’s getting harder to prove that point to myself when I read things like this.

From the Motley Fool via Yahoo
Vanity and Vulgarity at Enron
Thu Jun 3,10:20 AM ET
By Seth Jayson

“In one tape, after enduring a bit of ribbing about “how much money you
guys stole from those poor grandmothers in California,” a trader says,
“Yeah, Grandma Millie, man. But she’s the one who couldn’t figure out
how to (expletive) vote on the butterfly ballotâEuro¦” The first
speaker responds, “Yeah, now she wants her (expletive) money back for
all the power you’ve… jammed right up her (expletive) for (expletive)
250 dollars a megawatt-hour.”

Pride
has always been the fatal flaw. Just look at literature. From Homer to
Hamlet and even Harry Potter (news – web sites), hubris is the vice
that brings down the mighty.

These days, our most visible dramas tend to play out in legal action,
and some pretty compelling language has come to light in the Snohomish
County, Wash., Public Utilities District’s (PUD) efforts to obtain
compensation from Enron (OTC BB: ENRNQ.PK – News) for alleged market
manipulation.

Recent transcripts of conversations between Enron’s West Coast energy
traders offer vivid proof that the firm’s sophisticated, self-obsessed
thieves didn’t just hold a dim view of its unwitting stockholders.
Public entities, like the state of California, were considered easy
prey. Timothy Belden, one of two traders from the Portland office who
have pled guilty and cut a deal with prosecutors, says on one tape that
the firm’s trading practices “just (expletive) California… to the
tune of a million bucks or two a day.”

As you might expect, these guys harbored no affection for the rest of
us, either. You and I — derisively referred to as “Grandma Millie” by
the traders — are looked at as ignorant rubes, ripe for the rip-off.

In one tape, after enduring a bit of ribbing about “how much money you
guys stole from those poor grandmothers in California,” a trader says,
“Yeah, Grandma Millie, man. But she’s the one who couldn’t figure out
how to (expletive) vote on the butterfly ballotâEuro¦” The first
speaker responds, “Yeah, now she wants her (expletive) money back for
all the power you’ve… jammed right up her (expletive) for (expletive)
250 dollars a megawatt-hour.”

Other tapes document traders’ nefarious plans such as sending power
away from areas that needed it, manufacturing grid congestion that
Enron would later be paid to alleviate. They also capture the hope that
then-candidate George W. Bush might someday appoint Ken Lay as U.S.
energy secretary.

“How great would that be for all the players in the market?” one asked.

Pretty great, I’ll bet. And given the unbelievable arrogance displayed
by this gaggle of crooks — they knew these conversations were being
taped, for crying out loud — we should be mighty glad it didn’t come
to pass. But most of all, we should hope that this kind of criminal
conceit is punished as mightily in our courtrooms as it is in fiction.

My thoughts exactly

Frankly, I think this is bull and it represents a growing frustration
of mine over corporate greed and their ability to hijack our laws for
the benefit their own interests through sludgehammer oppression of the
free expression and creativity of the Amerian people. Everyone just
grow up AND THINK ABOUT THE FUTURE PAST THE NEXT FISCAL QUARTER.


From the article on slashdot.org http://yro.slashdot.org/article.pl?sid=03/10/09/2211259&mode=nested&tid=123&tid=126&tid=141&tid=172&tid=188&tid=93&tid=99

SunnComm Says Pointing to Shift Key ‘Possible Felony’
Posted by CowboyNeal on Thursday October 09, @05:56PM

from the same-shift-not-different-dmca dept.
The Importance of writes “A couple of weeks ago BMG released an audio CD with a new type of DRM.
Earlier this week, a computer science graduate student at Princeton
wrote a report showing the DRM was ineffective – it could easily be
defeated by use of the ‘shift’ key.
The stock of the DRM company (SunnComm) has since fallen by 20%. Now,
SunnComm plans to sue the student under the DMCA and claim that
SunnComm’s reputation has been falsely damaged. According to SunnComm’s
CEO, ‘No matter what their credentials or rationale, it is wrong to use
one’s knowledge and the cover of academia to facilitate piracy and
theft of digital property.’”

” this is retarded (Score:1)
by Anonymous Coward on Thursday October 09, @10:59PM (#7180029)

This is bullshit, just like the parents sueing a school for installing
a wireless network. The people in this country (USA) need to get a
*censored*ing life or a job or something. I swear to God, all anyone
knows how to do here is call their frickin lawyers. People need to stop
sueing everyone for every little thing, and stop trying to act like
their precious intellectual property is more important than the people
paying them to use it. Boycott is not the answer either, I normally am
not for government regulation but we need to make these things a real
issue for the American public otherwise they will keep electing idiots
that don’t tell the RIAA/MPAA to *censored* off. Most people over 40
have no clue what the DMCA is or what an MP3 is or even that the RIAA
and MPAA are pulling this bullshit. Every time I turn on CNN all I want
to do it walk up to someone new and say, no, you can’t *censored*ing
sue for that, and for being so damn dumb I’m going to punch you in the
head until you pass out. GRRR!”