Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1741 closed question (worksforme)

Polygon clipping test -- test update on a polygonal region.

Reported by: bbell Owned by: bbell
Priority: major Milestone: 9.7
Component: clipping Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu, Peter Baumann
Complexity: Medium

Description

Does polygon clipping work as a tool for updating a polygonal region of a dataset?

If so, add a test, and if not, add the functionality for doing so along with a test.

Attachments (1)

rasql_1.png (20.4 KB ) - added by bbell 7 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Dimitar Misev, 7 years ago

Component: undecidedclipping

I doubt if the idea to do something like this:

UPDATE A SET clip(A, Polygon(...))
ASSIGN $1

But this should already work:

UPDATE A SET A[..]
ASSIGN clip($1, Polygon(...))

I think it will overwrite the clipped out regions with 0s though (cf #1411)

Last edited 7 years ago by Dimitar Misev (previous) (diff)

comment:2 by Dimitar Misev, 7 years ago

Milestone: 9.69.7

comment:3 by bbell, 7 years ago

Resolution: worksforme
Status: newclosed

Regarding shift clip:

rasdaman error 300: Parsing error 300 in line 1, column 21: Unexpected name clip

which comes as no surprise, since the argument of SET is "updateSpec", as outlined in the QL guide, and the return type of "clip" is "mddexp", not "updateSpec".

Regarding assign clip:

rasql: rasdaman query tool v1.0, rasdaman 9.6.0.
Opening database RASBASE at localhost:7001... ok.
Executing update query... ok.
rasql done.

Certainly, this relies on the nullvalues of $1 agreeing with those of A, as clip only has knowledge of the nullvalues of the mddexp passed as an argument.

by bbell, 7 years ago

Attachment: rasql_1.png added

comment:4 by Dimitar Misev, 7 years ago

Right, so doing it properly can be done once #1763 and #1411 are fixed.

Note: See TracTickets for help on using tickets.