WMS server Loading Sequence
Last Update:2018-12-05
Source: Internet
Author: User
Cache path of the World Wind WMS server: C: \ programdata \ Application Data \ worldwinddataread avlist: {gov. NASA. worldWind. avkey. filestorelocation = c: \ Users \ cjl \ Application Data \ worldwinddata, gov. NASA. worldWind. avkey. installed = false} write avlist: Gov. NASA. worldWind. avkey. filestorelocation = c: \ programdata \ Application Data \ worldwinddata (1) WMS Data Query thread: Gov. NASA. worldWind. servers. WMS. Wmsdatadiscoverythread (2) tile layer Data Source: Public class worldwindtiledlayermapsource extends dataconfigurationmapsourcedataconfigurationmapsource: This. name = This. params. getstringvalue (avkey. dataset_name); this. title = This. params. getstringvalue (avkey. display_name); this. KEYWORDS = This. params. getstringvalue (avkey. layer_names); string storepath = This. params. getstringvalue (avkey. data_cache_name); this. lastupdate = This. parselastupdate (this. params. getstringvalue (avkey. last_update); this. lastupdate = This. params. getvalue (avkey. expiry_time ). tostring (); (3) Get Data source: basicmapsourcefactory mapsource MS; If (avkey. service_name_local_raster_server.equals (servicename) {MS = new worldwindtiledlayermapsource (this. app. getdatafilestore (), domelement, Params, rasterserverbackedtiledlayer. class);} else {MS = new worldwindtiledlayermapsource (this. app. getdatafilestore (), domelement, Params, worldwindtiledlayer. class);} (4) Data Source registration: basicmapregistry: protected void dolayeradded (wmslayerevent e) {object source = E. getconfigurationsource (); If (wwutil. isempty (source) {string message = logging. getmessage ("nullvalue. sourceisnull "); logging. logger (). severe (Message); throw new wwruntimeexception (Message);} If (this. dataconfigmapsources. containskey (source) {string message = logging. getmessage ("generic. duplicatelayerfound ", source); logging. logger (). severe (Message); throw new wwruntimeexception (Message);} mapsource = This. createdataconfigurationmapsource (E); If (null = mapsource) {string message = logging. getmessage ("generic. unrecognizedsourcetype ", source); logging. logger (). severe (Message); throw new wwruntimeexception (Message);} This. add (mapsource); this. dataconfigmapsources. put (E. getconfigurationsource (), mapsource); logging. logger (). info (logging. getmessage ("generic. layeradded ", source ));}