Below is linked a little teaser from my recent experimentation with loading shapefiles.
In the above, the work of loading the shapefiles is mostly done by the Vanrijkom classes I spoke of earlier. When I wrote before, I was more interested in loading shapefiles with PHP, and using Flash Remoting to pass in the shapefile information. It turns out, though, that the AS classes are lightning fast, and applying point transformations is decently swift.
I’ve rewritten some of Vanrijkom’s code, and have written a few new classes to manage the loading, projecting, and drawing of shapefiles. It would take only a few more methods to load in a DBF file with attributes, and apply the symbology (choropleth, dot density, isoline, proportional symbol) to the features. Currently, I can load and draw the three main shapefile types: point, polyline, and polygon.
I’m still confident that the remoting route, whether with AMFPHP and PHP or XML and Python or C, will be the way to go. Especially when I want to add in cartograms. But, for now, it’s nice to know that a lot of this can be handled natively in Flash.