public class UrlMocCoverage extends MocCoverage
Note: MOCs are cached indefinitely per service, beware that this constitutes a potential memory leak. Some smarter caching scheme may be introduced if this causes problems.
Coverage.Amount
Modifier and Type | Field and Description |
---|---|
static String |
FOOT_SERVICE_URL
Footprint service base URL provided by CDS.
|
DFLT_HPI
Constructor and Description |
---|
UrlMocCoverage(URL mocUrl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected cds.moc.HealpixMoc |
createMoc()
Constructs the MOC which will define this object's coverage.
|
static UrlMocCoverage |
getServiceMoc(URL serviceUrl,
int nside)
Returns an instance which gives coverage for a data service
with a given access URL.
|
static UrlMocCoverage |
getVizierMoc(String vizierId,
int nside)
Returns an instance which gives coverage for a named Vizier table.
|
discOverlaps, getAmount, getMoc, initCoverage
public static final String FOOT_SERVICE_URL
public UrlMocCoverage(URL mocUrl)
mocUrl
- URL of MOC fileprotected cds.moc.HealpixMoc createMoc() throws IOException
MocCoverage
MocCoverage.initCoverage()
method of
MocCoverage
, and should not be called by anyone else.createMoc
in class MocCoverage
IOException
public static UrlMocCoverage getServiceMoc(URL serviceUrl, int nside)
serviceUrl
- URL of cone search servicenside
- requiested HEALPix nside for MOC, or -1 for defaultpublic static UrlMocCoverage getVizierMoc(String vizierId, int nside)
vizierId
- vizier table name or aliasnside
- requiested HEALPix nside for MOC, or -1 for defaultCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.