1 / 7

Implementing the Region Syntax

Implementing the Region Syntax. A.Szalay, T.Budavari, P.Dowler, +ADQL Working Group. Function-Based Approach. Region is an object that has Constructors Properties (area) Operators

jin
Download Presentation

Implementing the Region Syntax

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Implementing the Region Syntax A.Szalay, T.Budavari, P.Dowler, +ADQL Working Group IVOA Interop

  2. Function-Based Approach • Region is an object that has • Constructors • Properties (area) • Operators • Implemented in SQL Server 2005, using the Spherical library (C# + SQL) built for SDSS and the NVO Footprint Service IVOA Interop

  3. Similar to Existing GIS Systems • SpatialWare (MapInfo) uses the same technique but with lots of functions • Geometry datatypes • Point, Line, PolyLine, Polygon, Arc, … • Constructors • Circle, Box, Polygon,… • Full set operators • More detailed topological relations • Contain, Outside, Overlaps, Adjacent, … • Buffer • Cast • AsText IVOA Interop

  4. Steps • Create a Region schema (namespace) • Define constructors • Region, Circle, Rectangle • Define properties • Area • Operators • Contains, Intersects, ToString • Support • Distance IVOA Interop

  5. Lessons • SQL-92 functions with variable number of arguments (Polygon) not allowed • Use the Region(string) to build these • No boolean datatype in SQL-92 • Use bit (0,1) and explicit comparisons • Contains is protected in T-SQL (freetext) • Need to write it as Region.[Contains] • Distance function was trivial IVOA Interop

  6. Immediate Questions • Units? • Angles: degrees • Area: square degrees • Distances: degrees • GIS Compatibility? • Contains-> Contain • Intersects -> Overlap • ToString -> AsText • Distance -> SphericalDistance IVOA Interop

  7. Operator Extensions Later? • Output is Region type • Intersection(r1,r2) • Difference(r1,r2) • Union(r1,r2) • Buffer(r1, delta) IVOA Interop

More Related