Click to See Complete Forum and Search --> : SDTS, DLG conversion


jstarkey
10-13-2003, 02:56 PM
You'd think as admin here I'd know where to post this, lol. I was going to put it in General, but I think the answer may not be PHP. So... if anyone feels I'm in the wrong forum.... heheheh.

Thanks to several HD upgrades, I've lost a script I used 2 years ago to convert DLG records to SQL inserts. I know this is probably a long shot, but I thought I'd check around. Has anyone here used PHP to convert either DLG or SDTS data to DB? I'm curious to hear how others handled the conversion.

Moonglobe
10-13-2003, 05:46 PM
well i know i haven't, but what's DLG? SDTS? i know what the acronyms mean but what are they?

jstarkey
10-15-2003, 10:16 AM
They are formats for exchanging map data. They consist of meta data (where the corners are, which quad, what type of layer it is, etc) and a series of records containing points for polygons, lines and nodes, etc.

It's not too hard to script, since there's a set spacing for each column, but I'm sure someone has a better way than just using a bunch of substr()'s.