Skip to content

Commit

Permalink
check in some experimental code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchin committed Aug 26, 2024
1 parent 06be40d commit f277a06
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gplately/commands/reset_feature_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import pygplates

new_fc = pygplates.FeatureCollection()
for f in pygplates.FeatureCollection("shapes_continents.gpml"):
# print(f.get_feature_type())
new_f = pygplates.Feature(
pygplates.FeatureType.gpml_unclassified_feature,
f.get_feature_id(),
pygplates.VerifyInformationModel.yes,
)
for p in f:
new_f.add(p.get_name(), p.get_value())
new_fc.add(new_f)

new_fc.write("new_shapes_continents.gpmlz")

0 comments on commit f277a06

Please sign in to comment.