Phrogz / svg2geojson

Converts an SVG file with added geo-referencing tags into one or more GeoJSON files.
MIT License
57 stars 30 forks source link

Rotation support #5

Closed qingemeng closed 1 month ago

qingemeng commented 6 years ago

The convert logic changed from Lerp to using a transformation matrix.

Using three GeoItems to define two triangles. Getting the transformation matrix based on two triangles. Apply the transformation matrix to each coordinates

Phrogz commented 6 years ago

Separate from the algorithm effects of this pull request (which I have not yet reviewed) I will not accept a pull request that massively changes the formatting of existing lines.