-
Notifications
You must be signed in to change notification settings - Fork 0
thickness calculator #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
thickness calculator #25
Conversation
…Loop3D/plugin_map2loop into processing/thickness_calculator
|
|
This branch was created from processing/thickness_calculator which does not include updated code from processing/procecssing_tools, which makes this pull request show many unrelated code diff. |
rabii-chaarani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can merge after resolving the conflicts and making the requested changes
|
|
||
| fields = QgsFields() | ||
| fields.append(QgsField("ID", QVariant.String)) | ||
| fields.append(QgsField("X", QVariant.Double)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use QVariant for the moment, as QMetaType don't work for older versions
| self.addParameter( | ||
| QgsProcessingParameterEnum( | ||
| 'THICKNESS_ORIENTATION_TYPE', | ||
| 'Thickness Orientation Type', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be "Orientation Type". Just FYI," Thickness orientation type" doesn't exist in geology.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user should be able to choose between having a manual bounding box or using the extent of any polygon layer they want. So, you can add another parameter of the layer they want to use for the bounding box
| geology_layer = self.parameterAsVectorLayer(parameters, self.INPUT_GEOLOGY, context) | ||
| extent = geology_layer.extent() | ||
| bounding_box = { | ||
| 'minx': extent.xMinimum(), | ||
| 'miny': extent.yMinimum(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above for the removed bounding box parameter
No description provided.