Grasshopper

algorithmic modeling for Rhino

I'm working on a project that maps locations of sent tweets into a site map in rhino. The script works and generates a location entry based on the individuals cell phone settings. Some people have changed there geo tagging to things that are not gps coordinates.

I need to clean up the LOCATION Panel 

Currently the location coordinates come in looking like

38.03817067, -84.4989889

I need them to look exactly like this in order for ghowl's XYZ to read the coordinate and plot the proper point.

{-84.4989889, 38.03817067, 0.0}

I'm not sure if I need to be working through the tree or list, can anyone help me organize this to get the desired location coordinates? Attached is the grasshopper file

Thank you and pleas let me know if you need more clarification.

Views: 1462

Attachments:

Replies to This Discussion

Hey Torben,

Thanks so much, this worked to get my coordinates alone without any of the other information however now i need to flip each coordinate and add a 0.0 to get it to look like this

{-84.4989889, 38.03817067, 0.0}

another option might be to just feed the list of values, (with items like this: 38.03817067, -84.4989889), into a point component.  That would yield: {38.03817067, -84.4989889, 0.0}.

If you need to swap the X and Y values, you could use the deconstruct point component, (it will break out the X, Y, and Z), Then "reconstruct" the point, plugging in the appropriate X or Y value from the Deconstruct component. 

Hey Chris,

Thanks for the response, I tried putting the list into the points component but it doesn't seem to work, were you talking about the xyz point component or the numbers to points component or something completely different?

I guess I was thinking something like the image below.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service