Monday, October 6, 2008

Configuring the GE Smallworld FME Plugin as a Server

Anyone that has done any work with GE's version of the FME Smallworld Reader/Writer will know that it does not behave well as a stand-alone server.  So you are faced with one of two options:
- purchase SpatialBiz' FME Plug-in.  It has been designed as a server process.
- modify your existing (i.e., already paid-for) GE Smallworld Reader/Writer using a combination of Python, TICs and a few Magik enhancements to allow the FME Workspace to dynamically control the fme_tics_client class.

You can find a more detailed description by look at the "Behind the Scenes" section at http://evangelism.safe.com/smallworld2008.

Here are the steps you would need to take:
- create a Python Module that exposes Tics32.dll functionality
- extend the Python Module to expose various Magik methods such as setCollections(), rollback(), rollforward(), gotoAlternative(), etc.
- modify fme_tics_client.private_run() to listen for TICS messages from the new Python module.
- configure your FME Workspace to use the new Python Module.

I have prepared a package (licensed under LGPL) of Python and Magik code (along with a workspace sample) that I am happy to send out upon request.  Thanks to my employer (Red Planet Consulting, Inc.) for permitting me to make this available to the Smallworld community.

Send me a note at... 


...to request a free copy of the Python, Magik and FME Workspace files I used to integrate FME Server with the GE Smallworld FME Reader/Writer.

Sunday, September 28, 2008

FME Evangelist features Smallworld and FME Server

So this is what humidity feels like.  I just arrived in Hollywood, FL (USA) an hour ago having left Boulder, CO a few hours before.  Going from 1 mile (and dry) to sea level and humid is quite the change.  

I'm looking forward to seeing many from the Smallworld community at the conference on Monday and Tuesday.   Please stop by at the Red Planet Consulting booth and say "hi".  Me and John will be the two guys dressed a in mechanics shirts.


Mark Ireland the "FME Evangelist" has a Smallworld User's Conference Special Edition article giving some added detail about the FME Server on Smallworld that Mark Stoakes and Michael Weisman from Safe Software and I will be demonstrating this week.  In addition to the links to the on-line demo videos from a few weeks ago, Mark also provides a bit more detail about the Python functionality that communicates with the Smallworld server image.


Friday, September 12, 2008

Viewing Hurricane Track in Smallworld using FME and SOMs

I realized today that I have customers and friends in the track of Hurricane Ike.


View Larger Map


So I was thinking... what would it take to view hurricane track information in Smallworld?

Here is what I came up with...
  1. Figure out which Smallworld SOMs (Spatial Object Managers) you have licensed.
  2. Create a FME workspace that reads hurricane data from a provider (eg., Google has http://mw1.google.com/mw-weather/tropical/kml/all_hurricanes.kmz) and converts it into a format that your SOMs are licensed for.   You can download the workspace file here (right-click and Save As... the link)
  3. Create a .bat file that calls your FME workspace and can be scheduled using a task scheduler.
    fme.exe %~dp0Hurricane_KML2MapInfoTab.fmw --SourceDataset_KML21 http://mw1.google.com/mw-weather/tropical/kml/all_hurricanes.kmz --DestDataset_MITAB %~dp0
  4. Create Smallworld SOM configuration that reads the regularly-updated SOM data.
  5. Create Smallworld ACE and Style changes that render the storm data on Smallworld.
I have tried this preliminarily with MapInfo and it seems to work.  What is not clear to me yet is if the MapInfo SOM will refresh the data on Smallworld each time the underlying MapInfo data is refreshed.  Anyone interested in trying this?

[UPDATE: It seems that once a MapInfo SOM is connected to a MapInfo file, then that file is locked for other processes.  Ie., FME won't be able to update it.  So that is likely not a very good idea.  We could use the WMS SOM but then we would need to set up a WMS server.  You can definitely do that with FME Server but I am willing to bet that most Smallworld customers do not have FME Server set up yet.  Maybe another option would be to modify the FME Workspace to write out to a text (or XML) file that could then be read by a Smallworld post-render-set plugin that would then dynamically draw the storm track information each time the map is refreshed.]

Anyone doing something else with tracking storms in Smallworld?

Stay safe and dry.