Can I translate a Vertext, or X and Y cooridnate, into a LineShape?
My main goal is to create a Polyline or Multiline shape in order to buffer the individual lines that make up that polygon.
Can I translate a Vertext, or X and Y cooridnate, into a LineShape?
My main goal is to create a Polyline or Multiline shape in order to buffer the individual lines that make up that polygon.
Peter,
You could add or insert the vertex to the collection of vertices in LineShape easily.
If you want to buffer the boundary lines of the polygon individually, you have to translate the rings composing the polygon into lines and buffer them.
While one thing I wan tto mention is that even though you buffer a polyline, the result is still a polygon. I am not sure this is what you expected.
If I misunderstand anything, just feel free to let me know.
Thanks.
Yale
My ultimate goal in this is to buffer so many meters into a polygon and not outside of it. For example, I want to be able to say clip 10 meters from the outside of a polygon. I have a MapInfo program that does this so I’m trying to replicate it in ThinkGeo. It does this by creating a polyline object from a polygon, buffering the individual lines, and then clipping the overlap between the created buffers and the original polygon object. It sounds like I can do this with the outer ring of the ThinkGeo polygon and LineShapes. Does that make more sense? Let me know if there is an easier way to shave so many meters around the outside of a polygon.
Peter,
have you tried to use the buffer method but pass in a negative number for the distance?
David
I get an exception when I try to pass in a negative value for distance. I was able to accomplish my goal using the verticies of the polgon, LineShapes, buffering, and the GetIntersection method. Thanks for the response.
Peter,
Glad to hear you found a solution. I figure it was worth a shot to try a negative number. In fact I wonder if the exception was our check for a negative number but if the underlying outline works with a negative number. I will write that up to test it. I think this might be something want to do from time to time.
David