Linq for Raster Geoprocessing

ray tracer

Most of the Linq examples I see are oriented towards SQL. Here’s something really different though –
Luke Hoban has an example of using Linq to do ray tracing. I consider Ray tracing as a special case of raster processing. It would be interesting to simplify this to show a more conventional use case for raster geoprocessing. An important part of geoprocessing though, is the ability to save expressions (or scripts). Notice that the Expression tree is both code and data. Since it is data, I should be able to serialize it, right? While Expression(TDelegate) has a ToString() method, I don’t see a constructor that accepts a string. This thread is the closest thing I found that suggests deserialization is possible.

In the ray tracing example, this means a client would build a raytracing expression then send it to a server (that has lots of cpu (or gpu?)) for execution.

Or thinking in terms of arcmap, – you can save the calculator code in a .cal file. What if there were a raster calculator that saved expression trees in a similar fashion?

Update: Looks like InterLINQ might be the ticket.

Advertisements

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: