Re: Stations are primary

From: Richard Knapp (gyp_caver@yahoo.com)
Date: Thu Mar 08 2001 - 00:23:59 CET


On Wed, 07 Mar 2001 09:46:25 -0500, Ralph Hartley wrote:

>Richard Knapp wrote:

>> However, are there links between the stations? Surely there is a way
>> to connect the points. That was how the data was "discovered". Hmmmm..

>But you may not know how the stations were discovered. More to the
>point, you may not be willing to TELL the person you are sending the
>file to. Your fragment would be a correct way to send "processed" data.
>Often people are willing to share that, but not the "raw" data. This
>should be allowed.

True but it would be an option. If someone wanted to include the links between the control points, they could
(by adding a <shot/> element between them). If they just wanted the raw coordinate info, they could just enter
that with no intervening <shot/>.

But you bring up another interesting point: what to do with calculated data. Should it be stored in a manner
similar to COMPASS (with Move and Draw syntax) or as a survey or as a graph?

>Do it.

Just got going. I'm up to Chapter 3: DTDs which should prove interesting. I also noticed there is another book
in the OR series - "Learning XML". May be another item for me to purchase.

>> On the other hand, element order must be preserved (from XML spec,
>> attributes maybe). If the 'from' and 'to' were removed you would
>> basically have the two line format.
>> <survey>
>> <station name="A1" ID="00001"/>
>> <shot>
>> <azi value="33.3"/>
>> <distance value="10.2"/>
>> <inclination value="-3.3"/>
>> </shot>
>> <station name="A2" ID="00002"/>
>> </survey>

This could also be

     <station name="A1" ID="00001"/>
     <shot from="00001" to="00002">
         <azi value="33.3"/>
         <distance value="10.2"/>
         <inclination value="-3.3"/>
     </shot>
     <station name="A2" ID="00002"/>

if it needs to be more explicit.

>I don't like this, but I don't know that it violates any of my ...

Which part? The stations being apart from the shots or the lack of a direct station reference within the shot or
?

>The XML spec says nothing about the importance of ordering
>between elements of the same type.

Not within a DTD but within the document, it does.

        - Richard Knapp

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



This archive was generated by hypermail 2b30 : Mon Apr 02 2001 - 18:00:00 CEST