shp2stl – Convert Maps to 3D Models

Using shp2stl to Convert Maps to 3D Models

The code is published as a NodeJS package, available on npm and GitHub.

You can control the height of each shape by specifying an attribute of your data to use. Each shape will be placed along the z-axis based on the shape’s value relative to the max range in the data. Additionally, if you want more detailed control you can specify a function to use to extrude each shape.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.