[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: maps


compass coordinates
[Simon St.Laurent]
[[
There's no type in WXS for locations.  I can't use the built-in types to
express something like:

<zoo>
   <name>Utica Zoo</name>
   <lat>75°15'00" N</lat>
   <long>43°05'00" W</long>
</zoo>

I can create a type with a regular expression constraining its lexical
appearance, but there's no value space, so I can't compare, for instance,
75°15'00" N with 75.2500° N.

I have similar problems created by the lack of any notion of units in W3C
XML Schema.  When I was looking at GPS devices, I found information that
the accuracy under the forest canopy was off by 7-21.  Mentally I read that
as feet (since I was in the US), but it was of course in meters.  Since the
particular maps I'm making are only 52 feet 8 inches in diameter, 23-67
feet off is kind of a problem.  I'm also creating software which will
hopefully be used in both US and metric environments, so an understanding
of units is crucial.  (For a kicker, I'm using compass coordinates, which
plot differently from polar coordinates.  How to explain that?)

 From one perspective, it seems like the right answer is to bang on the W3C
XML Schema Working Group's door and ask for new primitive types ...
]]

This is not really a good idea, because in addition to the reasons you give
below, there are many existing (non-XML) standards, each of which deals with
locations and lat-long in its own way.  There is no one way that XML Schema
could come up with that would be widely suitable.  This reinforces your main
point.

[[
which have
The biggest problem I have with strong typing is that most problems need
different types and particularly different understandings of value
spaces.  While programmers may be fooled into thinking that the set of
primitive types they use in their code is somehow magically blessed,
there's no such blessing once you step outside the world of programmers.
]]

Cheers,

Tom P



  • References:
    • maps
      • From: "Simon St.Laurent" <simonstl@s...>

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.