PlotSauce a *.3d to XML converter
Philip Schuchardt
vpicaver at gmail.com
Wed Feb 15 23:58:44 GMT 2012
Here's an example file:
The prefixes are preserved. In this example the cave's name is
0-cavesauce3000.
<PlotSauceDocument>
<Stations>
<Station>
<Id>1</Id>
<Name>0-cavesauce3000.a1</Name>
<Position>
<X>0</X>
<Y>0</Y>
<Z>0</Z>
</Position>
</Station>
<Station>
<Id>1</Id>
<Name>0-cavesauce3000.a1</Name>
<Position>
<X>0</X>
<Y>0</Y>
<Z>0</Z>
</Position>
</Station>
<Station>
<Id>2</Id>
<Name>0-cavesauce3000.a2</Name>
<Position>
<X>0</X>
<Y>10</Y>
<Z>0</Z>
</Position>
</Station>
<Station>
<Id>3</Id>
<Name>0-cavesauce3000.a3</Name>
<Position>
<X>10.61</X>
<Y>10</Y>
<Z>10.61</Z>
</Position>
</Station>
</Stations>
<Lines>
<Line>
<Station1ID>1</Station1ID>
<Station2ID>2</Station2ID>
</Line>
<Line>
<Station1ID>2</Station1ID>
<Station2ID>3</Station2ID>
</Line>
</Lines>
</PlotSauceDocument>
On Wed, Feb 15, 2012 at 12:09 PM, Philip Schuchardt <vpicaver at gmail.com>wrote:
> I'll send an example when I get home tonight.
>
> I'm using standard XML syntax. I have created by own XML schema. I did
> just came up with "some XML format". The format holds survey points, and
> lines between points. You can easily crunch any XML file with xml parsers
> or software that support XQuery, like BaseX (http://basex.org/). The xml
> file is simply compressed with gunzip (using zlib). It actually produces
> smaller files then the original *.3d format, when compressed. Support for
> Compass's *.plt would be cool. We could probably add some standard file
> formats like shape files or KML files pretty easily using OGR.
>
> Philip
>
>
> On Wed, Feb 15, 2012 at 11:51 AM, David A. Riggs <david.a.riggs at gmail.com>wrote:
>
>> On Sat, Feb 11, 2012 at 11:37 PM, Philip Schuchardt <vpicaver at gmail.com>
>> wrote:
>> > Okay, so this is sorta boring if your a normal survex user, but I know
>> most
>> > of you are super cool computer nerds and may get a kick out of
>> PlotSauce.
>> > PlotSauce is a simple cross-platform utility that converts survex's
>> *.3d
>> > binary files into compressed XML file. I'm hoping to add Compass and
>> Walls
>> > support in the future.
>>
>> Got an example of the compressed XML output? Is there some XML
>> "standard" that you're providing compatibility with, or have you just
>> come up with "some XML format" for easier crunching with other
>> software?
>>
>> I'd love to have a cross-platform generic API or intermediate format
>> for working with Survex .3d and Compass .plt files...
>>
>> - DR
>>
>>
>> --
>> David A. Riggs <david.a.riggs at gmail.com>
>>
>
>
More information about the Survex
mailing list