Skip to content
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

Closed

Conversation

osundwajeff
Copy link
Collaborator

Ticket #261.

Still a work in progress.

Depends on #302

QgsProcessingException,
edit,
)
from PyQt5.QtCore import QVariant
Copy link
Contributor

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(
Copy link
Contributor

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?

Copy link
Collaborator Author

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(
Copy link
Contributor

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(
Copy link
Contributor

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.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Print

# Proceed to create bands by differencing the ranges
self._create_bands(merged_layer, output_path, crs)
else:
print("No isochrones were created.")
Copy link
Contributor

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}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also this one

@timlinux
Copy link
Contributor

Closing @osundwajeff will make a new pr for this

@timlinux timlinux closed this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants