<div><div>Hello,</div><div><br></div><div>I need a function that translates a st_relation() result into a human-readable string, like this (translations):</div><div><br></div><div> 'FF2FF1212' = "Disjoint" </div>
<div><br></div><div> 'FF2F01212' = "Intersects (in a point) and Touches (in a point)"</div><div><br></div><div> 'FF1F0F1F2' or 'FF10F0102' or 'FF1F0F1F2' can be understand as </div>
<div>                 "Intersects and Touches".</div><div><br></div><div> '0FFFFFFF2' = "Equals (points)"</div><div><br></div><div> '1FFFFFFF2' = "Equals (lines)"</div><div><br>
</div><div> '0FFFFF0F2' = "Intersects, Crosses, Within and CoveredBy"</div><div>  ...</div><div><br></div><div>This function exist?</div><div><br></div><div>The same question is explained with some more details and  examples at</div>
<div><a href="http://gis.stackexchange.com/q/26124/7505">http://gis.stackexchange.com/q/26124/7505</a></div><div><br></div><div>---- ----</div><div><br></div><div>In its most general form the DE-9IM model is quite complex, so to make it usable, </div>
<div>the adoption of "named predicates" have been specified: ST_Intersects, ST_Disjoint, </div><div>ST_Touches, ST_Equals, ST_Within, etc.</div><div><br></div><div>Programmers can express "topological queries" with these predicates.</div>
<div><br></div><div>But "mortal programmers" can't interpret DE-9IM codes of a single ST_Relate(A,B)</div><div>returned string, or, even less, a list of them... The programmer need human-readable </div><div>
expression, like the predicates, and need also some summarization</div><div>(for usual applications there are so many semantic equivalences between DE-9IM codes).</div><div><br></div></div><div>----- -----</div><div><br></div>
<div><div>There are a PostGIS library or module (perhaps into the PostGIS's 2.0 Topology new module) </div><div>with a tool to translate DE-9IM into predicates?</div><div><div>If there are not: may be we discuss here the possibility to develop that kind of translator function?</div>
</div><div><br></div><div><br></div><div>Thanks,</div><div> </div><div>PPKrauss</div><div><br></div></div>