Page 1 of 1

Loading a (clipping) polygon from a JSON or WKT string stored in a text file?

Posted: Tue Aug 21, 2018 2:31 pm
by swiss_knight
Hello,

I am wondering if it would be possible to load a clipping line (from the scissors tool for example, or a dedicated tool to load it in the DB tree) from a Polygon stored as a simple JSON or WKT string in a text file ?
(or even doing that (i.e. the clipping operation) using the pseudo 'CLI' and passing such string as an argument to a -CLIP option for example)

Thanks a lot !
Best Regards.

Re: Loading a (clipping) polygon from a JSON or WKT string stored in a text file?

Posted: Tue Aug 21, 2018 8:49 pm
by daniel
CC can import polylines from various formats (the simplest being the 'POLY' one: each vertex of the polylines are on a separate line). And then you can 'import' this polyline in the scissors tool.