• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AVListImpl类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中gov.nasa.worldwind.avlist.AVListImpl的典型用法代码示例。如果您正苦于以下问题:Java AVListImpl类的具体用法?Java AVListImpl怎么用?Java AVListImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AVListImpl类属于gov.nasa.worldwind.avlist包,在下文中一共展示了AVListImpl类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels(int numLevels) {
	AVList params = new AVListImpl();
	
	params.setValue(AVKey.TILE_WIDTH, TILE_SIZE);
	params.setValue(AVKey.TILE_HEIGHT, TILE_SIZE);
	params.setValue(AVKey.DATA_CACHE_NAME, "scs_tracks");
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "scs_tracks");
	params.setValue(AVKey.FORMAT_SUFFIX, "null");
	params.setValue(AVKey.NUM_LEVELS, numLevels);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36), Angle.fromDegrees(36)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:17,代码来源:SCSTileLayer.java


示例2: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels(int numLevels, String name) {
	AVList params = new AVListImpl();
	
	params.setValue(AVKey.TILE_WIDTH, TILE_SIZE);
	params.setValue(AVKey.TILE_HEIGHT, TILE_SIZE);
	params.setValue(AVKey.DATA_CACHE_NAME, "mgg_" + name);
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "mgg_" + name);
	params.setValue(AVKey.FORMAT_SUFFIX, "null");
	params.setValue(AVKey.NUM_LEVELS, numLevels);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36), Angle.fromDegrees(36)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:17,代码来源:MGGTileLayer.java


示例3: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels(int numLevels) {
	AVList params = new AVListImpl();
	
	params.setValue(AVKey.TILE_WIDTH, TILE_SIZE);
	params.setValue(AVKey.TILE_HEIGHT, TILE_SIZE);
	params.setValue(AVKey.DATA_CACHE_NAME, "mb_tracks");
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "mb_tracks");
	params.setValue(AVKey.FORMAT_SUFFIX, "null");
	params.setValue(AVKey.NUM_LEVELS, numLevels);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36), Angle.fromDegrees(36)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:17,代码来源:MBTileLayer.java


示例4: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels(int numLevels) {
	AVList params = new AVListImpl();
	
	params.setValue(AVKey.TILE_WIDTH, TILE_SIZE);
	params.setValue(AVKey.TILE_HEIGHT, TILE_SIZE);
	params.setValue(AVKey.DATA_CACHE_NAME, "null");
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "grid");
	params.setValue(AVKey.FORMAT_SUFFIX, "null");
	params.setValue(AVKey.NUM_LEVELS, numLevels);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36), Angle.fromDegrees(36)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	   return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:17,代码来源:GridTileLayer.java


示例5: retrieveLocalImage

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
protected void retrieveLocalImage(TextureTile tile, String mimeType, int timeout) throws Exception
{
    if (!WorldWind.getLocalRetrievalService().isAvailable())
        return;

    RetrieverFactory retrieverFactory = (RetrieverFactory) this.getValue(AVKey.RETRIEVER_FACTORY_LOCAL);
    if (retrieverFactory == null)
        return;

    AVListImpl avList = new AVListImpl();
    avList.setValue(AVKey.SECTOR, tile.getSector());
    avList.setValue(AVKey.WIDTH, tile.getWidth());
    avList.setValue(AVKey.HEIGHT, tile.getHeight());
    avList.setValue(AVKey.FILE_NAME, tile.getPath());
    avList.setValue(AVKey.IMAGE_FORMAT, mimeType);

    Retriever retriever = retrieverFactory.createRetriever(avList, new CompositionRetrievalPostProcessor(tile));

    Logging.logger().log(java.util.logging.Level.FINE, "Locally retrieving " + tile.getPath());
    retriever.setReadTimeout(timeout);
    retriever.call();
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:23,代码来源:ScalingTiledImageLayer.java


示例6: createLayerInfo

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
protected LayerInfo createLayerInfo(WMSCapabilities caps, WMSLayerCapabilities layerCaps, WMSLayerStyle style)
{
    // Create the layer info specified by the layer's capabilities entry and the selected style.

    LayerInfo linfo = new LayerInfo();
    linfo.caps = caps;
    linfo.params = new AVListImpl();
    linfo.params.setValue(AVKey.LAYER_NAMES, layerCaps.getName());
    if (style != null)
        linfo.params.setValue(AVKey.STYLE_NAMES, style.getName());
    String abs = layerCaps.getLayerAbstract();
    if (!WWUtil.isEmpty(abs))
        linfo.params.setValue(AVKey.LAYER_ABSTRACT, abs);

    linfo.params.setValue(AVKey.DISPLAY_NAME, makeTitle(caps, linfo));

    return linfo;
}
 
开发者ID:ltrr-arizona-edu,项目名称:tellervo,代码行数:19,代码来源:WMSLayersPanel.java


示例7: getElevationModel

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
public static ElevationModel getElevationModel(File xml) {
	try {
		if(xml.exists()){
			Document doc=null;
			
			// Get standard document
			doc = WWXML.openDocument(xml);
			doc = DataConfigurationUtils.convertToStandardDataConfigDocument(doc);
			
			AVList params = new AVListImpl();
			WorldWindUtils.setFallbackParams(doc, Constants.ELEVATION_NAME, params);
			
			// Return elevation model in xml file
			BasicElevationModelFactory b = new BasicElevationModelFactory();
			return (ElevationModel) b.createFromConfigSource(xml, params);
		}
	
	} catch (Exception e) {
		e.printStackTrace();
	}
	return null;
}
 
开发者ID:TrilogisIT,项目名称:FAO_Application,代码行数:23,代码来源:WorldWindUtils.java


示例8: createLayerInfo

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private LayerInfo createLayerInfo(WMSCapabilities caps, WMSLayerCapabilities layerCaps, WMSLayerStyle style) {
    // Create the layer info specified by the layer's capabilities entry and the selected style.

    LayerInfo linfo = new LayerInfo();
    linfo.caps = caps;
    linfo.params = new AVListImpl();
    linfo.params.setValue(AVKey.LAYER_NAMES, layerCaps.getName());
    if (style != null)
        linfo.params.setValue(AVKey.STYLE_NAMES, style.getName());
    String abs = layerCaps.getLayerAbstract();
    if (!WWUtil.isEmpty(abs))
        linfo.params.setValue(AVKey.LAYER_ABSTRACT, abs);

    linfo.params.setValue(AVKey.DISPLAY_NAME, makeTitle(caps, linfo));

    return linfo;
}
 
开发者ID:TheHortonMachine,项目名称:hortonmachine,代码行数:18,代码来源:WmsHandler.java


示例9: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels() {
    AVList params = new AVListImpl();

    params.setValue(AVKey.TILE_WIDTH, 256);
    params.setValue(AVKey.TILE_HEIGHT, 256);
    params.setValue(AVKey.DATA_CACHE_NAME, "Earth/OSM-Mercator/OpenStreetMap Mapnik");
    params.setValue(AVKey.SERVICE, "http://a.tile.openstreetmap.org/");
    params.setValue(AVKey.DATASET_NAME, "h");
    params.setValue(AVKey.FORMAT_SUFFIX, ".png");
    params.setValue(AVKey.NUM_LEVELS, 22);
    params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
    params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(22.5d), Angle.fromDegrees(45d)));
    params.setValue(AVKey.SECTOR, new MercatorSector(-1.0, 1.0, Angle.NEG180, Angle.POS180));
    params.setValue(AVKey.TILE_URL_BUILDER, new URLBuilder());

    return new LevelSet(params);
}
 
开发者ID:TheHortonMachine,项目名称:hortonmachine,代码行数:18,代码来源:OSMMapnikLayer.java


示例10: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels() {
	AVList params = new AVListImpl();

	params.setValue(AVKey.TILE_WIDTH, 512);
	params.setValue(AVKey.TILE_HEIGHT, 512);
	params.setValue(AVKey.DATA_CACHE_NAME, CACHE_NAME);
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "geomapapp.mask");
	params.setValue(AVKey.FORMAT_SUFFIX, ".png");
	params.setValue(AVKey.NUM_LEVELS, 7);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle
			.fromDegrees(36d), Angle.fromDegrees(36d)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);

	params.setValue(AVKey.TILE_URL_BUILDER, new TileUrlBuilder() {
		public URL getURL(Tile tile, String imageFormat)
				throws MalformedURLException {
			StringBuffer sb = new StringBuffer(BASE_URL);
			sb.append(tile.getLevelNumber());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("_");
			sb.append(tile.getColumn());
			sb.append(".png");
			URL url = URLFactory.url(sb.toString());
			return url;
		}
	});

	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:35,代码来源:GeoMapAppMaskLayer.java


