We need your help! 🔥
Please consider disabling your ad-blocker to support this website! 🔑
We are a free, community-supported website! 🥰
We only display small unobtrusive ads which help us stay online! 💯
Thank you in advance! ❤️
0 | Gismo
1 | OpenStreetMap
2 | Terrain
3 | More

OSM Search

Use this component to search through OSM 2D and 3D shapes. Shapes will be searched by the use of _requiredTag input. To generate _requiredTag input use "OSM tag" component.
-
1) If you would like to search OSM 2D shapes, add data to _shapes, _keys, _values inputs. Or
2) If you would like to search OSM 3D shapes, then additionally add data to threeDeeShapes_, threeDeeValues_ inputs.
-
Provided by Gismo 0.0.3

Inputs

NameIDDescriptionType
Required Tag_requiredTagRequired tag represents a combination between a key and value(s) for which this component will perform the search. Use "OSM tag" component to generate it.Goo
Shapes_shapesPlug in the data from the Gismo OSM shapes "shapes" outputGoo
Keys_keysPlug in the data from the Gismo OSM shapes "keys" output.Goo
Values_valuesPlug in the data from the Gismo OSM shapes "values" output.Goo
Three Dee ShapesthreeDeeShapes_This input is needed only if you are searching 3D shapes. For example: you created 3d buildings with "OSM 3D" component, and now you would like to check which one of all those buildings is a residential building. If this is the case, then plug in the data from the Gismo "OSM 3D" "threeDeeShapes" output. - If nothing supplied, then search of 2d OSM shapes (that's "_shapes" input) will be performed only.Goo
Three Dee ValuesthreeDeeValues_This input is needed only if you are searching 3D shapes. For example: you created 3d buildings with "OSM 3D" component, and now you would like to check which one of all those buildings is a residential building. If this is the case, then plug in the data from the Gismo "OSM 3D" "threeDeeValues" output. - If nothing supplied, then search of 2d OSM shapes (that's "_shapes" input) will be performed only.Goo
_____________Script variable OSMsearchGoo
Create FootprintscreateFootprints_In case your shape is a polygon (shapeType_ = 0), this input will create a surface from it. - This input is irrelevant if you are performing search of 3D OSM shapes (if data is supplied to "threeDeeShapes_" and "threeDeeValues_" inputs). - If not supplied, default value "False" will be used.Goo
Ground TerraingroundTerrain_The ground terrain surface on which the "foundShapes" will be laid onto. Supply it by using "terrain" output of the Ladybug "Terrain Generator" (type_ = 1) or Gismo "Terrain Generator" (type_ = 2 or type_ = 3) components. - If nothing supplied, the "foundShapes" will always be laid flat onto a horizontal plane, with plane origin being the "origin" input of the "OSM shapes" component.Goo
_____________Script variable PythonGoo
Bake ItbakeIt_Set to "True" to bake the extruded _shape geometry into the Rhino scene. The geometry will be grouped. To ungroup it, select it and call the "Ungroup" Rhino command. - If not supplied default value "False" will be used.Goo
Run It_runIt...Goo

Outputs

NameIDDescriptionType
OutreadMe!...String
Found ShapesfoundShapesInputted "_shapes" (for 2d search) or "threeDeeShapes_" (for 3d search) which correspond to the chosen _requiredTag input. - If upper "_shapes"/"threeDeeShapes_" do not satisfy the "_requiredTag", then that shape's branch will be empty. Use "Clean Tree" component and set the "E" input to "True" to remove all these empty branches.Goo
Found KeysfoundKeysA list of keys. This output is the same as "keys" output of "OSM shapes" component.Goo
Found ValuesfoundValuesValues corresponding to each "foundShapes". - If upper "_shapes"/"threeDeeShapes_" do not satisfy the "_requiredTag", then that branch will not have any values (it will be empty). Use "Clean Tree" component and set the "E" input to "True" to remove all these empty branches.Goo
Found Shape Or NotfoundShapeOrNotIf a shape corresponds to the chosen OSM object then the value will be True. If it does not, then False is returned. So no empty branches will exist, as False value will be used in their place. - Boolean value (True or False).Goo
Found Object NamesfoundObjectNamesNames of the found OSM objects.Goo
_____________Script variable OSMsearchGoo
Title Origin PttitleOriginPtTitle base point, which can be used to move the "title" geometry with grasshopper's "Move" component. - Connect this output to a Grasshopper's "Point" parameter in order to preview the point in the Rhino scene.Goo
TitletitleTitle geometry with information about "_requiredTag" inputs.Goo

Site design © Robin Rodricks.   Gismo and associated data © 2024 Djordje Spasic.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service