Attribute table and Python console
Lists GIS objects as a table at the bottom of the window: filtering, field calculation, XLSX and GeoJSON export; the Python tab gives command access to the layers.
In the app: GIS › Layers › Attribute table
What does it do?
Each row of the table is an object (OSM buildings, roads, water and power lines; buildings, poles and wires extracted from the cloud). Clicking a column header sorts; selecting a row highlights the object in the scene and moves the camera to it, and an object clicked in the scene is selected in the table.
Filter: expressions such as kat_adedi >= 4 and net_yukseklik_m > 15; SQL-like AND / OR / = / <> / IS NULL also work (field names containing ':' in double quotes, text in single quotes). With Filter scene on, objects that do not match are hidden in the scene; Field ▾ inserts field names and operators. Calculate field writes “new field = expression” to every object of the layer; cells are edited by double-clicking.
On the Python tab the layers are objects: osm_bina["hacim"] = osm_bina["alan_m2"] * osm_bina["net_yukseklik_m"], osm_bina.sec("kat_adedi >= 3"), osm_bina.istatistik("net_yukseklik_m"). Ctrl+Enter runs, Help shows examples. Attributes you write appear on the Object tab and are exported.
How to use it
- 1On GIS → Layers click Attribute table (or Python console).
- 2Choose the layer from the list; type a filter and press Apply.
- 3Create a new field with Calculate field if needed.
- 4Write the rows visible in the table with Excel ▾ or GeoJSON; for all objects use Export all (GeoJSON)… on the Layers tab.
Parameters
| Setting | What it does | Default |
|---|---|---|
| Layer | Layer shown in the table. | – |
| Filter | Python or SQL-like expression; Apply / Clear. | Empty |
| Filter scene | Hides objects that do not match the filter in the 3D scene. | Off |
| Calculate field | new field = expression (e.g. alan_m2 * net_yukseklik_m). | – |
| Go to selection | Moves the camera to the selected object. | – |
| Excel ▾ | This layer (rows visible in the table)…, All layers (one sheet each)… | – |
| GeoJSON | Writes the rows visible in the table with their geometry. | – |
| Python: Run (Ctrl+Enter); Clear output; Help | Commands on the layer objects. | – |
Outputs
- XLSX and GeoJSON files
- New computed attribute fields (on the Object tab and in exports)
Tips
- If the table is empty, fetch OSM data or extract objects from the cloud first.
- Filter together with Filter scene is the quickest way to leave only the buildings you care about in 3D.
- Export all (GeoJSON)… writes all GIS layers to one file.