Coveragepublic 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 | Description |
|---|---|---|
static java.lang.String |
FOOT_SERVICE_URL |
Footprint service base URL provided by CDS.
|
| Constructor | Description |
|---|---|
UrlMocCoverage(java.net.URL mocUrl) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected cds.moc.HealpixMoc |
createMoc() |
Constructs the MOC which will define this object's coverage.
|
static cds.moc.HealpixImpl |
getDefaultHealpixImpl() |
Returns the HEALPix implementation used for MOC service queries.
|
static UrlMocCoverage |
getServiceMoc(java.net.URL serviceUrl,
int nside) |
Returns an instance which gives coverage for a data service
with a given access URL.
|
static UrlMocCoverage |
getVizierMoc(java.lang.String vizierId,
int nside) |
Returns an instance which gives coverage for a named Vizier table.
|
static void |
setDefaultHealpixImpl(cds.moc.HealpixImpl hpi) |
Sets the HEALPix implementation used for MOC service queries.
|
discOverlaps, getAmount, getMoc, initCoveragepublic static final java.lang.String FOOT_SERVICE_URL
public UrlMocCoverage(java.net.URL mocUrl)
mocUrl - URL of MOC fileprotected cds.moc.HealpixMoc createMoc()
throws java.io.IOException
MocCoverageMocCoverage.initCoverage() method of
MocCoverage, and should not be called by anyone else.createMoc in class MocCoveragejava.io.IOExceptionpublic static UrlMocCoverage getServiceMoc(java.net.URL serviceUrl, int nside)
serviceUrl - URL of cone search servicenside - requiested HEALPix nside for MOC, or -1 for defaultpublic static UrlMocCoverage getVizierMoc(java.lang.String vizierId, int nside)
vizierId - vizier table name or aliasnside - requiested HEALPix nside for MOC, or -1 for defaultpublic static cds.moc.HealpixImpl getDefaultHealpixImpl()
public static void setDefaultHealpixImpl(cds.moc.HealpixImpl hpi)
hpi - indexing implementationCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.