Api session event editor building: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
API api session event editor building Events.
<noinclude lang="text" copy>API Endpoint: api/session/event/editorbuilding/
 
</noinclude><noinclude lang="text" copy>
Building editing.
API Endpoints for [[Building]] editing.
{|class=wikitable
</noinclude>{|class=wikitable
!Name
!Name
!Description
!Description
|-
|-
|[[api session event editor building add|ADD]]
| [[Api session event editor building add|add]]
|Add new [[Building]]
| Add a new [[Building]], owned by a [[Stakeholder]], with a provided [[Function]] and name
|-
|-
|[[api session event editor building add polygons|ADD_POLYGONS]]
| [[Api session event editor building add polygons|add_polygons]]
|Add polygons for [[Building]] [[Section]]. In case the [[Building]] is empty, optionally set ownership to largest [[Plot]] Owner of provided MultiPolygon
| Add [[Polygon]]s for [[Building]] [[Section]]. If the [[Building]] is empty, optionally set ownership to the largest [[Plot]] Owner of the provided [[MultiPolygon]]
|-
|-
|[[api session event editor building append attribute|APPEND_ATTRIBUTE]]
| [[Api session event editor building append attribute|append_attribute]]
|Appended to existing [[Building]] attribute value
| Appended to existing [[Building]] numeric [[Attribute]] value
|-
|-
|[[api session event editor building duplicate|DUPLICATE]]
| [[Api session event editor building duplicate|duplicate]]
|Duplicate existing [[Building]]
| Duplicate existing [[Building]]
|-
|-
|[[api session event editor building import|IMPORT]]
| [[Api session event editor building import|import]]
|Import [[Building]] Collection
| Import [[Building]] Collection
|-
|-
|[[api session event editor building remove|REMOVE]]
| [[Api session event editor building remove|remove]]
|Remove existing [[Building]]
| Remove existing [[Building]]
|-
|-
|[[api session event editor building remove attribute|REMOVE_ATTRIBUTE]]
| [[Api session event editor building remove attribute|remove_attribute]]
|Remove attribute from [[Building]]
| Remove numeric [[Attribute]] from [[Building]]
|-
|-
|[[api session event editor building remove polygons|REMOVE_POLYGONS]]
| [[Api session event editor building remove polygons|remove_polygons]]
|Delete polygons for [[Building]] [[Section]]
| Remove [[Polygon]]s from a [[Building]] [[Section]]
|-
|-
|[[api session event editor building set attribute|SET_ATTRIBUTE]]
| [[Api session event editor building set attribute|set_attribute]]
|Set [[Building]] attribute value
| Set [[Building]] numeric [[Attribute]] value
|-
|-
|[[api session event editor building set attributes|SET_ATTRIBUTES]]
| [[Api session event editor building set attributes|set_attributes]]
|Set multiple [[Building]] attribute values
| Set multiple [[Building]] numeric [[Attribute]] values
|-
|-
|[[api session event editor building set name|SET_NAME]]
| [[Api session event editor building set name|set_name]]
|Set new name of existing [[Building]]
| Set the name of a [[Building]]
|}
|}
 
