<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Talking of STC-S, can we *try* to approve it as a standard?<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Aug 27, 2019, at 1:38 PM, Patrick Dowler &lt;<a href="mailto:pdowler.cadc@gmail.com" class="">pdowler.cadc@gmail.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="gmail_default" style="font-size:small"><br class="">
</div>
<div class="gmail_default" style="font-size:small">The use cases we examined call for the ability to support&nbsp; some of those off-diagonal types. The polymorphic simple corner is already in use in several places so that is simply standardising current practice.
 The only &quot;disjoint&quot; use cases are the &quot;multi polygon&quot; ones, but those come from several people and are common. No one has mentioned let alone seriously argued for &quot;multi circle&quot; or (worse) a generic &quot;multi shape&quot;.</div>
<div class="gmail_default" style="font-size:small"><br class="">
</div>
<div class="gmail_default" style="font-size:small">It is possible to only standardise the diagonal (eg, &quot;region&quot;) which supports both polymorphism and disjoint. However, there are legit reasons for implementers to support one but not both of those the way to
 declare that you output or accept polymorphic but not disjoint is to say &quot;shape&quot; instead of &quot;region&quot;. Clearly, the design is such that anyone who supports &quot;region&quot; can support all the others so there is no combinatorial complexity. If we did this I would say
 &quot;don't bother&quot; because we'd be in the same boat as we are with defacto STC-S: single serialisation with partial implementations and no way to convey what partial means... and I'd just use custom xtypes instead. Interoperability would suffer for both reasons.<br class="">
</div>
<div class="gmail_default" style="font-size:small"><br class="">
</div>
<div class="gmail_default" style="font-size:small">I'll admit that &quot;multi interval&quot; doesn't add much compared to an array of simple interval(s) so while the use cases for that are solid that solution is not super compelling. Certainly in CAOM where I have that
 kind of thing I can live with datatype=&quot;double&quot; arraysize=&quot;2x*&quot; xtype=&quot;interval&quot;.
<br class="">
</div>
<div class="gmail_default" style="font-size:small"><br class="">
</div>
<div class="gmail_default" style="font-size:small">In my experience, (and I think it is generally true) polymorphic is an easier thing to deal with than disjoint, so I can see reasons to want to support &quot;shape&quot; but not &quot;region&quot;. On the other side, if someone
 supports &quot;multi polygon&quot; they can trivially support &quot;region&quot; so as long as as &quot;region&quot; was not union of different shapes. That and the previous point would reduce the value in standardising the disjoint type-safe corner.</div>
<div class="gmail_default" style="font-size:small"><br class="">
</div>
<div class="gmail_default" style="font-size:small">This does not support holes (in polygons) without adding intersection (and then probably parentheses); we don't need that now but determined that it could be added later when use cases warrant. But, before
 niggling about details, the main question is: Is that the only thing we might add in future or is there something else we need to at least consider?</div>
<div class="gmail_default" style="font-size:small"><br class="">
</div>
<div class="">
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">--<br class="">
</div>
<div class="">Patrick Dowler<br class="">
</div>
Canadian Astronomy Data Centre<br class="">
</div>
Victoria, BC, Canada<br class="">
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 26 Aug 2019 at 04:37, Markus Demleitner &lt;<a href="mailto:msdemlei@ari.uni-heidelberg.de" class="">msdemlei@ari.uni-heidelberg.de</a>&gt; wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi Pat,<br class="">
<br class="">
On Tue, Aug 20, 2019 at 11:16:25AM -0700, Patrick Dowler wrote:<br class="">
&gt; <a href="https://wiki.ivoa.net/internal/IVOA/InterOpMay2019DAL/DALI-1.1-next.pdf" rel="noreferrer" target="_blank" class="">
https://wiki.ivoa.net/internal/IVOA/InterOpMay2019DAL/DALI-1.1-next.pdf</a><br class="">
&gt; <br class="">
&gt; The last slide (debatable solution) was not presented but included to<br class="">
&gt; initiate discussion.<br class="">
&gt; <br class="">
&gt; [...]<br class="">
&gt; <br class="">
&gt; We do not need to standardise all the xtypes that come out of this in<br class="">
&gt; DALI-1.2; the ones with ? in the last slide do not correspond to any use<br class="">
&gt; cases I know of and are there for symmetry/completeness only.<br class="">
<br class="">
For the record: I think there is little benefit in having the<br class="">
off-diagonal xtypes; it seems to me that there are few use cases that<br class="">
would be simplified by stripping either one of the &quot;polymorphic&quot; or<br class="">
&quot;disjoint&quot; requirements.&nbsp; Dropping both at the same time obviously<br class="">
helps a lot in letting clients reason about columns (and perhaps in<br class="">
implementation complexity, though I doubt any real VO component can<br class="">
get around region in the end when we standardise it).&nbsp; <br class="">
<br class="">
I simply can't see similar benefits for the cases where we drop just<br class="">
one of the two.<br class="">
<br class="">
Now,&nbsp; since it seems we cannot get rid of the requirement to have the<br class="">
disjoint mixed geometries, at least let's not complicate matters<br class="">
further by introducing intermediate steps that are nice conceptually<br class="">
but don't give practical benefits.<br class="">
<br class="">
Oh, and we're about it: I'd still like to maintain that the<br class="">
requirement that xtypes can round-trip with TAP uploads is a pain in<br class="">
the neck when it comes to these geometries.&nbsp; What I think we should<br class="">
do here is form an equivalence class of xtypes that TAP engines might<br class="">
transform things into, and that would include all geometries.&nbsp; <br class="">
<br class="">
This would mean that when you upload a circle, the server might<br class="">
return a region-typed column (I'm sure Alberto will like this).&nbsp; And<br class="">
when you upload a region, the server might return a moc-type column.<br class="">
Anything else will require fairly horrible hacks prone to breaking,<br class="">
and we'd need to understand *very* well why we absolutely have to<br class="">
have the transparent round-tripping for geometries.<br class="">
<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Markus<br class="">
<br class="">
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>