MeteoInfo 生成等值面

本文介绍如何利用MeteoInfo软件生成等值线和等值面,展示了最终的可视化效果,并提供了相应的测试代码。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


以上是效果图,下面是测试代码:



/**
 * 站点Bean
 * @author Administrator
 *
 */
public class StationBean {
	private String id ; //ID
	private double x; //X坐标
	private double y; //y坐标
	private double v; //值
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
	}
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
	}
	public double getV() {
		return v;
	}
	public void setV(double v) {
		this.v = v;
	}
	
}
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.print.PrintException;

import org.meteoinfo.data.GridData;
import org.meteoinfo.data.StationData;
import org.meteoinfo.data.mapdata.MapDataManage;
import org.meteoinfo.data.meteodata.DrawMeteoData;
import org.meteoinfo.data.meteodata.GridDataSetting;
import org.meteoinfo.geoprocess.analysis.InterpolationMethods;
import org.meteoinfo.geoprocess.analysis.InterpolationSetting;
import org.meteoinfo.layer.LabelSet;
import org.meteoinfo.layer.MapLayer;
import org.meteoinfo.layer.VectorLayer;
import org.meteoinfo.layout.LayoutGraphic;
import org.meteoinfo.layout.LayoutLegend;
import org.meteoinfo.layout.LayoutMap;
import org.meteoinfo.layout.LegendStyles;
import org.meteoinfo.layout.MapLayout;
import org.meteoinfo.legend.AlignType;
import org.meteoinfo.legend.ColorBreak;
import org.meteoinfo.legend.LayersLegend;
import org.meteoinfo.legend.LegendScheme;
import org.meteoinfo.legend.LegendType;
import org.meteoinfo.legend.PolygonBreak;
import org.meteoinfo.map.MapView;
import org.meteoinfo.shape.ShapeTypes;

import dods.dap.functions.Length;

/**
 * 等值面生成
 * @author Usrnck
 *
 */
public class ContourSurface  {
	
	private LayersLegend layersLegend;
	private MapLayout mapLayout;
	private MapView mapView;
	private String dataDIr = null; //工程目录

	/**
	 * 构造方法
	 */
	public ContourSurface(){
		mapLayout = new MapLayout();
		mapView = new MapView();
		layersLegend = new org.meteoinfo.legend.LayersLegend();
		layersLegend.setMapLayout(mapLayout);
		layersLegend.getActiveMapFrame().setMapView(mapView);
		layersLegend.getActiveMapFrame().getMapView().setIsLayoutMap(true);
		layersLegend.getMapLayout().setPaperSize(830, 950);
		//布局大小
		LayoutMap layoutMap = this.mapLayout.getActiveLayoutMap();
        layoutMap.setLeft(10);
        layoutMap.setTop(80);
        layoutMap.setWidth(900);
        layoutMap.setHeight(700);
        layoutMap.setDrawBackColor(false);
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值