WMS server Loading Sequence

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 ));}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.