Skip to main content
100%

winding problem

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Aug 10, 2017
Created on Aug 10, 2017

This visualization highlights the winding problem in GeoJSON polygons by coloring affected areas yellow, while correctly oriented polygons appear light blue. It uses d3.json to load Istanbul district boundaries and d3.geoPath with a Mercator projection to render them as SVG paths. The code checks each feature with d3.geoArea, reversing coordinate arrays for polygons exceeding 2π area, marking those features with an error property. The map shows these inverse-wound regions clearly, demonstrating how D3’s geo algorithms handle polygon orientation.

AI-generated description

For @ozanyusufoglu

Some polygons (shown in yellow) have an inverse winding order.

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/ozanyusufoglu/'>ozanyusufoglu</a>'s block: <a href='http://bl.ocks.org/ozanyusufoglu/c44a73877aa31d08a449415f0d2b23e9'>winding problem</a>

mit Licensed

Similar vizzes