OSM2World
OSM2World copied to clipboard
osm2stl
Hi @tordanik & @PedaB , a few weeks ago I've been creating a tactile open street map on my small CNC mill, see Video: https://www.youtube.com/watch?v=ldCAnd6YzOU and short description of the process: https://github.com/koppi/stl2ngc/wiki , and the first test result:
The author of the website http://touch-mapper.org/ does not want to release his "osm2stl" toolchain, but he told me, that his website (which generates STL files) is based on OSM2World.
Can you help me to write a small shell script to extract online OSM data into an STL file?
What I need is a small program which extracts an area defined by {xmin, ymin, xmax, ymax} in GPS coordinates and outputs the OSM data into an STL file. Any help is greatly appreciated.
Update:
I RTFM of OSM2World, downloaded and ran JOSM. created an .obj file with OSM2Wold (– latest binary build). When opening the file in MeshLab, I see this warning:
While opening: 'augsburg-koenigsplatz.obj'
Error encountered while loading file: "augsburg-koenigsplatz.obj"
Error details: Identical index vertices found in the same face
and another warning:
Warning mesh contains 42 vertices with NAN coords and 5704 degenerated faces.
Corrected.
After that, I see this:
Is it possible to somehow do a clipping operation to make a nice rectangular bounding box?
I know, one can do this with Blender, but is there a commandline-tool or a commandline option in OSM2World, that can do a clipping to a bounding box operation to create a boxed version of the .obj file?
OSM2World currently has no feature to clip the geometry to a bounding box. There are tools (e.g. Osmosis) that clip the input OSM data to a bounding box, which would at least get rid of the very long roads. One problem with these, however, is that they typically produce invalid OSM data such as unclosed areas, which OSM2World can't handle. The best solution would probably be to do the clipping on the .obj files, I don't know any command line tool for that, though.
I like your project, by the way! Would it perhaps help you to have native STL export in OSM2World? I have some unfinished code for that feature lying around, and would consider finishing it if people want it.
@tordanik thank's for the info.
STL export in OSM2World would be great. I want this feature and I'm happy to test it if you add it.