discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

OpenSCAD script generator for geolocated spots on a Planet Earth's model

VC
Valerio Capello
Thu, Feb 18, 2016 10:21 PM

Hi, I'm the developer at Geody, the geospatial web tool. I've recently
added support for OpenSCAD, so that you can choose one or multiple
places on Earth and get a script that adds geolocated spots on a
planet's model (the Earth model is included from the script and can be
downloaded separately from the website).

To generate the script you have to search for the place you want, or
enter coordinates directly, then you can download the script for a
single spot directly from the OpenSCAD link or you can add the spot to
the Cart and then from the Cart's page export all the spots (for
example, all the places you visited, or the location of all F1
circuits) you added as an OpenSCAD script. In the Cart's page there's
also the link to download the Earth's model. Scripts generated by
Geody are licensed as GPL/CC-by-sa.

You can test it here: http://www.geody.com

Feedback and photos of printed works are very welcomed

Valerio

Hi, I'm the developer at Geody, the geospatial web tool. I've recently added support for OpenSCAD, so that you can choose one or multiple places on Earth and get a script that adds geolocated spots on a planet's model (the Earth model is included from the script and can be downloaded separately from the website). To generate the script you have to search for the place you want, or enter coordinates directly, then you can download the script for a single spot directly from the OpenSCAD link or you can add the spot to the Cart and then from the Cart's page export all the spots (for example, all the places you visited, or the location of all F1 circuits) you added as an OpenSCAD script. In the Cart's page there's also the link to download the Earth's model. Scripts generated by Geody are licensed as GPL/CC-by-sa. You can test it here: http://www.geody.com Feedback and photos of printed works are very welcomed Valerio
M
MichaelAtOz
Thu, Feb 18, 2016 10:55 PM

I think the globe needs at least twice the resolution.


Newly minted Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16182.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I think the globe needs at least twice the resolution. ----- Newly minted Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16182.html Sent from the OpenSCAD mailing list archive at Nabble.com.
RW
Rob Ward
Fri, Feb 19, 2016 1:36 AM

Maybe I have done something wrong (I just copied the .scad file and
geody_earthmap.stl to a local pathway and ran it) , but I thought I had
requested a chunk of the model near where I live in South Eastern
Australia, and it has drawn a sphere centered on it but concealing the
detail I was after.  However if the resolution can be changed with $fn
in my chosen area, that would be good, but at the moment I can't see
what I am after.
Interesting concept all the same.
Cheers, Rob

On 19/02/16 09:55, MichaelAtOz wrote:

I think the globe needs at least twice the resolution.


Newly minted Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16182.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Maybe I have done something wrong (I just copied the .scad file and geody_earthmap.stl to a local pathway and ran it) , but I thought I had requested a chunk of the model near where I live in South Eastern Australia, and it has drawn a sphere centered on it but concealing the detail I was after. However if the resolution can be changed with $fn in my chosen area, that would be good, but at the moment I can't see what I am after. Interesting concept all the same. Cheers, Rob On 19/02/16 09:55, MichaelAtOz wrote: > I think the globe needs at least twice the resolution. > > > > ----- > Newly minted Admin - PM me if you need anything, or if I've done something stupid... > > Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. > > The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! > -- > View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16182.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
M
MichaelAtOz
Fri, Feb 19, 2016 1:42 AM

Rob,

Just change the variables, I used

wrad=wwrad/60; // Radius of the Spot
wradp=wwrad; // Distance of the Spot from the center of the Planet

http://forum.openscad.org/file/n16184/geo.jpg
(Canberra)


Newly minted Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16184.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Rob, Just change the variables, I used wrad=wwrad/60; // Radius of the Spot wradp=wwrad; // Distance of the Spot from the center of the Planet <http://forum.openscad.org/file/n16184/geo.jpg> (Canberra) ----- Newly minted Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16184.html Sent from the OpenSCAD mailing list archive at Nabble.com.
F
fred
Fri, Feb 19, 2016 1:43 AM

I expect it's too much to hope for high resolution at a smaller region level. Instead of getting the entire planet in OpenSCAD format, it would be great if the information could be collected for a restricted area. If one considers the entire Earth data as a 3d object, there's far too many triangles to load at one time in any appreciable resolution. Give me a square kilometer or nine of them around a selected point but to a resolution of a meter or so.

On Thursday, February 18, 2016 8:37 PM, Rob Ward <rl.ward@bigpond.com> wrote:

Maybe I have done something wrong (I just copied the .scad file and geody_earthmap.stl to a local pathway and ran it) , but I thought I had requested a chunk of the model near where I live in South Eastern Australia, and it has drawn a sphere centered on it but concealing the detail I was after.  However if the resolution can be changed with $fn in my chosen area, that would be good, but at the moment I can't see what I am after.
Interesting concept all the same.
Cheers, Rob

