Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
I have a shapefile with ~100 fields, the first ~50 fields are motion towards the east, and the last ~50 are motion towards the north. There are 50 fields because each represents a date. I want to calculate the displacement using a simple formula (d= sqrt((east * east)+(north * north)). Below is a sample of the shapefile As I need to repeat this at least 50 times I am using the Python script in QGIS to create and calculate the new fields.
I created a model that combines two vector layers and outputs a single layer with aggregated data, after that, is calculated chi-square test. I tried join both, but I can´t. Now, when it´s executed, it crash QGIS. Could someone look it? """ Model exported as python.
I can suggest a PyQGIS approach. It utilizes the $area function inside the QgsExpression() class. Let's assume this is an attribute table of the original 'lines' layer, see the image below.
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.