On Thu, Oct 16, 2008 at 07:59:47AM +0100, Ed Loach wrote: > Would it be difficult to handle feet and inches in the way Tagwatch suggests > that they are being entered, e.g. 10'3", although it looks in Tagwatch as > though the ' is replaced by ' > http://tagwatch.stoecker.eu/Great_britain/En/keystats_maxheight.html > and occasionally " replaced by "
I think something like this should work:
(contains(@v, ''') and contains(@v, '"')) and (
( string(number(
substring-before(@v, ''')
)) != 'NaN'
) and
( string(number(
substring-before(
substring-after(@v, '''),
'"'
)
)) != 'NaN'
) and
string-length(substring-after(@v, '"')) = 0
)
Don't know how I'll make it fit neatly into the perl script yet, but
that's not a big problem.
The limits here aren't the validator. We need to standardize these
units, get some kind of consensus on what values should be valid and
how to tie it into map features, and I can have maplint check it in no
time at all.
--
Knut Arne Bjørndal
aka Bob Kåre
[EMAIL PROTECTED]
[EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Tilesathome mailing list [email protected] http://lists.openstreetmap.org/listinfo/tilesathome
