Geo::C...::Maps(3pm)

πŸ“¦
version 2.20 Β· 2 versions
  • 2.20 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 2.20 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Geo::C...::Maps πŸ’–

okay bestie, welcome to the little data page for Geo::C...::Maps β€” that's the Data for OSGB Maps module, from the User Contributed Perl Documentation corner of the internet. it's literally just vibes and coordinates in here. no cap. 🌸


✨ VERSION ✨

V2.20 β€” yes ma'am, we're on V2.20. πŸ‘‘


πŸ¦‹ SUBROUTINES AND METHODS πŸ¦‹

so here's the tea: this module exports no functions. none. zero. it's not that kind of module and it's not trying to be. what it does give you is two hashes of data β€” that's the whole entire personality. two hashes. and honestly? iconic. πŸ’…

🌈 Hash %name_for_map_series 🌈

the keys are the single letter codes used for each map series, and the values are the descriptive names of each series. it's giving lookup table, it's giving "I know what A means". currently we have:

A : OS Landranger
B : OS Explorer
C : OS One-Inch 7th series
H : Harvey British Mountain Maps
J : Harvey Superwalker

five series. five little letters. so much map energy. πŸ—ΊοΈβœ¨

πŸ’œ Hash %maps πŸ’œ

okay so the keys here are short identifiers for each sheet or inset. and listen β€” where a map has more than one side, or includes insets, there will be a separate entry for each side and inset. no merging, no shortcuts, one entry each. fr fr.

the value for each key is another hash (we love a nested moment) containing the following items:

  • bbox β€” the bounding box of the sheet, as a list of two pairs of coordinates, in metres from the grid origin. πŸ“
  • polygon β€” a list of pairs of coordinates (in metres from grid origin, same deal) that define the corners of the sheet. the list starts at the SW corner β€” approximately, because some of them lowkey don't have an obvious place to start β€” and works round anticlockwise. and in all cases the last pair is the same as the first pair. it closes the loop. it comes home. 🫢
  • area β€” the calculated area of the sheet, in square kilometres. math girl summer. πŸ”₯
  • series β€” a single letter series identifier. this will be one of the keys from the name_for_map_series hash. iykyk. ⭐
  • number β€” the identifier for this map within the series, not including any suffix for a sheet or an inset. the two sides of a single map have the same number. and bestie, heads up: the number is not always an integer β€” Outdoor Leisure maps are designated "OL14" etc. and those maps known by two numbers have a number consisting of both numbers divided by a "/", like "418/OL60" in the Explorer series. she contains multitudes. 😭
  • parent β€” the key of the parent map for an inset. main sheets of a map will have parent equal to their own key. self-parenting, main character energy, honestly. πŸ’€
  • title β€” the title of the map. different sheets and insets from the same map will have the same title. the title stays. the title always stays. πŸ‘‘

okay that's genuinely it β€” two hashes, seven little value items, five series codes, and absolutely no functions to call. a low-key legend. 🌈

and that's the whole page, bestie!! this was perl v5.36.0, dated 2022-12-06, from Geo::C...::Maps β€” go forth and map something, you absolute icon πŸ’–βœ¨πŸŽ€