示例11: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels() 
{
	AVList params = new AVListImpl();

	params.setValue(AVKey.TILE_WIDTH, 512);
	params.setValue(AVKey.TILE_HEIGHT, 512);
	params.setValue(AVKey.DATA_CACHE_NAME, CACHE_NAME);
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "geomapapp.wdmam");
	params.setValue(AVKey.FORMAT_SUFFIX, ".jpg");
	params.setValue(AVKey.NUM_LEVELS, 3);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36d), Angle.fromDegrees(36d)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	params.setValue(AVKey.TILE_URL_BUILDER, new TileUrlBuilder() {
		public URL getURL(Tile tile, String imageFormat) throws MalformedURLException {
			StringBuffer sb = new StringBuffer(BASE_URL);
			sb.append(tile.getLevelNumber());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("_");
			sb.append(tile.getColumn());
			sb.append(".jpg");
			URL url = URLFactory.url(sb.toString());
			return url;
		}
	});

	return new LevelSet(params);
   }
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:34,代码来源:MagneticAnomaliesLayer.java


示例12: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels() 
{
	AVList params = new AVListImpl();

	params.setValue(AVKey.TILE_WIDTH, 512);
	params.setValue(AVKey.TILE_HEIGHT, 512);
	params.setValue(AVKey.DATA_CACHE_NAME, CACHE_NAME);
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "geomapapp.base");
	params.setValue(AVKey.FORMAT_SUFFIX, ".jpg");
	params.setValue(AVKey.NUM_LEVELS, 7);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36d), Angle.fromDegrees(36d)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	params.setValue(AVKey.TILE_URL_BUILDER, new TileUrlBuilder() {
		public URL getURL(Tile tile, String imageFormat) throws MalformedURLException {
			StringBuffer sb = new StringBuffer(BASE_URL);
			sb.append(tile.getLevelNumber());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("_");
			sb.append(tile.getColumn());
			sb.append(".jpg");
			URL url = URLFactory.url(sb.toString());
			return url;
		}
	});

	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:34,代码来源:GeoMapAppSurfaceLayer.java


示例13: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels() 
{
	AVList params = new AVListImpl();

	params.setValue(AVKey.TILE_WIDTH, 512);
	params.setValue(AVKey.TILE_HEIGHT, 512);
	params.setValue(AVKey.DATA_CACHE_NAME, "GeoMapApp/Ocean_Ages/");
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "geomapapp.ages");
	params.setValue(AVKey.FORMAT_SUFFIX, ".png");
	params.setValue(AVKey.NUM_LEVELS, 3);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36d), Angle.fromDegrees(36d)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	params.setValue(AVKey.TILE_URL_BUILDER, new TileUrlBuilder() {
		public URL getURL(Tile tile, String imageFormat) throws MalformedURLException {
			StringBuffer sb = new StringBuffer(BASE_URL);
			sb.append(tile.getLevelNumber());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("_");
			sb.append(tile.getColumn());
			sb.append(".png");
			URL url = URLFactory.url(sb.toString());
			return url;
		}
	});

	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:34,代码来源:OceanAgesSurfaceLayer.java


示例14: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels() 
{
	AVList params = new AVListImpl();

	params.setValue(AVKey.TILE_WIDTH, 512);
	params.setValue(AVKey.TILE_HEIGHT, 512);
	params.setValue(AVKey.DATA_CACHE_NAME, "GeoMapApp/Sediment_Thickness/");
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "geomapapp.Sediment_Thickness");
	params.setValue(AVKey.FORMAT_SUFFIX, ".png");
	params.setValue(AVKey.NUM_LEVELS, 2);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36d), Angle.fromDegrees(36d)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	params.setValue(AVKey.TILE_URL_BUILDER, new TileUrlBuilder() {
		public URL getURL(Tile tile, String imageFormat) throws MalformedURLException {
			StringBuffer sb = new StringBuffer(BASE_URL);
			sb.append(tile.getLevelNumber());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("_");
			sb.append(tile.getColumn());
			sb.append(".png");
			URL url = URLFactory.url(sb.toString());
			return url;
		}
	});

	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:34,代码来源:SedimentThicknessSurfaceLayer.java


示例15: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels() 
{
	AVList params = new AVListImpl();

	params.setValue(AVKey.TILE_WIDTH, 512);
	params.setValue(AVKey.TILE_HEIGHT, 512);
	params.setValue(AVKey.DATA_CACHE_NAME, "GeoMapApp/Spreading_Asymmetry/");
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "geomapapp.spreading_asymmetry");
	params.setValue(AVKey.FORMAT_SUFFIX, ".png");
	params.setValue(AVKey.NUM_LEVELS, 3);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36d), Angle.fromDegrees(36d)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	params.setValue(AVKey.TILE_URL_BUILDER, new TileUrlBuilder() {
		public URL getURL(Tile tile, String imageFormat) throws MalformedURLException {
			StringBuffer sb = new StringBuffer(BASE_URL);
			sb.append(tile.getLevelNumber());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("_");
			sb.append(tile.getColumn());
			sb.append(".png");
			URL url = URLFactory.url(sb.toString());
			return url;
		}
	});

	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:34,代码来源:SpreadingAsymmetrySurfaceLayer.java


示例16: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
private static LevelSet makeLevels() 
{
	AVList params = new AVListImpl();

	params.setValue(AVKey.TILE_WIDTH, 512);
	params.setValue(AVKey.TILE_HEIGHT, 512);
	params.setValue(AVKey.DATA_CACHE_NAME, "GeoMapApp/Spreading_Rate/");
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, "geomapapp.spreading_rate");
	params.setValue(AVKey.FORMAT_SUFFIX, ".png");
	params.setValue(AVKey.NUM_LEVELS, 3);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36d), Angle.fromDegrees(36d)));
	params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
	
	params.setValue(AVKey.TILE_URL_BUILDER, new TileUrlBuilder() {
		public URL getURL(Tile tile, String imageFormat) throws MalformedURLException {
			StringBuffer sb = new StringBuffer(BASE_URL);
			sb.append(tile.getLevelNumber());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("_");
			sb.append(tile.getColumn());
			sb.append(".png");
			URL url = URLFactory.url(sb.toString());
			return url;
		}
	});

	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:34,代码来源:SpreadingRateSurfaceLayer.java


示例17: makeLevels

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
public static LevelSet makeLevels(final LayerSetDetails lsd) {
	AVList params = new AVListImpl();

	params.setValue(AVKey.TILE_WIDTH, lsd.tileSize);
	params.setValue(AVKey.TILE_HEIGHT, lsd.tileSize);
	params.setValue(AVKey.DATA_CACHE_NAME, "GeoMapApp/" + lsd.name);
	params.setValue(AVKey.SERVICE, "null");
	params.setValue(AVKey.DATASET_NAME, lsd.name);
	params.setValue(AVKey.FORMAT_SUFFIX, "." + lsd.imageExtension);
	params.setValue(AVKey.NUM_LEVELS, lsd.numLevels);
	params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
	params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, 
			new LatLon(Angle.fromDegrees(lsd.levelZeroTileDelta),
						Angle.fromDegrees(lsd.levelZeroTileDelta)));
	params.setValue(AVKey.SECTOR, Sector.fromDegrees(
			lsd.wesn[2], lsd.wesn[3], lsd.wesn[0], lsd.wesn[1]));
	
	params.setValue(AVKey.TILE_URL_BUILDER, new TileUrlBuilder() {
		public URL getURL(Tile tile, String imageFormat) throws MalformedURLException {
			StringBuffer sb = new StringBuffer(lsd.imagePath);
			sb.append(tile.getLevelNumber());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("/");
			sb.append(tile.getRow());
			sb.append("_");
			sb.append(tile.getColumn());
			sb.append(".");
			sb.append(lsd.imageExtension);
			URL url = URLFactory.url(sb.toString());
			return url;
		}
	});

	return new LevelSet(params);
}
 
开发者ID:iedadata,项目名称:geomapapp,代码行数:37,代码来源:Tile512Layer.java


示例18: doWrite

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
protected void doWrite(DataRaster raster, String formatSuffix, java.io.File file) throws java.io.IOException {
    this.writeImage(raster, formatSuffix, file);

    if (this.isWriteGeoreferenceFiles()) {
        AVList worldFileParams = new AVListImpl();
        this.initWorldFileParams(raster, worldFileParams);

        java.io.File dir = file.getParentFile();
        String base = WWIO.replaceSuffix(file.getName(), "");
        String suffix = WWIO.getSuffix(file.getName());
        String worldFileSuffix = this.suffixForWorldFile(suffix);

        this.writeImageMetadata(new java.io.File(dir, base + "." + worldFileSuffix), worldFileParams);
    }
}
 
开发者ID:TrilogisIT,项目名称:FAO_Application,代码行数:16,代码来源:ImageIORasterWriter.java


