Class: CocinaDisplay::Geospatial::DMSPointParser

Inherits:
PointParser show all
Includes:
DMSParser
Defined in:
lib/cocina_display/geospatial.rb

Overview

Note:

The hemisphere can either lead or trail the degrees in each half.

Parser for DMS-format points, like "N34°03′08″ W118°14′37″".

Examples:

34°03′08″N 118°14′37″W

Constant Summary collapse

PATTERN =
/(?<lat>[NS][^NS]+|[^NS]+[NS])(?<lng>[EW][^EW]+|[^EW]+[EW])/

Constants included from DMSParser

CocinaDisplay::Geospatial::DMSParser::DMS_PATTERN, CocinaDisplay::Geospatial::DMSParser::POINT_PATTERN

Method Summary

Methods included from DMSParser

included

Methods inherited from PointParser

parse

Methods inherited from CoordinatesParser

hemisphere_first, supports?