<noinclude lang="text" copy>
Specific Events:
Additional API Endpoints:
{|class=wikitable
</noinclude>{|class=wikitable
!Name
!Name
!Description
!Description
|-
|-
|[[api session event editor building add geometry|ADD_GEOMETRY]]
| [[Api session event editor building add geometry|add_geometry]]
|Add a custom [[Building]] geometry
| Add a [[Custom Geometry]] to a [[Building]]
|-
|-
|[[api session event editor building add road|ADD_ROAD]]
| [[Api session event editor building add road|add_road]]
|Add Road
| Add a new [[Building]], owned by a [[Stakeholder]], with a default road [[Function]]
|-
|-
|[[api session event editor building add section|ADD_SECTION]]
| [[Api session event editor building add section|add_section]]
|Add [[Section]]
| Add a new [[Section]] to a [[Building]]
|-
|-
|[[api session event editor building add standard|ADD_STANDARD]]
| [[Api session event editor building add standard|add_standard]]
|Add Standard
| Add a new [[Building]], owned by a [[Stakeholder]], with a default housing [[Function]]
|-
|-
|[[api session event editor building add underground|ADD_UNDERGROUND]]
| [[Api session event editor building add underground|add_underground]]
|Add Underground
| Add a new [[Building]], owned by a [[Stakeholder]], with a default underground [[Function]]
|-
|-
|[[api session event editor building duplicate section|DUPLICATE_SECTION]]
| [[Api session event editor building duplicate section|duplicate_section]]
|Duplicate a [[Building]] [[Section]].
| Duplicate a [[Building]] [[Section]]
|-
|-
|[[api session event editor building generate rotation angles|GENERATE_ROTATION_ANGLES]]
| [[Api session event editor building generate rotation angles|generate_rotation_angles]]
|Calculation a rotation angle for [[Building]]s having the identifying attribute polygons, optionally only for specified [[Building]].
| Calculate a rotation angle for [[Building]]s with [[Polygon]]s for the identifying [[Attribute]], optionally only for specified [[Building]]s
|-
|-
|[[api session event editor building generate water connection|GENERATE_WATER_CONNECTION]]
| [[Api session event editor building generate water connection|generate_water_connection]]
|Generate Water Connection.
| Generate Water Connections, with a [[Function]], within a provided [[MultiPolygon]]. Connections are only taken into account when within the provided parameter bounds
|-
|-
|[[api session event editor building multi select|MULTI_SELECT]]
| [[Api session event editor building multi select|multi_select]]
|Multi Select
| Change the [[Function]] of multiple [[Building]]s. Optionally adjust the floors (>0). Optionally merge the [[Building]]s into one
|-
|-
|[[api session event editor building query|QUERY]]
| [[Api session event editor building query|query]]
|Executes a single TQL query. Note: you can also use the session/query endpoint to execute multiple statements and get additional information on API usage.
| Execute a single [[Tygron Query Language|TQL Query]]. Use the [[Api session query|Session/query Endpoint]] for multiple statements or detailed API usage information
|-
|-
|[[api session event editor building remove geometries|REMOVE_GEOMETRIES]]
| [[Api session event editor building remove geometries|remove_geometries]]
|Remove all custom [[Building]] geometries
| Remove all [[Custom Geometry|Custom Geometries]] from a [[Building]]
|-
|-
|[[api session event editor building remove sections|REMOVE_SECTIONS]]
| [[Api session event editor building remove sections|remove_sections]]
|Remove [[Section]]s
| Remove a [[Section]] from a [[Building]]
|-
|-
|[[api session event editor building reset category values|RESET_CATEGORY_VALUES]]
| [[Api session event editor building reset category values|reset_category_values]]
|Reset [[Category Value]]s
| Reset values of [[Category Value]]s of a [[Building]] for a [[Category]]
|-
|-
|[[api session event editor building reset function values|RESET_FUNCTION_VALUES]]
| [[Api session event editor building reset function values|reset_function_values]]
|Reset [[Function Value]]s
| Reset the values of [[Function Value]]s for a [[Building]]
|-
|-
|[[api session event editor building reset slanting roof height|RESET_SLANTING_ROOF_HEIGHT]]
| [[Api session event editor building reset slanting roof height|reset_slanting_roof_height]]
|Reset [[Height]] of the slanting roof of a [[Building]] section
| Reset [[Slanting roof height (Function Value)|Height of the Slanting Roof]] of a [[Building]] [[Section]]
|-
|-
|[[api session event editor building set category value|SET_CATEGORY_VALUE]]
| [[Api session event editor building set category value|set_category_value]]
|Set [[Category Value]]
| Set the values of a [[Category Value]] for a [[Building]] and a [[Category]]
|-
|-
|[[api session event editor building set decals|SET_DECALS]]
| [[Api session event editor building set decals|set_decals]]
|Set Decals
| Set the decal values (door, window etc) for a Face Type of a [[Building]]
|-
|-
|[[api session event editor building set floors|SET_FLOORS]]
| [[Api session event editor building set floors|set_floors]]
|Change amount of floors
| Set the number of floors of a [[Building]]'s [[Section]]
|-
|-
|[[api session event editor building set function|SET_FUNCTION]]
| [[Api session event editor building set function|set_function]]
|Set [[Function]]
| Set the [[Function]] of a [[Building]]
|-
|-
|[[api session event editor building set function value|SET_FUNCTION_VALUE]]
| [[Api session event editor building set function value|set_function_value]]
|Set [[Function Value]]
| Set the values of a [[Function Value]] for a [[Building]]
|-
|-
|[[api session event editor building set owner|SET_OWNER]]
| [[Api session event editor building set owner|set_owner]]
|Set Owner
| Set the owner of a [[Building]]
|-
|-
|[[api session event editor building set slanting roof height|SET_SLANTING_ROOF_HEIGHT]]
| [[Api session event editor building set slanting roof height|set_slanting_roof_height]]
|Change [[Height]] of the slanting roof of a [[Building]] section
| Change [[Slanting roof height (Function Value)|Height of the Slanting Roof]] of a [[Section]] of a [[Building]]
|}
|}
 
