Shapely provides many basic geometric predicates and operations that
might be useful to you. It can diagnose whether the contours you
reconstruct cross (and are thereby invalid) and such, and you might be
able to take advantage of distance and buffer operations in
reconstructing contours, but it doesn't contain any specific
procedures or logic for this kind of work. I'm not sure what software
to recommend.

On Thu, Feb 28, 2013 at 3:49 PM, zetah <[email protected]> wrote:
> I'll just copy what I asked on github page: 
> https://github.com/Toblerity/Shapely/issues/44
>
> While looking for appropriate way to solve a problem I'm not trained for, I 
> opened a discussion in scikit-image google group: 
> https://groups.google.com/d/topic/scikit-image/I28t7wr-bzY/discussion as I 
> expected this problem to be solvable through image processing.
>
> In short, my problem is that I have an old map scan, which I segmented to 
> extract topological lines, but as this map consists of various labelings, 
> graticules and other lines overlaid on topo contours, I get gaps in resulting 
> image: http://i.imgur.com/tgphMUKt.png
>
> So looking through Python packages I noticed Shapely, and reading reference 
> files it seems it operates on points, lines and polygons, like a vector 
> program. I didn't study documentation, but I thought that it might be 
> possible to use this package and get reconstructed contours, as I'm able to 
> export shape file with spline contours, based on my segmented bitmap with 
> disconnected contours. Please take a look at this shape file: 
> https://docs.google.com/file/d/0B8BY3UUCWEsOdDJPdldpWTk4dFU/edit?usp=sharing
>
> Can I get confirmation if Shapely as a package can help in this process?
>
> TIA
>
> _______________________________________________
> Community mailing list
> [email protected]
> http://lists.gispython.org/mailman/listinfo/community



-- 
Sean Gillies
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to