How to get vertices of Polygon and Polyline

edited May 2014 in How To...

I'm trying to get the vertices of a polygon and polyline like in the SVG below. But for some reason all the methods don't work like getVertexCount, getVertexCodeCount, getParams etc.

Ellipse, line, path and rect are all working fine.

I'm using an extended version of the code in this post to get the family- and kindname (

<svg version="1.1" id="Layer_1" xmlns="" xmlns:xlink="" x="0px" y="0px"
     width="595.279px" height="841.89px" viewBox="0 0 595.279 841.89" enable-background="new 0 0 595.279 841.89"
<polyline fill="#FFFFFF" stroke="#000000" stroke-miterlimit="10" points="149.139,91.445 308.139,91.445 308.139,146.445 
    256.139,146.445 "/>
<polygon fill="#FFFFFF" stroke="#000000" stroke-miterlimit="10" points="247.139,160.937 261.102,189.228 292.322,193.764 
    269.731,215.785 275.064,246.879 247.139,232.199 219.215,246.879 224.548,215.785 201.957,193.764 233.177,189.228 "/>

Thanks in advance

Sign In or Register to comment.