So we needed automated SHP to SDF conversion for MapGuide and doing it on Windows was out of the picture, so I hobbled together some Python-based scripts that use FDO to do it. It works alright so far. I know this is coded poorly and I will regret releasing these scripts when I go in for some anal interview and they ask me why I didn’t use a bunch of metaprogramming and/or OOP fanciness and/or DRY, but it works and works well. It’s modeled after old versions of FdoToolbox, so blame those guys
It’s also kinda slow, but I’m sure an implementation of batch inserts would speed it up.
TARBALLZ HERE!!!1 (WARNING: This unpacks in ., so it will piss you off and pollute your home directory. You probably deserve it though you self-righteous Linux-using bastard)
Filed under: 1
[...] right, it does look a lot like C++. Still, it enabled Rick to build a Linux-native SHP to SDF conversion tool when the alternative (actual C++) would have been painful. Good to see it being [...]
I’m the only one to blame here
Unfortunately for your case batch inserts aren’t supported for SDF, so it won’t go any faster.