Skip to content

v8.0.0

Compare
Choose a tag to compare
@natgeo-wong natgeo-wong released this 15 Feb 18:43
· 11 commits to main since this release

GeoRegions v8.0.0

Diff since v7.0.`

Release Notes:

  • Bump to v8 because of many breaking changes (see below)
  • Now there is only one GeoRegion type that is used
  • All information is now stored in .json files instead of .txt files to speed up saving when a project has many GeoRegions
  • All GeoRegions now have a rotation component
  • A lot of reduction in the methods for functions because there is now only one GeoRegion type instead of three
  • Improved leniency for in() and on() functions
  • Export centroid of geometry in structure
  • Added a "derotation" functionality that can, based on the assumed rotation of the GeoRegion in geo.θ, derotate a given set of coordinates around the GeoRegion centroid into an x-y cartesian domain

Breaking Changes

  • Breaking changes to types, no more RectRegion, PolyRegion and TiltRegion types, all have been consolidated into a single GeoRegion type
  • Breaking change to define custom GeoRegions, now ID, pID and name are keyword arguments, only longitude and latitude vectors are non-keyword arguments
  • Breaking changes to project handling and functions
  • Storing all information in .json files, so all previously defined GeoRegions will need to be redefined into this new file format