Package uk.ac.starlink.ttools.cone
Class AsciiMocCoverage
java.lang.Object
uk.ac.starlink.ttools.cone.MocCoverage
uk.ac.starlink.ttools.cone.AsciiMocCoverage
- All Implemented Interfaces:
Coverage
MOC coverage implementation which uses the ASCII serialization.
- Since:
- 29 Nov 2023
- Author:
- Mark Taylor
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface uk.ac.starlink.ttools.cone.Coverage
Coverage.Amount
-
Field Summary
Fields inherited from class uk.ac.starlink.ttools.cone.MocCoverage
DFLT_HPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected cds.moc.HealpixMoc
Constructs the MOC which will define this object's coverage.static boolean
looksLikeAsciiMoc
(String txt) Test whether a string is apparently a (spatial) ASCII MOC as described in sec 4.3.2 of MOC 2.0.Methods inherited from class uk.ac.starlink.ttools.cone.MocCoverage
discOverlaps, getAmount, getMoc, initCoverage
-
Constructor Details
-
AsciiMocCoverage
Constructor.- Parameters:
asciiMoc
- MOC encoded using the ASCII MOC serialization
-
-
Method Details
-
createMoc
Description copied from class:MocCoverage
Constructs the MOC which will define this object's coverage. This method, which may be time-consuming, will be called a maximum of once by theMocCoverage.initCoverage()
method ofMocCoverage
, and should not be called by anyone else.- Specified by:
createMoc
in classMocCoverage
- Returns:
- new MOC defining footprint, or null
- Throws:
IOException
-
looksLikeAsciiMoc
Test whether a string is apparently a (spatial) ASCII MOC as described in sec 4.3.2 of MOC 2.0.- Parameters:
txt
- string to test- Returns:
- true if text looks like it could be a spatial MOC
- See Also:
-