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

add_time_range in layer #8

Merged
merged 2 commits into from
Sep 27, 2023
Merged

add_time_range in layer #8

merged 2 commits into from
Sep 27, 2023

Conversation

Druk-Drink
Copy link
Contributor

Issue

close #0

変更内容:Description

  • タイトルのとおり

テスト手順:Test

  • 特になし

その他:Notes

  • 特になし

@Druk-Drink
Copy link
Contributor Author

added time range in layer

Comment on lines 154 to 164
for idx, layer in enumerate(qgs_layers):
print(layer)
layer.temporalProperties().setIsActive(True)

# range is temporary.
# Need to fix QgsDateTimeRange into proper time range.
range = QgsDateTimeRange(QDateTime(1980 + idx, 1, 1, 0, 0, 0),
QDateTime(1980 + idx, 12, 31, 23, 59, 59))
layer.temporalProperties().setFixedTemporalRange(range)
print(range)

Copy link
Member

Choose a reason for hiding this comment

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

please remove print()

@Kanahiro Kanahiro self-requested a review September 27, 2023 02:42
@Kanahiro Kanahiro merged commit e892fa0 into master Sep 27, 2023
@Kanahiro Kanahiro deleted the Temporal_Controller_develop branch September 27, 2023 02:42
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