#test python feature functions
#this script will iterator through all feature collections, features and properties.

app = pygplates.Application()
fcs = app.feature_collections() #all feature collections

for fc in fcs: # for each feature collection 
	print fc.size()
	fs = fc.features() # all features in a particular feature collection 
	for f in fs: # for each feature 
		print f.feature_type()
		print f.plate_id()
		print f.feature_id()
		print f.begin_time()
		print f.end_time()	
		print f.valid_time()
		names = f.get_all_property_names() #get all property names in a particular feature
		for n in names: #for each property name
			print 'the property name is: ' + n
			print f.get_properties_by_name(n)
	
		print f.get_properties() #get all properties in a particular feature
	