On 19/02/16 09:55, MichaelAtOz wrote:

I think the globe needs at least twice the resolution.


Newly minted Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16182.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I expect it's too much to hope for high resolution at a smaller region level. Instead of getting the entire planet in OpenSCAD format, it would be great if the information could be collected for a restricted area. If one considers the entire Earth data as a 3d object, there's far too many triangles to load at one time in any appreciable resolution. Give me a square kilometer or nine of them around a selected point but to a resolution of a meter or so. On Thursday, February 18, 2016 8:37 PM, Rob Ward <rl.ward@bigpond.com> wrote: Maybe I have done something wrong (I just copied the .scad file and geody_earthmap.stl to a local pathway and ran it) , but I thought I had requested a chunk of the model near where I live in South Eastern Australia, and it has drawn a sphere centered on it but concealing the detail I was after.  However if the resolution can be changed with $fn in my chosen area, that would be good, but at the moment I can't see what I am after. Interesting concept all the same. Cheers, Rob On 19/02/16 09:55, MichaelAtOz wrote: I think the globe needs at least twice the resolution. ----- Newly minted Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16182.html Sent from the OpenSCAD mailing list archive at Nabble.com. _______________________________________________ OpenSCAD mailing list Discuss@lists.openscad.org http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org _______________________________________________ OpenSCAD mailing list Discuss@lists.openscad.org http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
M
MichaelAtOz
Fri, Feb 19, 2016 1:55 AM

ElfQrin wrote

Feedback and photos of printed works are very welcomed

Valerio,

It would help of the spots were oriented tangential to the notional sphere.
I was hoping this would look spiky.
http://forum.openscad.org/file/n16186/geo_non-tangent.jpg


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16186.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

ElfQrin wrote > Feedback and photos of printed works are very welcomed Valerio, It would help of the spots were oriented tangential to the notional sphere. I was hoping this would look spiky. <http://forum.openscad.org/file/n16186/geo_non-tangent.jpg> ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16186.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Fri, Feb 19, 2016 2:09 AM

tangent - radial you know what I mean, spiky...either would do.
In fact tangential aligned to the longitude, with north being +Z, would
probably be useful. Then you know which way you are pointing

i.e supplying the appropriate rotations like this
http://forum.openscad.org/file/n16187/geo_tangent.jpg


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16187.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

tangent - radial you know what I mean, spiky...either would do. In fact tangential aligned to the longitude, with north being +Z, would probably be useful. Then you know which way you are pointing i.e supplying the appropriate rotations like this <http://forum.openscad.org/file/n16187/geo_tangent.jpg> ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16187.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Fri, Feb 19, 2016 2:17 AM

Valerio, I assume the XZ plane is through Greenwich?


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16188.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Valerio, I assume the XZ plane is through Greenwich? ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16188.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Fri, Feb 19, 2016 2:28 AM

You also need a convexity= on the import, 4 worked for me.
Showed as a problem on preview when I differenced a cube to get a
hemisphere.


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16189.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

You also need a convexity= on the import, 4 worked for me. Showed as a problem on preview when I differenced a cube to get a hemisphere. ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16189.html Sent from the OpenSCAD mailing list archive at Nabble.com.
VC
Valerio Capello
Sat, Feb 20, 2016 1:12 AM

Thank you everybody for the feedback so far.

I'll add convexity = 4 on the import, and I'll look into the maths for
the spiky spots (in fact, when you use small spheres as dots as I did
you don't need to care about their orientation).

MichaelAtOz: Yes, XZ plane is through Greenwich. Geographical
coordinates work as expected.

Valerio

2016-02-19 3:28 GMT+01:00 MichaelAtOz oz.at.michael@gmail.com:

You also need a convexity= on the import, 4 worked for me.
Showed as a problem on preview when I differenced a cube to get a
hemisphere.


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16189.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Thank you everybody for the feedback so far. I'll add convexity = 4 on the import, and I'll look into the maths for the spiky spots (in fact, when you use small spheres as dots as I did you don't need to care about their orientation). MichaelAtOz: Yes, XZ plane is through Greenwich. Geographical coordinates work as expected. Valerio 2016-02-19 3:28 GMT+01:00 MichaelAtOz <oz.at.michael@gmail.com>: > You also need a convexity= on the import, 4 worked for me. > Showed as a problem on preview when I differenced a cube to get a > hemisphere. > > > > ----- > Admin - PM me if you need anything, or if I've done something stupid... > > Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. > > The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! > -- > View this message in context: http://forum.openscad.org/OpenSCAD-script-generator-for-geolocated-spots-on-a-Planet-Earth-s-model-tp16181p16189.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org