[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [ubl] Defining Geograpic areas in UBL - How?
Here is my guess:
I'm assuming that you are referring to how to fill in cac:Location
... that in your UBL you've gotten down the structure to
cac:DeliveryLocation or cac:PhysicalLocation, or some other ASBIE
that has the object class described by cac:Location.
Looking at my HTML reports found here:
http://www.CraneSoftwrights.com/resources/ubl/index.htm#ubl2modelreport
... I find cac:Location at row 598 of the common library. I see
there is a child cac:Address. In address I see the last child is
zero or more cac:LocationCoordinate elements. and in
cac:LocationCoordinate I see the ability to enter in many values for
latitude, longitude, etc.
So, then, if I had to specify three lat/long values for a delivery
location, I would use:
<cac:DeliveryLocation>
<cac:Address>
<cac:LocationCoordinate>
<cac:LatitudeDegreesMeasure>yyy</cac:LatidudeDegreesMeasure>
<cac:LatitudeDirectionCode>North</cac:LatitudeDirectionCode>
<cac:LongitudeDegreesMeasure>xxx</cac:LongitudeDegreesMeasure>
<cac:LongitudeDirectionCode>North</cac:LongitudeDirectionCode>
</cac:LatitudeCoordinate>
<cac:LocationCoordinate>
<cac:LatitudeDegreesMeasure>yyy</cac:LatidudeDegreesMeasure>
<cac:LatitudeDirectionCode>North</cac:LatitudeDirectionCode>
<cac:LongitudeDegreesMeasure>xxx</cac:LongitudeDegreesMeasure>
<cac:LongitudeDirectionCode>North</cac:LongitudeDirectionCode>
</cac:LatitudeCoordinate>
<cac:LocationCoordinate>
<cac:LatitudeDegreesMeasure>yyy</cac:LatidudeDegreesMeasure>
<cac:LatitudeDirectionCode>North</cac:LatitudeDirectionCode>
<cac:LongitudeDegreesMeasure>xxx</cac:LongitudeDegreesMeasure>
<cac:LongitudeDirectionCode>North</cac:LongitudeDirectionCode>
</cac:LatitudeCoordinate>
</cac:Address>
</cac:DeliveryLocation>
And the way I actually found this was backwards: I looked up
Latitude and found where LatitudeDegreesMeasure is used, which is in
LocationCoordinate, then looking at LocationCoordinate I see it is
used in Address, then looking in address I see it is used as a DeliveryAddress.
I hope this is what FreightWise is looking for. Please acknowledge
either way so that I can guess again if I am wrong above.
Thanks for the question, Andy!
. . . . . . . . . . ken
At 2009-08-07 15:15 -0400, Andrew Schoka wrote:
>Dear UBLers,
>The Freightwise project is moving to formulate their data models,
>and subsequently their documents, in UBL. They have requirements to
>define locations as either a point or a geographic area. I believe
>that Freightwise envisions defining a geographic area by listing 3
>or more points or coordinate locations.
>
>I am querying the UBL TC participants to ask if this has already
>been done in UBL, and if so, how; or, will an area location
>represent a new requirement? Whether it already exists or is a new
>requirement I am vitally interested in learning how this should be
>done within UBL. All comments or suggestions are enthusiastically welcome.
>Regards,
>Andy Schoka
>
--
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/o/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/o/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]