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

Feel free to ask any question here
Post Reply
swiss_knight
Posts: 28
Joined: Sun Aug 30, 2015 12:11 pm

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

Post 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.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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.
Daniel, CloudCompare admin
Post Reply