示例19: createDataStore

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
public static Document createDataStore(File[] files, File directory, DataStoreProducer producer,String datasetName ) throws Exception {
	//File installLocation = DataInstallUtil.getDefaultInstallLocation(fileStore);
	if (directory == null) {
		String message = Logging.getMessage("generic.NoDefaultImportLocation");
		Logging.logger().severe(message);
		return null;
	}

	// Create the production parameters. These parameters instruct the DataStoreProducer where to install the cached
	// data, and what name to put in the data configuration document.
	AVList params = new AVListImpl();

	params.setValue(AVKey.DATASET_NAME, datasetName);
	params.setValue(AVKey.DATA_CACHE_NAME, datasetName);
	params.setValue(AVKey.FILE_STORE_LOCATION, directory.getAbsolutePath());

	// These parameters define producer's behavior:
	// create a full tile cache OR generate only first two low resolution levels
	boolean enableFullPyramid = Configuration.getBooleanValue(AVKey.PRODUCER_ENABLE_FULL_PYRAMID, true);
	if (!enableFullPyramid) {
		params.setValue(AVKey.SERVICE_NAME, AVKey.SERVICE_NAME_LOCAL_RASTER_SERVER);
		// retrieve the value of the AVKey.TILED_RASTER_PRODUCER_LIMIT_MAX_LEVEL, default to "Auto" if missing
		String maxLevel = Configuration.getStringValue(AVKey.TILED_RASTER_PRODUCER_LIMIT_MAX_LEVEL, "Auto");
		params.setValue(AVKey.TILED_RASTER_PRODUCER_LIMIT_MAX_LEVEL, maxLevel);
	} else {
		params.setValue(AVKey.PRODUCER_ENABLE_FULL_PYRAMID, true);
	}

	producer.setStoreParameters(params);

	try {
		for (File file : files) {
			producer.offerDataSource(file, null);
			Thread.yield();
		}

		// Convert the file to a form usable by World Wind components, according to the specified DataStoreProducer.
		// This throws an exception if production fails for any reason.
		producer.startProduction();
	} catch (InterruptedException ie) {
		producer.removeProductionState();
		Thread.interrupted();
		throw ie;
	} catch (Exception e) {
		// Exception attempting to convert the file. Revert any change made during production.
		producer.removeProductionState();
		throw e;
	}

	// Return the DataConfiguration from the production results. Since production successfully completed, the
	// DataStoreProducer should contain a DataConfiguration in the production results. We test the production
	// results anyway.
	Iterable results = producer.getProductionResults();
	if (results != null && results.iterator() != null && results.iterator().hasNext()) {
		Object o = results.iterator().next();
		if (o != null && o instanceof Document) {
			return (Document) o;
		}
	}

	return null;
}
 
开发者ID:TrilogisIT,项目名称:FAO_Application,代码行数:63,代码来源:ImportUtils.java


示例20: validateDataSource

import gov.nasa.worldwind.avlist.AVListImpl; //导入依赖的package包/类
protected String validateDataSource(Object source, AVList params) {
	// TiledImageProducer does not accept null data sources.
	if (source == null) return Logging.getMessage("nullValue.SourceIsNull");

	// TiledRasterProducer accepts BufferedImageRaster as a data source. If the data source is a DataRaster, then
	// check that it's a BufferedImageRaster.
	// TODO garakl DataSource as a source? What about GDALDataRaster
	if (source instanceof DataRaster) {
		DataRaster raster = (DataRaster) source;

		if (!(raster instanceof BufferedImageRaster)) return Logging.getMessage("TiledRasterProducer.UnrecognizedDataSource", raster);

		String s = this.validateDataSourceParams(raster, String.valueOf(raster));
		if (s != null) return s;
	}
	// For any other data source, attempt to find a reader for the data source. If the reader knows the data
	// source's raster type, then check that it's a color image or a monochromatic image.
	else {
		params = (params == null) ? new AVListImpl() : params;

		DataRasterReader reader = this.getReaderFactory().findReaderFor(source, params, this.getDataRasterReaders());

		if (reader == null) {
			return Logging.getMessage("TiledRasterProducer.UnrecognizedDataSource", source);
		} else if (reader instanceof RPFRasterReader) {
			// RPF rasters are geo-referenced, so we may skip the validation
			return null;
		}

		String errMsg = this.validateDataSourceParams(params, String.valueOf(source));
		if (!WWUtil.isEmpty(errMsg)) {
			try {
				reader.readMetadata(source, params);
				errMsg = this.validateDataSourceParams(params, String.valueOf(source));
			} catch (IOException e) {
				return Logging.getMessage("TiledRasterProducer.ExceptionWhileReading", source, e.getMessage());
			}
		}

		if (!WWUtil.isEmpty(errMsg)) return errMsg;
	}

	return null;
}
 
开发者ID:TrilogisIT,项目名称:FAO_Application,代码行数:45,代码来源:TransparentTiledImageProducer.java



注:本文中的gov.nasa.worldwind.avlist.AVListImpl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MAVLinkPayload类代码示例发布时间:2022-05-23
下一篇:
Java PluginService类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap