-
Notifications
You must be signed in to change notification settings - Fork 1
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
Point multibuffer function #303
Conversation
QgsProcessingException, | ||
edit, | ||
) | ||
from PyQt5.QtCore import QVariant |
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.
Qt imports via the QGIS api
|
||
try: | ||
# Run the ORS isochrones tool | ||
result = processing.run( |
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.
I guess this will go?
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.
Yes
temp_layers.append(isochrone_layer) | ||
|
||
# Provide progress feedback | ||
print( |
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.
QgsMessageLog please
) | ||
|
||
except QgsProcessingException as e: | ||
print( |
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.
Same
# Proceed to create bands by differencing the ranges | ||
self._create_bands(merged_layer, output_path, crs) | ||
else: | ||
print("No isochrones were created.") |
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.
# Proceed to create bands by differencing the ranges | ||
self._create_bands(merged_layer, output_path, crs) | ||
else: | ||
print("No isochrones were created.") |
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.
Return the results?
) | ||
final_layer = QgsVectorLayer(output_path, "MultiBuffer", "ogr") | ||
|
||
print(f"Multi-buffer layer created at {output_path}") |
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.
also this one
Closing @osundwajeff will make a new pr for this |
Ticket #261.
Still a work in progress.
Depends on #302