pyGPlates: restore points to paleomap

Hi Wenrong,

There’s a script in PlateTectonicTools called convert_xy_to_gplates.py that can create pygplates features from text files containing rows longitude and latitude (or vice versa).

By default it creates point features but you can create polyline or polygon features (using lines beginning with >), and you can optionally import metadata (eg, a line containing > FeatureType = Coastline defines a Coastline feature).

Once you’ve installed PlateTectonicTools you can run python -m ptt.convert_xy_to_gplates --help to see the overview and options of that specific script.

The above tool is basically an extension of this pyGPlates sample code to import from a text file (note that the sample code also shows how to assign plate IDs to the imported geometry so it can be reconstructed).

Regards,
John