<noinclude lang="text" copy>{{article end|seealso=*[[Api Session Endpoints]]
Deprecated Events:
*[[Api session items buildings]]
{|class=wikitable
}}
!Name
</noinclude>
!Description
|-
|[[api session event editor building duplicate sections|DUPLICATE_SECTIONS]]
|Use DUPLICATE_SECTION instead for identical result.
|}
{{article end|seealso=*[[Api Events]]}}
 
[[Category:API]]
[[Category:API]]

Latest revision as of 10:26, 13 November 2026

API Endpoint: api/session/event/editorbuilding/

API Endpoints for Building editing.

Name Description
add Add a new Building, owned by a Stakeholder, with a provided Function and name
add_polygons Add Polygons for Building Section. If the Building is empty, optionally set ownership to the largest Plot Owner of the provided MultiPolygon
append_attribute Appended to existing Building numeric Attribute value
duplicate Duplicate existing Building
import Import Building Collection
remove Remove existing Building
remove_attribute Remove numeric Attribute from Building
remove_polygons Remove Polygons from a Building Section
set_attribute Set Building numeric Attribute value
set_attributes Set multiple Building numeric Attribute values
set_name Set the name of a Building

Additional API Endpoints:

Name Description
add_geometry Add a Custom Geometry to a Building
add_road Add a new Building, owned by a Stakeholder, with a default road Function
add_section Add a new Section to a Building
add_standard Add a new Building, owned by a Stakeholder, with a default housing Function
add_underground Add a new Building, owned by a Stakeholder, with a default underground Function
duplicate_section Duplicate a Building Section
generate_rotation_angles Calculate a rotation angle for Buildings with Polygons for the identifying Attribute, optionally only for specified Buildings
generate_water_connection Generate Water Connections, with a Function, within a provided MultiPolygon. Connections are only taken into account when within the provided parameter bounds
multi_select Change the Function of multiple Buildings. Optionally adjust the floors (>0). Optionally merge the Buildings into one
query Execute a single TQL Query. Use the Session/query Endpoint for multiple statements or detailed API usage information
remove_geometries Remove all Custom Geometries from a Building
remove_sections Remove a Section from a Building
reset_category_values Reset values of Category Values of a Building for a Category
reset_function_values Reset the values of Function Values for a Building
reset_slanting_roof_height Reset Height of the Slanting Roof of a Building Section
set_category_value Set the values of a Category Value for a Building and a Category
set_decals Set the decal values (door, window etc) for a Face Type of a Building
set_floors Set the number of floors of a Building's Section
set_function Set the Function of a Building
set_function_value Set the values of a Function Value for a Building
set_owner Set the owner of a Building
set_slanting_roof_height Change Height of the Slanting Roof of a Section of a Building