resourceMapName added to OVERLAY JAXB files, mods made to NCP overlay menu and action classes to allow load/unload and checkbox toggle.
Former-commit-id: 7319647733
This commit is contained in:
parent
6d2d4dd2c5
commit
5ebdb88a2e
79 changed files with 122 additions and 122 deletions
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>88Ds</resourceDefnName>
|
||||
<resourceMapName>WSR-88D Station Locs</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>AirmetCstl</resourceDefnName>
|
||||
<resourceMapName>AIRMET CSTL Boundaries</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Airports</resourceDefnName>
|
||||
<resourceMapName>Airports</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=SPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Airways</resourceDefnName>
|
||||
<resourceMapName>AIRWAYS Boundaries</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>AkPsa</resourceDefnName>
|
||||
<resourceMapName>AK PSA</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
tableName=bounds.akpsabnds
|
||||
labelField=area
|
||||
mapName=AK PSA </resourceParameters>
|
||||
mapName=AK PSA</resourceParameters>
|
||||
<rscImplementation>DbOverlay</rscImplementation>
|
||||
<subTypeGenerator></subTypeGenerator>
|
||||
<rscTypeGenerator></rscTypeGenerator>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>AtlanticFullBasin</resourceDefnName>
|
||||
<resourceMapName>Atlantic Full Basin</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>BWUS</resourceDefnName>
|
||||
<resourceMapName>BWUS bound</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>BWUSLabel</resourceDefnName>
|
||||
<resourceMapName>BWUS LABEL</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
tableName=bounds.bwus_label
|
||||
labelField=area
|
||||
mapName=BWUS LABEL </resourceParameters>
|
||||
mapName=BWUS LABEL</resourceParameters>
|
||||
<rscImplementation>DbOverlay</rscImplementation>
|
||||
<subTypeGenerator></subTypeGenerator>
|
||||
<rscTypeGenerator></rscTypeGenerator>
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>BWX1224</resourceDefnName>
|
||||
<resourceMapName>BWUS1224</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
tableName=bounds.bwx1224
|
||||
labelField=name
|
||||
mapName=BWUS1224 </resourceParameters>
|
||||
mapName=BWUS1224</resourceParameters>
|
||||
<rscImplementation>DbOverlay</rscImplementation>
|
||||
<subTypeGenerator></subTypeGenerator>
|
||||
<rscTypeGenerator></rscTypeGenerator>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Buoys</resourceDefnName>
|
||||
<resourceMapName>Fixed Buoys</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=SPI_FILE
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>BuoysFixed</resourceDefnName>
|
||||
<resourceMapName>Fixed Buoys IDs</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=STATIONS_DB_TABLE
|
||||
! catalogType=32 in common_obs_spatial db
|
||||
sourceName=BUOY_FXD
|
||||
sourceParams=stationid
|
||||
mapName=Fixed Buoys ids
|
||||
mapName=Fixed Buoys IDs
|
||||
</resourceParameters>
|
||||
<rscImplementation>PointOverlay</rscImplementation>
|
||||
<subTypeGenerator></subTypeGenerator>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>CMAN</resourceDefnName>
|
||||
<resourceMapName>Coastal Marine Locations</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=STATIONS_DB_TABLE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>CPCUS</resourceDefnName>
|
||||
<resourceMapName>CPC</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>CWAs</resourceDefnName>
|
||||
<resourceMapName>County Warning Areas</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Carrfa</resourceDefnName>
|
||||
<resourceMapName>CARIBBEAN FA Boundaries</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Ccfcan</resourceDefnName>
|
||||
<resourceMapName>CCFCAN Boundaries</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Cities</resourceDefnName>
|
||||
<resourceMapName>Cities</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=NCEP_DB_TABLE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Counties</resourceDefnName>
|
||||
<resourceMapName>US Counties</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>DayNightTerminator</resourceDefnName>
|
||||
<resourceMapName>Day/Night Terminator</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters></resourceParameters>
|
||||
<rscImplementation>DayNightTerminatorOverlay</rscImplementation>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>DwmStns</resourceDefnName>
|
||||
<resourceMapName>DWM Stations</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>EnhArea</resourceDefnName>
|
||||
<resourceMapName>ENH AREA</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>FAArea</resourceDefnName>
|
||||
<resourceMapName>FA Area</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>FAAreaX</resourceDefnName>
|
||||
<resourceMapName>FA AreaX</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>FARegion</resourceDefnName>
|
||||
<resourceMapName>FA Region</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>FfgZones</resourceDefnName>
|
||||
<resourceMapName>FFG Zones</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=NCEP_STATIONS_TBL_FILES
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>FireBnds</resourceDefnName>
|
||||
<resourceMapName>Fire Bnds</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>FireWxAOR</resourceDefnName>
|
||||
<resourceMapName>Fire WX AOR</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>GeoPolitical</resourceDefnName>
|
||||
<resourceMapName></resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>mapName=Geo-Political</resourceParameters>
|
||||
<rscImplementation>OverlayGroup</rscImplementation>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>GfaConus</resourceDefnName>
|
||||
<resourceMapName>GFA CONUS</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>GreatLakes</resourceDefnName>
|
||||
<resourceMapName>Great Lakes</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>HCN</resourceDefnName>
|
||||
<resourceMapName>HCN BNDS</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Hifiwo</resourceDefnName>
|
||||
<resourceMapName>HIFIWO Boundaries</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>HighSeasZones</resourceDefnName>
|
||||
<resourceMapName>High Seas Marine Zones</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>IcaoStations</resourceDefnName>
|
||||
<resourceMapName>ICAO Stations</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=STATIONS_DB_TABLE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Interstates</resourceDefnName>
|
||||
<resourceMapName>Interstates</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Lakes</resourceDefnName>
|
||||
<resourceMapName>Lakes</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>LatLon</resourceDefnName>
|
||||
<resourceMapName>Latitude/Longitude</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters></resourceParameters>
|
||||
<rscImplementation>LatlonOverlay</rscImplementation>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Locator</resourceDefnName>
|
||||
<resourceMapName>Locator</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
! default fontSize, fontName and color which may be overridden in an attrSet.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>MarineCounty</resourceDefnName>
|
||||
<resourceMapName>WBCMZ</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>MetarStations</resourceDefnName>
|
||||
<resourceMapName>Metar Stations</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=SPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>NHCOffshoreAtlZones</resourceDefnName>
|
||||
<resourceMapName>NHC Offshore Atl Zones</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>NPsa</resourceDefnName>
|
||||
<resourceMapName>NAT PSA</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Nexrad</resourceDefnName>
|
||||
<resourceMapName>Nexrad</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=NCEP_DB_TABLE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>OPCOffshoreAtlZones</resourceDefnName>
|
||||
<resourceMapName>OPC Offshore Atl Zones</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>OPCOffshorePacZones</resourceDefnName>
|
||||
<resourceMapName>OPC Offshore Pac Zones</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>PFZ</resourceDefnName>
|
||||
<resourceMapName>PFZ</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>PacificFullBasin</resourceDefnName>
|
||||
<resourceMapName>Pacific Full Basin</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>RAOBs</resourceDefnName>
|
||||
<resourceMapName>RAOB Icao Ids</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=STATIONS_DB_TABLE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Railroads</resourceDefnName>
|
||||
<resourceMapName>Railroads</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>RaobNames</resourceDefnName>
|
||||
<resourceMapName>RAOBs by Name</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=STATIONS_DB_TABLE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Rivers</resourceDefnName>
|
||||
<resourceMapName>All Rivers</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>SPCOutlook</resourceDefnName>
|
||||
<resourceMapName>OUTLOOK</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Scale</resourceDefnName>
|
||||
<resourceMapName>Distance Scale</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters></resourceParameters>
|
||||
<rscImplementation>ScaleOverlay</rscImplementation>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>SfcStns</resourceDefnName>
|
||||
<resourceMapName>Surface Stations</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>SpcWatchName</resourceDefnName>
|
||||
<resourceMapName>SPC Watch Anchor Points Names</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=NCEP_STATIONS_TBL_FILES
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>States</resourceDefnName>
|
||||
<resourceMapName>States</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>SynopStationIds</resourceDefnName>
|
||||
<resourceMapName>Synoptic Stations</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=STATIONS_DB_TABLE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>TimeZones</resourceDefnName>
|
||||
<resourceMapName>Time Zones</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>TropFirs</resourceDefnName>
|
||||
<resourceMapName>TROPFIRS Boundaries</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Tweb</resourceDefnName>
|
||||
<resourceMapName>TWEB Boundaries</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>USAK</resourceDefnName>
|
||||
<resourceMapName>US_AK</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>VORs</resourceDefnName>
|
||||
<resourceMapName>VORs</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>VolcanoNames</resourceDefnName>
|
||||
<resourceMapName>Volcano Names</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
sourceName=volcano_names.lpi
|
||||
mapName=Volcano Names
|
||||
mapName=Volcano Names
|
||||
</resourceParameters>
|
||||
<rscImplementation>PointOverlay</rscImplementation>
|
||||
<subTypeGenerator></subTypeGenerator>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>Volcanos</resourceDefnName>
|
||||
<resourceMapName>Volcanos</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>VolcanosAll</resourceDefnName>
|
||||
<resourceMapName>All Volcanos</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>VorNames</resourceDefnName>
|
||||
<resourceMapName>VOR Names</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=NCEP_STATIONS_TBL_FILES
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>WFOs</resourceDefnName>
|
||||
<resourceMapName>WFO</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>WrZones</resourceDefnName>
|
||||
<resourceMapName>WRZONES Boundaries</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=ncep
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>countyCluster</resourceDefnName>
|
||||
<resourceMapName>County Clusters</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>countyNames</resourceDefnName>
|
||||
<resourceMapName>County Names</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>cpcStations</resourceDefnName>
|
||||
<resourceMapName>CPC Stations</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>rfcBoundaries</resourceDefnName>
|
||||
<resourceMapName>RFC Boundaries</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
dbName=maps
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>snapPoints</resourceDefnName>
|
||||
<resourceMapName>Snap Points</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=NCEP_DB_TABLE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>spcwatch</resourceDefnName>
|
||||
<resourceMapName>SPC Watch Anchor Points</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ResourceDefinition xmlns:ns2="group" xmlns:ns3="http://www.example.org/productType">
|
||||
<resourceDefnName>wrqpf</resourceDefnName>
|
||||
<resourceMapName>WR_QPF</resourceMapName>
|
||||
<resourceCategory>OVERLAY</resourceCategory>
|
||||
<resourceParameters>
|
||||
sourceType=LPI_FILE
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
package gov.noaa.nws.ncep.viz.overlays;
|
||||
|
||||
import gov.noaa.nws.ncep.viz.common.display.INatlCntrsDescriptor;
|
||||
import gov.noaa.nws.ncep.viz.common.display.NcDisplayType;
|
||||
import gov.noaa.nws.ncep.viz.common.ui.NmapCommon;
|
||||
import gov.noaa.nws.ncep.viz.resources.AbstractNatlCntrsResourceData;
|
||||
import gov.noaa.nws.ncep.viz.resources.INatlCntrsResource;
|
||||
import gov.noaa.nws.ncep.viz.resources.INatlCntrsResourceData;
|
||||
import gov.noaa.nws.ncep.viz.resources.manager.ResourceCategory;
|
||||
import gov.noaa.nws.ncep.viz.resources.manager.ResourceDefinition;
|
||||
import gov.noaa.nws.ncep.viz.resources.manager.ResourceDefnsMngr;
|
||||
import gov.noaa.nws.ncep.viz.resources.manager.ResourceFactory;
|
||||
import gov.noaa.nws.ncep.viz.resources.manager.ResourceName;
|
||||
|
@ -17,7 +11,6 @@ import gov.noaa.nws.ncep.viz.ui.display.NcEditorUtil;
|
|||
import gov.noaa.nws.ncep.viz.ui.display.NcDisplayMngr;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.eclipse.core.commands.AbstractHandler;
|
||||
|
@ -31,21 +24,17 @@ import org.eclipse.ui.commands.IElementUpdater;
|
|||
import org.eclipse.ui.menus.UIElement;
|
||||
|
||||
import com.raytheon.uf.viz.core.IDisplayPane;
|
||||
import com.raytheon.uf.viz.core.IDisplayPaneContainer;
|
||||
import com.raytheon.uf.viz.core.drawables.IDescriptor;
|
||||
import com.raytheon.uf.viz.core.drawables.ResourcePair;
|
||||
import com.raytheon.uf.viz.core.map.IMapDescriptor;
|
||||
import com.raytheon.uf.viz.core.maps.MapManager;
|
||||
import com.raytheon.uf.viz.core.maps.MapStore;
|
||||
import com.raytheon.uf.viz.core.rsc.AbstractResourceData;
|
||||
import com.raytheon.uf.viz.core.rsc.AbstractVizResource;
|
||||
import com.raytheon.uf.viz.core.rsc.ResourceList;
|
||||
import com.raytheon.uf.viz.core.rsc.ResourceProperties;
|
||||
import com.raytheon.uf.viz.core.exception.VizException;
|
||||
import com.raytheon.viz.ui.EditorUtil;
|
||||
import com.raytheon.viz.ui.UiPlugin;
|
||||
import com.raytheon.viz.ui.editor.AbstractEditor;
|
||||
import com.raytheon.viz.ui.editor.IMultiPaneEditor;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -88,17 +77,18 @@ public class MapOverlayAction extends AbstractHandler implements IElementUpdater
|
|||
if (arg0.getCommand() == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final AbstractEditor editor = NcDisplayMngr.getActiveNatlCntrsEditor();
|
||||
if( editor == null )
|
||||
return null;
|
||||
|
||||
Job j = new Job("Loading Overlay...") {
|
||||
Job j = new Job("Loading Map Overlays...") {
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
protected IStatus run(IProgressMonitor monitor) {
|
||||
long t0 = System.currentTimeMillis();
|
||||
String overlayName = arg0.getParameter("overlayName");
|
||||
//System.out.println(overlayName);
|
||||
String overlayName = arg0.getParameter("overlayName"); // LatLon
|
||||
|
||||
if (overlayName == null) {
|
||||
return new Status(IStatus.ERROR, UiPlugin.PLUGIN_ID,
|
||||
"bundleName was null");
|
||||
|
@ -117,48 +107,33 @@ public class MapOverlayAction extends AbstractHandler implements IElementUpdater
|
|||
ResourcePair rscPair = rbt.getResourcePair();
|
||||
ResourceProperties props = rscPair.getProperties();
|
||||
AbstractResourceData ovrlyRscData = rscPair.getResourceData();
|
||||
AbstractVizResource ovrlyRsc = rscPair.getResource();
|
||||
|
||||
IDisplayPane[] seldPanes = NcEditorUtil.getSelectedPanes(editor);
|
||||
|
||||
if( seldPanes.length == 0 ) {
|
||||
System.out.println("There are no Selected Panes to load to?");
|
||||
}
|
||||
|
||||
|
||||
|
||||
// this assumes a map bundle has only a single display
|
||||
for (IDisplayPane pane : seldPanes ) {
|
||||
|
||||
existingMD = pane.getRenderableDisplay().getDescriptor();
|
||||
ResourceList resourceList = existingMD.getResourceList();
|
||||
|
||||
|
||||
ResourceList resourceList = existingMD.getResourceList();
|
||||
ResourcePair rp = new ResourcePair();
|
||||
rp.setResourceData( ovrlyRscData );
|
||||
|
||||
for (ResourcePair rpe : resourceList) {
|
||||
// If resource is already loaded
|
||||
if (rpe.getResource() != null && rpe.getResource().getName() != null
|
||||
&& rpe.getResourceData().equals(ovrlyRscData)) {
|
||||
//rpe.setResourceData( rpe.getResourceData() );
|
||||
rp.setResourceData( null );
|
||||
|
||||
resourceList.remove( rpe );
|
||||
//resourceList.removeRsc(rp.getResource());
|
||||
break;
|
||||
//unload map from the current mapDescriptor
|
||||
//AbstractVizResource<?, ?> rsc = map.getResource();
|
||||
//mapDescriptor.getResourceList().removeRsc(rsc);
|
||||
} else {
|
||||
//ResourcePair rp = new ResourcePair();
|
||||
//rp.setResourceData( ovrlyRscData );
|
||||
|
||||
|
||||
resourceList.add( rp );
|
||||
}
|
||||
}
|
||||
|
||||
resourceList.instantiateResources( existingMD, true );
|
||||
|
||||
}
|
||||
|
||||
editor.refresh();
|
||||
|
@ -173,94 +148,35 @@ public class MapOverlayAction extends AbstractHandler implements IElementUpdater
|
|||
};
|
||||
|
||||
j.schedule();
|
||||
//NcEditorUtil.refreshGUIElements(NcDisplayMngr.getActiveNatlCntrsEditor());
|
||||
// this doesn't appear to change anything
|
||||
//NcEditorUtil.refreshGUIElements( (AbstractEditor)editor );
|
||||
return null;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* org.eclipse.ui.commands.IElementUpdater#updateElement(org.eclipse.ui.
|
||||
* menus.UIElement, java.util.Map)
|
||||
* @see org.eclipse.ui.commands.IElementUpdater#updateElement(org.eclipse.ui.menus.UIElement,
|
||||
* java.util.Map)
|
||||
*/
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void updateElement(UIElement element, Map parameters) {
|
||||
|
||||
// OverlayName = "LatLon"
|
||||
String OverlayName = (String) parameters.get("overlayName");
|
||||
String ResourceName = (String) parameters.get("resourceName");
|
||||
|
||||
ResourceName fullRscName = new ResourceName(
|
||||
ResourceCategory.OverlayRscCategory, OverlayName, null );
|
||||
|
||||
AbstractEditor editor = NcDisplayMngr.getActiveNatlCntrsEditor();
|
||||
|
||||
if (editor == null) {
|
||||
if (editor == null) {
|
||||
return;
|
||||
}
|
||||
//System.out.println("read overlayName as: " + OverlayName);
|
||||
//System.out.println("resourceName: " + ResourceName);
|
||||
//System.out.println("fullRscName.getRscType(): " + fullRscName.getRscType());
|
||||
//System.out.println("----MapOverlayAction-----");
|
||||
|
||||
// get the name of the default attr set and create the overlay resource
|
||||
//String qualRscName = NmapCommon.OverlaysRscDir + bundleName;
|
||||
|
||||
|
||||
|
||||
// try with ResourceDefinition
|
||||
//ResourceDefinition newRscDefn = new ResourceDefinition();
|
||||
//System.out.println("-------- newRscDefn.getResourceDefnName(): " + newRscDefn.getResourceDefnName());
|
||||
|
||||
// try with ResourceSelection
|
||||
//ResourceSelection rbt;
|
||||
|
||||
AbstractNatlCntrsResourceData ovrlyRscData = null;
|
||||
try {
|
||||
//rbt = ResourceFactory.createResource( fullRscName );
|
||||
ovrlyRscData = (AbstractNatlCntrsResourceData) ResourceFactory.createResource( fullRscName ).getResourcePair().getResourceData();
|
||||
//ResourcePair rpe = new ResourcePair();
|
||||
//rpe.setResourceData( ovrlyRscData );
|
||||
//System.out.println("rpe.getResourceData() = " + rpe.getResourceData());
|
||||
//System.out.println("ovrlyRscData = " + ovrlyRscData);
|
||||
|
||||
} catch (VizException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
|
||||
INatlCntrsDescriptor descriptor = (INatlCntrsDescriptor) editor.getActiveDisplayPane().getDescriptor();
|
||||
IDescriptor descriptor = editor.getActiveDisplayPane().getDescriptor();
|
||||
|
||||
if (descriptor instanceof INatlCntrsDescriptor) {
|
||||
//element.setChecked(MapManager.getInstance((IMapDescriptor) descriptor)
|
||||
String ResourceName = (String) parameters.get("resourceName");
|
||||
String OverlayName = (String) parameters.get("overlayName");
|
||||
System.out.println("OverlayName: " + OverlayName);
|
||||
if (descriptor instanceof IMapDescriptor) {
|
||||
for (ResourcePair rp : descriptor.getResourceList() ) {
|
||||
//INatlCntrsResource rscData = (INatlCntrsResource)rp.getResource();
|
||||
//System.out.println("rscData.getResourceData: " + rscData.getResourceData());
|
||||
//ResourceDefinition rscDef = new ResourceDefinition();
|
||||
//rscDef.getRscTypeGenerator();
|
||||
//if (OverlayName.equals("LatLon")) {
|
||||
System.out.println("==============");
|
||||
System.out.println("?__ OverlayName: " + OverlayName);
|
||||
System.out.println("?__ ResourceName: " + ResourceName);
|
||||
//System.out.println("rscName: " + descriptor.getResourceList());
|
||||
System.out.println("?__ fullRscName.getRscType() " + fullRscName.getRscType());
|
||||
System.out.println("?__ rp.getResourceData(): " + rp.getResourceData());
|
||||
System.out.println("?__ rp.getResource(): " + rp.getResource());
|
||||
System.out.println("?__ rp.getResource().getClass(): " + rp.getResource().getClass());
|
||||
if ( rp.getResourceData().equals( ovrlyRscData )) {
|
||||
element.setChecked( true );
|
||||
}
|
||||
//}
|
||||
if ( !rp.getProperties().isSystemResource()
|
||||
&& rp.getResource() != null
|
||||
&& rp.getResource().getName().equals( ResourceName )) {
|
||||
element.setChecked( true );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -98,13 +98,14 @@ public class ResourceDefinition implements ISerializableObject, IAlertObserver,
|
|||
@XmlElement
|
||||
private String resourceDefnName;
|
||||
|
||||
@XmlElement
|
||||
private String resourceMapName; // resource map name defined in each resource file
|
||||
|
||||
@XmlElement
|
||||
@XmlJavaTypeAdapter(ResourceCategory.ResourceCategoryAdapter.class)
|
||||
private ResourceCategory resourceCategory;
|
||||
|
||||
private String localizationName; // the path
|
||||
|
||||
private String mapName; // map name defined in each resource
|
||||
|
||||
private LocalizationFile localizationFile;
|
||||
|
||||
|
@ -347,6 +348,10 @@ public class ResourceDefinition implements ISerializableObject, IAlertObserver,
|
|||
public String getResourceDefnName() {
|
||||
return resourceDefnName;
|
||||
}
|
||||
|
||||
public String getMapName() {
|
||||
return resourceMapName;
|
||||
}
|
||||
|
||||
public Boolean getAddToURICatalog() {
|
||||
return addToURICatalog;
|
||||
|
|
|
@ -150,7 +150,7 @@ public class LocatorResourceData extends AbstractNatlCntrsResourceData {
|
|||
if( getPos5Enabled() ) {
|
||||
legendStr += ", "+getPos5LocatorSource();
|
||||
}
|
||||
legendStr += ")";
|
||||
legendStr += " )";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -32,6 +32,7 @@ import org.eclipse.ui.menus.CommandContributionItemParameter;
|
|||
|
||||
import com.raytheon.uf.viz.core.drawables.ResourcePair;
|
||||
import com.raytheon.uf.viz.core.exception.VizException;
|
||||
import com.raytheon.uf.viz.core.map.IMapDescriptor;
|
||||
import com.raytheon.uf.viz.core.maps.MapStore;
|
||||
import com.raytheon.uf.viz.core.maps.MapStore.MapNode;
|
||||
import com.raytheon.uf.viz.core.rsc.AbstractResourceData;
|
||||
|
@ -189,23 +190,26 @@ public class OverlayMenu extends CompoundContributionItem {
|
|||
private CommandContributionItem createOverlayMenuItem( ResourceDefinition ovrlyRsc ) {
|
||||
Map<String, String> params = new HashMap<String, String>();
|
||||
ovrlyRsc.getResourceParameters(isEnabled());
|
||||
params.put("overlayName", ovrlyRsc.getResourceDefnName() );
|
||||
params.put("resourceName", ovrlyRsc.getLocalizationFile().toString() );
|
||||
|
||||
params.put("overlayName", ovrlyRsc.getResourceDefnName() ); // "LatLon"
|
||||
params.put("resourceName", ovrlyRsc.getMapName() );
|
||||
//System.out.println("ovrlyRsc.getMapName(): " + ovrlyRsc.getMapName());
|
||||
|
||||
//params.put("resourceName", fullRscName.toString());
|
||||
if (ovrlyRsc.getResourceDefnName().equals("LatLon")) {
|
||||
if (ovrlyRsc.getResourceDefnName().equals("LaxtLon")) {
|
||||
System.out.println("\n------begin---------");
|
||||
System.out.println("ovrlyRsc: " + ovrlyRsc);
|
||||
System.out.println("ovrlyRsc.getResourceParameters: " + ovrlyRsc.getResourceParameters(true));
|
||||
System.out.println("ovrlyRsc.getPluginName: " + ovrlyRsc.getPluginName());
|
||||
System.out.println("ovrlyRsc.getResourceCategory: " + ovrlyRsc.getResourceCategory());
|
||||
System.out.println("ovrlyRsc.getSubTypeGenerator: " + ovrlyRsc.getSubTypeGenerator());
|
||||
System.out.println("ovrlyRsc.getRscTypeGenerator: " + ovrlyRsc.getRscTypeGenerator());
|
||||
//System.out.println("ovrlyRsc.getResourceCategory: " + ovrlyRsc.getResourceCategory());
|
||||
//System.out.println("ovrlyRsc.getSubTypeGenerator: " + ovrlyRsc.getSubTypeGenerator());
|
||||
//System.out.println("ovrlyRsc.getRscTypeGenerator: " + ovrlyRsc.getRscTypeGenerator());
|
||||
System.out.println("ovrlyRsc.getLocalizationFile: " + ovrlyRsc.getLocalizationFile());
|
||||
System.out.println("ovrlyRsc.getLocalizationName: " + ovrlyRsc.getLocalizationName() );
|
||||
System.out.println("ovrlyRsc.getLocalizationName: " + ovrlyRsc.getLocalizationName());
|
||||
System.out.println("ovrlyRsc.getRscImplementation: " + ovrlyRsc.getRscImplementation() );
|
||||
System.out.println("---------");
|
||||
|
||||
System.out.println("setting overlayName as: " + ovrlyRsc.getResourceDefnName());
|
||||
System.out.println("setting resourceName as: " + ovrlyRsc.getRscImplementation());
|
||||
System.out.println("--------------------");
|
||||
//System.out.println("ovrlyRsc: " + ovrlyRsc);
|
||||
}
|
||||
//System.out.println("ovrlyRsc.getLocalizationName() is: " + ovrlyRsc.getLocalizationName());
|
||||
|
|
Loading…
Add table
Reference in a new issue