Revision 16281

View differences:

branches/v10/extensions/extPublishMapserver/src/org/gvsig/publish/mapserver/model/wcs/MapserverWCSLayer.java
87 87

  
88 88
			return;
89 89
		}
90
		if (dataSource.getType() == IDataSourceInfo.RASTER_DATA){
90
		if (dataSource.getDataType() == IDataSourceInfo.RASTER_DATA){
91 91
			generateRasterLayer(dataSource);
92 92
		}
93 93
		
......
109 109
		lyr.name = getOgcMetadata().getName();
110 110
		lyr.data = ifile.getAbsolutePath(); 
111 111
		lyr.type = "RASTER";
112
		lyr.dump = true;
112 113
		lyr.transparency = getLayerInfo().getOpacityPercent();
113 114

  
114 115
		//PROJECTION
......
128 129
	private void generateMetadata(MapLayer mapLayer){
129 130
		//add metadata
130 131
		mapLayer.metadata.wcs_name = getOgcMetadata().getName();
131
		mapLayer.metadata.wcs_title = getOgcMetadata().getTitle();
132
		mapLayer.metadata.wcs_abstract = getOgcMetadata().getAbstract();
132
		mapLayer.metadata.wcs_label = getOgcMetadata().getTitle();
133
		mapLayer.metadata.wcs_description = getOgcMetadata().getAbstract();
133 134
		Rectangle2D aux = getLayerInfo().getBBox();
134 135
		String bbox = aux.getMinX() + " " + aux.getMinY() + " " + aux.getMaxX() + " " + aux.getMaxY();
135
		mapLayer.metadata.wcs_extent = bbox;				
136
		//mapLayer.metadata.wcs_extent = bbox;	
137
		mapLayer.metadata.wcs_srs= getLayerInfo().getDataSource().getCRS();
138
		mapLayer.metadata.wcs_rangeset_axes = "bands";
136 139
	}
137 140

  
138 141
}
branches/v10/extensions/extPublishMapserver/src/org/gvsig/publish/mapserver/model/wcs/MapserverWCS.java
51 51
		ConfigFile mapfile = getMapServer().getConfigFile();
52 52

  
53 53
		//generates the code into the MAP->WEB->METADATA
54
		mapfile.web.metadata.wcs_title = getOgcMetadata().getTitle();
55
		mapfile.web.metadata.wcs_abstract = getOgcMetadata().getAbstract();
54
		mapfile.web.metadata.wcs_label = getOgcMetadata().getTitle();
55
		mapfile.web.metadata.wcs_description = getOgcMetadata().getAbstract();
56 56
		//mapfile.web.metadata.wms_onlineresource
57
		mapfile.web.metadata.wcs_encoding ="utf8";
57
		mapfile.web.metadata.wcs_encoding ="utf8";		
58
		//TODO: Quit this!! only for jornadas
59
		mapfile.web.imagepath = "/var/tmp";
58 60
	}
59 61

  
60 62
	
branches/v10/extensions/extPublishMapserver/src/org/gvsig/publish/mapserver/conf/MapFile.java
375 375
		public String wms_onlineresource = null;
376 376
		public String wms_extent = null;		
377 377
		public String wms_encoding=null;
378
		public String wms_srs=null;
378 379
		//GML
379 380
		public String gml_include_items =null;
380 381
		//WFS
......
385 386
		public String wfs_extent = null;		
386 387
		public String wfs_encoding=null;
387 388
		public String wfs_featureid = null;
389
		public String wfs_srs=null;
388 390
		//WCS
389
		public String wcs_title = null;
391
		public String wcs_label = null;
390 392
		public String wcs_name = null;
391
		public String wcs_abstract = null;
393
		public String wcs_description = null;
392 394
		public String wcs_onlineresource = null;
393 395
		public String wcs_extent = null;		
394 396
		public String wcs_encoding=null;
397
		public String wcs_srs=null;
398
		public String wcs_rangeset_axes=null;
395 399
		
396 400
		void startMetadataToMap(){
397 401
			toMapln("METADATA");
......
413 417
				toMapln("\"wms_abstract\"" + " \"" + wms_abstract + "\"");
414 418
			if (wms_extent != null)
415 419
				toMapln("\"wms_extent\"" + " \"" + wms_extent + "\"");
420
			if (wms_srs != null)
421
				toMapln("\"wms_srs\"" + " \"" + wms_srs + "\"");
416 422
			//GML
417 423
			if (gml_include_items != null)
418 424
				toMapln("\"gml_include_items\"" + " \"" + gml_include_items + "\"");
......
427 433
				toMapln("\"wfs_extent\"" + " \"" + wfs_extent + "\"");
428 434
			if (wfs_featureid != null)
429 435
				toMapln("\"wfs_featureid\"" + " \"" + wfs_featureid + "\"");
436
			if (wfs_srs != null)
437
				toMapln("\"wfs_srs\"" + " \"" + wfs_srs + "\"");
438

  
430 439
			//WCS
431 440
			if (wcs_encoding != null)
432 441
				toMapln("\"wcs_encoding\"" + " \"" + wcs_encoding + "\"");
433
			if (wcs_title != null)
434
				toMapln("\"wcs_title\"" + " \"" + wcs_title + "\"");
435
			if (wcs_abstract != null)
436
				toMapln("\"wcs_abstract\"" + " \"" + wcs_abstract + "\"");
442
			if (wcs_label != null)
443
				toMapln("\"wcs_label\"" + " \"" + wcs_label + "\"");
444
			if (wcs_description != null)
445
				toMapln("\"wcs_description\"" + " \"" + wcs_description + "\"");
437 446
			if (wcs_extent != null)
438 447
				toMapln("\"wcs_extent\"" + " \"" + wcs_extent + "\"");
448
			if (wcs_srs != null)
449
				toMapln("\"wcs_srs\"" + " \"" + wcs_srs + "\"");
450
			if (wcs_rangeset_axes != null)
451
				toMapln("\"wcs_rangeset_axes\"" + " \"" + wcs_rangeset_axes + "\"");
452

  
439 453
	
440 454
			endMetadataToMap();
441 455
		}

Also available in: Unified diff