c#AE求助,怎么实现读取某个路径下的DEM数据,并提取其坡度坡长(菜鸟日常,求助大神) 40C

问题是这样的,我把一个DEM数据放在了一个文件夹里面,然后读取他,对他进行坡度提取和坡长提取,自己从网上找了方法,行不通,有没有大神可以帮帮我。
private object missing = Type.Missing;
private IDataset pGeoDataset;
private ISurfaceOp surfaceOp;
private IGeoDataset OutDS;

                                esriGeoAnalysisSlopeEnum slopeEnum;
                slopeEnum = esriGeoAnalysisSlopeEnum.esriGeoAnalysisSlopeDegrees;


                IImageServerLayer imageserverlayer = new ImageServerLayerClass();
                string URL = @"..\..\SampleData\dem";
                imageserverlayer.Initialize(URL);
                IRaster raster = imageserverlayer.Raster;
                IGeoDataset pInDs = raster as IGeoDataset;

                 surfaceOp = new RasterSurfaceOpClass();
                 OutDS = surfaceOp.Slope(pInDs, slopeEnum, ref missing);

1个回答

真心求助了,大神们能帮帮忙吗

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
C# + ArcEngine初学者,小白一枚
在VS2010 C# + 10.1ArcEngine怎么读取DEM格式地图的各个像素点的高程、经纬度?求解答
AE+C#开发,如何用加载到mapcontrol中的.shp文件中的高程点生成DEM ,
急求各位大神,网上代码都有问题,题主刚学开发,谢谢了,希望各位不吝赐教
asp.net对接签名算法与支付宝签名算法相同的支付接口
本菜鸡找半天,翻到支付宝那个源码先执行这个方法,再MD5加密发现还是不行,有没有做过的大佬知道一下呀 ``` public static string GetSignContent(IDictionary<string, string> parameters) { // 第一步:把字典按Key的字母顺序排序 IDictionary<string, string> sortedParams = new SortedDictionary<string, string>(parameters, StringComparer.Ordinal); IEnumerator<KeyValuePair<string, string>> dem = sortedParams.GetEnumerator(); // 第二步:把所有参数名和参数值串在一起 StringBuilder query = new StringBuilder(""); while (dem.MoveNext()) { string key = dem.Current.Key; string value = dem.Current.Value; if (!string.IsNullOrEmpty(key) && !string.IsNullOrEmpty(value)) { query.Append(key).Append("=").Append(value).Append("&"); } } string content = query.ToString().Substring(0, query.Length - 1); return content; } ```
请问哪位大神有实现DEM可视化的程序啊?可以分享一下
请问哪位大神有实现DEM可视化的程序啊?可以分享一下,谢谢!
Golbal mapper 和 DEM 的问题
老师你好,我咨询个问题: 我有一块DEM数据(山地的地形),用 Golbal mapper 打开后,有一小块高度是零值,3D视图预览就是有一块方形的坑,我想把这个0值的坑给修复了怎么修复?(就是把这个坑怎么平滑过度的给填上。谢谢了,)解决了给您发红包。
怎样对ADS-B信号进行IQ调制,自己尝试着写,发现最后的IQ样本不对?
clear all; clc; % load('E:\ADS-B Receiver-V1\TestData\ABC123.mat'); % load('E:\ADS-B Receiver-V1\TestData\Binary20_24_28.mat'); % Data_Block=round(rand(1,112)); AA = '780123'; Lon = 113.23; Lat = 35.15; Alt = 32500; [Data_Block_odd,Data_Block_even] = Data_Block_Generate(AA,Lon,Lat,Alt); %实现中频10MHz ASK调制 IFCarr_Fre=10e6; Sample_Fre=50e6; %时延 delay_odd=0;%us delay_even=0;%us SNR1=25; [sl1,ADSB_1090ES_Signal_odd1]=ADSB_1090ES_Generate(Data_Block_odd,IFCarr_Fre,Sample_Fre,delay_odd,SNR1); [sl2,ADSB_1090ES_Signal_even1]=ADSB_1090ES_Generate(Data_Block_even,IFCarr_Fre,Sample_Fre,delay_even,SNR1); slu = [sl1,zeros(1,300),sl2]; sl1n=sqrt(10.^(25/10)).*slu + randn(1,12300);%randn 正太分布的随机数 ADSB_1090ES_Signal = [ADSB_1090ES_Signal_odd1,ADSB_1090ES_Signal_even1]; t=0:1/Sample_Fre:1/Sample_Fre*(length(ADSB_1090ES_Signal)-1); %save ADSB_1090ES_Signal ADSB_1090ES_Signal1 ADSB_1090ES_Signal11 ADSB_1090ES_Signal2 ... % ADSB_1090ES_Signal21 ADSB_1090ES_Signal3 ADSB_1090ES_Signal31; %ADSB_1090ES_Data1 = downsample(ADSB_1090ES_Data,4); %ADSB_1090ES_Signal1 = downsample(ADSB_1090ES_Signal,4); %t1 = downsample(t,4); % %ADSB_1090ES_Signal_Hil = hilbert(ADSB_1090ES_Signal); %ADSB_1090ES_Signal_Hili = imag(ADSB_1090ES_Signal_Hil); %sum(ADSB_1090ES_Signal.*ADSB_1090ES_Signal_Hili) %fft_sig = fftshift(fft(ADSB_1090ES_Signal)); %fft_sigh = fftshift(fft(ADSB_1090ES_Signal_Hil)); %N=length(fft_sig); %f=linspace(-Sample_Fre/2,Sample_Fre/2 - Sample_Fre/N,N); %figure; %subplot(211); %plot(f,abs(fft_sig)); %subplot(212); %plot(f,abs(fft_sigh)); %figure; %plot(t.*1e6,20*log10(abs(ADSB_1090ES_Signal_Hil))); %grid on; %title('Hilbert变换后的信号波形');% % % ADSB_1090ES_Signal = downsample(abs(ADSB_1090ES_Signal_Hil),4); % % t1 = downsample(t,4); figure(1); plot(t.*1e6,ADSB_1090ES_Signal,'b'); grid on; % legend('中频信号波形','Hilbert变换后的信号波形'); title('时域波形');xlabel('t/us');ylabel('幅度'); %数字正交调制 % IF1_carrier=10e6; % IFCarr_dem = 2*Sample_Fre - IFCarr_Fre; cosCar_IF1=cos(2*pi*IFCarr_Fre*t); sinCar_IF1=sin(2*pi*IFCarr_Fre*t); %同相分量 ADSB_1090ES_RecI =ADSB_1090ES_Signal .*cosCar_IF1; %正交分量 ADSB_1090ES_RecQ =ADSB_1090ES_Signal .*sinCar_IF1; %构建低通滤波器,截止频率为2MHz %Lowpass=fir1(8,2e6/(Sample_Fre/2));%阶数目前是随意选的 % figure % %低通滤波器的频率响应 % freqz(Lowpass,1); %ADSB_1090ES_RecI_LP=filter(Lowpass,1,ADSB_1090ES_RecI);%同相分量 %ADSB_1090ES_RecQ_LP=filter(Lowpass,1,ADSB_1090ES_RecQ);%正交分量 %希尔伯特变换 ADSB_1090ES_Rec=ADSB_1090ES_RecI+1i*ADSB_1090ES_RecQ; % ADSB_1090ES_Rec=abs(ADSB_1090ES_Rec); % ADSB_1090ES_Rec=sqrt(ADSB_1090ES_Rec); % delay=(30+8)/2; % % the downsample for receive_signal % ADSB_1090ES_Rec_downsample=downsample(ADSB_1090ES_Rec,2); % % the delay adjust for filter % re_detection= ADSB_1090ES_Rec_downsample(delay+1:end-delay); %由于通过滤波器,产生了时延(线性相位) %figure %subplot(3,1,1); %plot(t.*1e6,abs(ADSB_1090ES_RecI_LP));grid on; %title('同相分量');xlabel('t/us');ylabel('幅度'); %subplot(3,1,2); %plot(t.*1e6,abs(ADSB_1090ES_RecQ_LP));grid on; %title('正交分量');xlabel('t/us');ylabel('幅度'); %subplot(3,1,3); %plot(t.*1e6,abs(ADSB_1090ES_Rec));grid on; %title('解调后信号');xlabel('t/us');ylabel('幅度'); %求调制信号的定积分 N = length(t)-1; dt = 1/Sample_Fre; integral_ADSB_1090ES_Rec(1)=0; for i=1:N integral_ADSB_1090ES_Rec(i+1)=integral_ADSB_1090ES_Rec(i)+ADSB_1090ES_Rec(i)*dt; end figure(2); plot(t,integral_ADSB_1090ES_Rec); title('IQ信号'); save ADSB_1090ES_Signal_odd1 有偿求教 加v guxinan520
空间插值之局部多项插值方法
如果用局部多项式插值方法,需将TIN转换成DEM,并通过DEM求取地形的测度。请问为什么要将TIN转换成DEM?
怎么样处理超大二维数组的计算?
我需要根据全国的数字高程图DEM,来计算全国的河网。在计算过程中我需要扫描整个矩阵。可是由于DEM数据太大,根本无法一次性装载到内存。所以我想先将数据分割成小文件,然后一部分一部分的算。我在扫描矩阵的时候,需要从左上角扫描到右下角,然后从右下角扫描到左上角,如此循环往复,才能最终确定水的汇集量。可是高频率的文件读写,会让程序的运行时间长到无法接受。各位Gods有什么好方法吗?
QtCreater中调用GDAL调试出错,
如题。 程序在QtCreater中调试出错。 undefined reference to 'GDALDataset::GetRasterXSize() undefined reference to 'GDALDataset::GetRasterYSize() 等等一系列错误,Include,LIBs,dll均已按照路径放好。 之前的 GDALAllRegister(),GDALOpen()都没问题。 以上为部分代码。 #include "tifffile.h" #include "gdal_priv.h" #include <QString> TiffFile::TiffFile(QString* filename) { GDALAllRegister(); GDALDataset *poDataset; //QString转化为Char std::string str = filename->toStdString(); const char* c_Filename = str.c_str(); //文件名赋值 Filename=*filename; poDataset = (GDALDataset*)GDALOpen(c_Filename, GA_ReadOnly); //XYN赋值 n_X=poDataset->GetRasterXSize(); n_Y=poDataset->GetRasterYSize(); n_Band=poDataset->GetRasterCount(); Datatype=poDataset->GetRasterBand(1)->GetRasterDataType(); if(n_Band!=1) is_DEM=FALSE; is_Towered=FALSE; } 之前的 GDALAllRegister(); GDALOpen()都没问题,到了GetRasterXSize和后面的函数就出了问题,有人来解释下吗?.
kindle如何退出演示模式
手欠 把kindle k8 输入;demo 后进入了演示模式 现在屏幕也点不动 只能一直循环壁纸 用ttl连接电脑后 用串口助手可以登陆到linux的root账户 不清楚命令 没办法解除演示模式 有没有大神支招
PHP报错fopen(C:\data\live_dem...
我的系统是windows,写法是 private function getHandle($channelName) { if($this->_handleArr[$channelName]) { return $this->_handleArr[$channelName]; } date_default_timezone_set('PRC'); $nowTime = time(); $logSuffix = date('Ymd', $nowTime); $handle = fopen($this->_path . '/' . $channelName . $logSuffix . ".log", 'a'); $this->_handleArr[$channelName] = $handle; return $handle; } $handle = fopen($this->_path . '/' . $channelName . $logSuffix . ".log", 'a');这一行报错 fopen(C:\data\live_demo_service\common/..//log//interface_info20161111.log): failed to open stream: No such file or directory in C:\data\live_demo_service\common\MiniLog.php on line 57 初次使用,请解决
TerrSet中的IDRISI GIS Analysis分析中的Reclass无法输错结果文件
在做DEM数据重分类的时候,进行如下设置,既不能输出分类后的结果文件,也不提示错误信息,将ArcMap中生成的ASCII 文件转为 IDRISI中的raster 文件时报错为Header incorrectly formatted,请问如何解决 ![图片说明](https://img-ask.csdn.net/upload/201903/12/1552359411_724090.png)![图片说明](https://img-ask.csdn.net/upload/201903/12/1552360002_167594.png)
matlab中使用yalmip计算规划问题,结果为NAN,附代码,麻烦大神看看指点一下
Cstart=[5000 1600 2400 1200]'; Len=[6 3 3 2 4 4 2]'; Cmin=[2250 1800 3750 4800]'; Cadd=[2.7 2.2 1.8 3.8]'; Dem=[12000 32000 25000 36000 25000 30000 18000]'; Pmax=[1750 1500 2000 3500]'; Pmin=[750 1000 1200 1800]'; Avail=[10 4 8 3]'; start=intvar(4,7); work=intvar(4,7); padd=intvar(4,7); f=sum(Cstart'*start)+Len'*(Cmin'*work+Cadd'*padd)'; F=[]; F=[F start>=0 padd>=0]; for i=1:4 F=[F 0<=work(i,:)<=Avail(i)]; end for i=1:4 for j=1:7 F=[F padd(i,j)<=(Pmax(i)-Pmin(i))*work(i,j)]; end end for j=1:7 F=[F Pmin'*work(:,j)+sum(padd(:,j))>=Dem(j)]; end for j=1:7 F=[F Pmax'*work(:,j)>=1.20*Dem(j)]; end for i=1:4 for j=1:7 if j==1 F=[F start(i,1)>=work(i,1)-work(i,7)]; else F=[F start(i,j)>=work(i,j)-work(i,j-1)]; end end end ops = sdpsettings('solver','cplex'); output=solvesdp(F,f,ops); z=double(f) z = NaN >> start=double(start) start = NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN >> work=double(work) work = NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN >> padd=double(padd) padd = NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
MFC 发送HTTP请求获取Set-Cookie不完全
我想模拟发送Get请求,获取服务器传回的Set-Cookie值,可是获取到的Set-Cookie不完全。 下面是我用火狐的FireDebug抓到的数据: URL是: ``` http://my.37.com/api/login.php?callback=jQuery18301289508974426815_1425523200459&action=login&login_account=dazhewang&password=111111&ajax=0&remember_me=1&save_state=1&ltype=1&_=1425523232168 ``` 请求头是: ``` GET /api/login.php?callback=jQuery18301289508974426815_1425523200459&action=login&login_account=dazhewang&password=111111&ajax=0&remember_me=1&save_state=1&ltype=1&_=1425523232168 HTTP/1.1 Host: my.37.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 Accept: */* Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Referer: http://www.37.com/ Connection: keep-alive ``` 响应头信息是: ``` HTTP/1.1 200 OK Server: nginx Date: Thu, 05 Mar 2015 02:41:55 GMT Content-Type: text/html; Charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" Set-Cookie: PHPSESSID=16414db50d1ca1961594b4b599f4926a; path=/ rt=1; path=/; domain=37.com passport_37wan_com=204830022%7Cdazhewang%7C1425523315000%7C2cb762f4dcd29cb0df6b1f982568bb8f; expires=Sat, 04-Apr-2015 02:41:55 GMT; path=/; domain=37.com ispass_37wan_com=89235a5c%7C1%7C3910fa2c75703ed865fba6c86c2fd4db%7C1; expires=Sat, 04-Apr-2015 02:41:55 GMT; path=/; domain=37.com; httponly 37wan_account=dazhewang; expires=Sun, 02-Mar-2025 02:41:55 GMT; path=/; domain=37.com 37loginrefer=LHd3dy4zNy5jb20sLA%3D%3D%7Cc2470b07de2d81a9e1581defa000a0bb; path=/; domain=37.com Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache 37web: zs_12_33_web Content-Encoding: gzip ``` 下面是我的代码: ``` CInternetSession session; INTERNET_PORT nPort = 80; try { CHttpConnection* pHttpConnect = session.GetHttpConnection(_T("my.37.com"), nPort); if (pHttpConnect) { CHttpFile* pFile = pHttpConnect->OpenRequest(CHttpConnection::HTTP_VERB_GET, _T("/api/login.php ?")); //"/api/login.php ?"的问号应该是不要的吧,我尝试去掉?后,代码结果不变 if (pFile) { pFile->AddRequestHeaders(L"GET /api/login.php ? callback = jQuery18301289508974426815_1425523200459&action = login&login_account = dazhewang&password = 111111 & ajax = 0 & remember_me = 1 & save_state = 1 & ltype = 1 & _ = 1425523232168 HTTP / 1.1"); //这里的参数信息是否是这么添加的? pFile->AddRequestHeaders(_T("Accept : */*")); pFile->AddRequestHeaders(_T("Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3")); pFile->AddRequestHeaders(_T("Referer: http://www.37.com/")); pFile->AddRequestHeaders(_T("User-Agent: Mozilla / 5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko / 20100101 Firefox / 36.0")); pFile->AddRequestHeaders(_T("Accept-Encoding: gzip, deflate")); pFile->AddRequestHeaders(_T("Host: my.37.com")); pFile->AddRequestHeaders(_T("Connection: keep-alive")); pFile->AddRequestHeaders(_T("Cache - Control: no - cache")); //TCHAR szRequest //pFile->SendRequest(NULL, 0, szRequest, MAX_COUNT*sizeof(TCHAR)); pFile->SendRequest(); //这句代码需要加参数吗?我这里没有要额外添加的信息了 CString strStatus(_T("")); if (pFile->QueryInfo(HTTP_QUERY_RAW_HEADERS_CRLF, strStatus)) { AfxMessageBox(strStatus); } } pFile->Close(); delete pFile; pFile = NULL; } return TRUE; } catch (CInternetException* e) { e->ReportError(); e->Delete(); return FALSE; } ``` 返回的响应结果如下: ``` HTTP/1.1 200 OK Server: nginx Date: Thu, 05 Mar 2015 02:52:49 GMT Content-Type: text/html; Charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" Set-Cookie: PHPSESSID=77363a9a9ab0c6b7bf5c96c80d635e2f; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache 37web: gz_82_133_web Content-Encoding: gzip ``` Set-Cookie值只1条,请问大神们这是什么原因啊?求解答,万分感谢!!!(由于是新账号,没悬赏分,非常抱歉)
有赞模拟登陆返回500错误
我用浏览器打开时正常的,但是在程序中为什么就返回500错误了呢?具体代码如下: 地址:http://koudaitong.com/v2/account/user/login ``` /// <summary> /// 获取验证码 private void 登陆_Load(object sender, EventArgs e) { txtUserName.Text="18076549077"; txtPwd.Text="123456789"; GetViliCode(); } private void pbCode_Click(object sender, EventArgs e) { GetViliCode(); } /// <summary> /// 获取验证码 /// </summary> public void GetViliCode() { var codeStr = "http://koudaitong.com/captcha"; HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(codeStr); request.CookieContainer = MyCookies; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream resStream = response.GetResponseStream();//得到验证码数据流 Bitmap sourcebm = new Bitmap(resStream);//初始化Bitmap图片 this.pbCode.Image = new Bitmap(sourcebm); } /// <summary> /// 登陆 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLogin_Click(object sender, EventArgs e) { string userName = txtUserName.Text; string pwd = txtPwd.Text; string code = txtCode.Text; IDictionary<string, string> loginParameter = new Dictionary<string, string>(); loginParameter.Add("account", userName); loginParameter.Add("password", pwd); loginParameter.Add("captcha_code", code); loginParameter.Add("auto_login", "on"); if (userName != "" && pwd != "" && code != "") { try { var cc = DoPost(loginUrl, loginParameter, ref MyCookies, "http://koudaitong.com/v2/account/user/login"); } catch (Exception ex) { var bb = ex.Message; } } } public string DoPost(string url, IDictionary<string, string> parameters, ref CookieContainer cookieContainer, string referer) { HttpWebRequest req = GetWebRequest(url, "POST"); System.Net.ServicePointManager.DefaultConnectionLimit = 2000; if (cookieContainer != null) { req.CookieContainer = cookieContainer; } if (!string.IsNullOrEmpty(referer)) { req.Referer = referer; } byte[] postData = Encoding.UTF8.GetBytes(BuildQuery(parameters)); req.ContentType = "application/x-www-form-urlencoded; charset=UTF-8"; req.ContentLength = postData.Length; req.UserAgent = "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"; req.Accept = "application/json, text/javascript, */*; q=0.01"; Stream reqStream = req.GetRequestStream(); reqStream.Write(postData, 0, postData.Length); reqStream.Close(); HttpWebResponse rsp = (HttpWebResponse)req.GetResponse(); //垃圾回收 // System.GC.Collect(); Encoding encoding = Encoding.GetEncoding(rsp.CharacterSet); return GetResponseAsString(rsp, encoding); } /// <summary> /// 组装普通文本请求参数。 /// </summary> /// <param name="parameters">Key-Value形式请求参数字典</param> /// <returns>URL编码后的请求数据</returns> public static string BuildQuery(IDictionary<string, string> parameters) { StringBuilder postData = new StringBuilder(); bool hasParam = false; if (parameters != null) { IEnumerator<KeyValuePair<string, string>> dem = parameters.GetEnumerator(); while (dem.MoveNext()) { string name = dem.Current.Key; string value = dem.Current.Value; if (hasParam) { postData.Append("&"); } postData.Append(name); postData.Append("="); postData.Append(HttpUtility.UrlEncode(value, Encoding.UTF8)); hasParam = true; //} } } return postData.ToString(); } } } ```
vhdl语言:如何将正弦信号的数字数据输入到wm8731并通过示波器测得正弦波?
* 我已经将正弦信号的数字部分编好 这部分代码有3个功能:1. 输出不同频率的信号 2.人为控制输出有限周期的信号 3.可以输出正弦波和三角波 详细问题:一个信号可以通过wm8731里的DA-转换器将数字信号转换成模拟信号,但是我怎么用vhdl语言去调用wm8731将并行的数字信号的数据输入到wm8731里面去 ``` entity generator_gai is port( clk,reset,zustand: in bit; --clk: 50MHz,PIN_L1; reset:SW9,PIN_L2; -- zustand: SW8,PIN_M1, Um zwischen die Sinussignal und Dreiecksignal zu wechseln. Zustand = 1: Dreiecksignal; Zustand = 0: Sinussignal; key: in bit_vector(3 downto 0); --Die Frequenz der Signal wird durch Switches von 0 bis 9999 Hz eingestellt. Spg: out integer range 256 downto 0; -- Spg: die Spannungswert der Signal Schalter: in bit_vector(7 downto 0); -- Die Zahl der Ausgabe der Signal wird durch Switches eingestellt. R: out bit; -- Ausgang der Rechtecksignal eine: out bit_vector(6 downto 0); -- Beispiel: 9876: za=6, zehn=7, hundert=8, tausend=9. Die 4 Ausgangen bedeuten, dass der Wert auf der 7-Segment dargestellt wird. zehn: out bit_vector(6 downto 0); hundert: out bit_vector(6 downto 0); tausend: out bit_vector(6 downto 0)); end generator_gai; architecture structure of generator_gai is signal cnt,cnt_folge,f_divide: integer range 50000000 downto 0; -- f_divide: frequenz-divide, Man möchte eine Frequenz bestimmen, muss man die Count beschränkt. signal f_divide_halbe: integer range 25000000 downto 0; signal sw0,sw1,sw2,sw3,sw4,sw5,sw6,sw7,sw_ges: integer range 512 downto 0; -- diese Parameter bedeuten den Wert der Schalter. a: die 1.Schalter und bedeutet 0 und 1. b: die 2.Schalter und bedeutet 0 und 2....... signal clk1,Swg_clk: bit;-- clk1:Frequenz der Signal. Swg_clk: wenn man möchte die Taste benutzen, muss man die Schwingung beseitigen. Deshalb kann man mit der Periode sichern, dass die Tastt schon gedrückt wird. signal Swg_cnt,Swg_cnt_folge: integer range 10000 downto 0; -- Count zum Vermeiden der Schwingung signal key0_count,key0_count_folge,key1_count,key1_count_folge,key2_count,key2_count_folge,key3_count,key3_count_folge,clk1_count: integer range 5000000 downto 0; signal clk1_count_folge: integer range 5000001 downto 0; signal eine1,zehn1,hundert1,tausend1: integer range 10 downto 0; -- Die Wert der Frequenz signal num,num_folge: integer range 255 downto 0;-- num: sie ist die Abszisse(X-wert). signal periode,periode_folge: integer range 0 to 255; -- Die Anzahl der Ausgabe des Signals signal key0,key0_folge: integer range 10 downto 0; -- Die Werte der Frequenz des Signals signal key1,key1_folge: integer range 100 downto 0; signal key2,key2_folge: integer range 1000 downto 0; signal key3,key3_folge,key_ges: integer range 10000 downto 0; begin Z_Speicher:process(clk) begin if reset = '1' then periode <= 1; elsif clk = '1' and clk'event then cnt <= cnt_folge; Swg_cnt <= Swg_cnt_folge; key0_count <= key0_count_folge; key1_count <= key1_count_folge; key2_count <= key2_count_folge; key3_count <= key3_count_folge; key0 <= key0_folge; key1 <= key1_folge; key2 <= key2_folge; key3 <= key3_folge; clk1_count <= clk1_count_folge; periode <= periode_folge; end if; if reset = '1' then num <= 255; elsif clk1 = '1' and clk1'event then num <= num_folge; end if; end process Z_Speicher; UE_SN:process(cnt,Swg_clk,key,reset) begin if cnt >= f_divide then cnt_folge <= 0; else cnt_folge <= cnt + 1; end if; if Schalter(0) = '1' then sw0 <= 1; else sw0 <= 0; end if; if Schalter(1) = '1' then sw1 <= 2; else sw1 <= 0; end if; if Schalter(2) = '1' then sw2 <= 4; else sw2 <= 0; end if; if Schalter(3) = '1' then sw3 <= 8; else sw3 <= 0; end if; if Schalter(4) = '1' then sw4 <= 16; else sw4 <= 0; end if; if Schalter(5) = '1' then sw5 <= 32; else sw5 <= 0; end if; if Schalter(6) = '1' then sw6 <= 64; else sw6 <= 0; end if; if Schalter(7) = '1' then sw7 <= 128; else sw7 <= 0; end if; sw_ges <= sw0 + sw1 + sw2 + sw3 + sw4 + sw5 + sw6 + sw7; if Swg_cnt >= 10000 then -- Festfrequenz 5kHz: 200us; Swg_cnt_folge <= 0; else Swg_cnt_folge <= Swg_cnt + 1; end if; if reset = '1' then key0_folge <= 0; key1_folge <= 0; key2_folge <= 0; key3_folge <= 0; elsif clk = '1' and clk'event then if clk1 = '1' then clk1_count_folge <= clk1_count + 1; -- Das Signal kommt viele Peak auf dem Anfangsplatz aus. Deshalb muss man diese Peak vermeiden. else if clk1_count > 20 then clk1_count_folge <= 0; if num >= 255 then periode_folge <= periode + 1; if sw_ges = 128 then -- Wenn SW7(Schalter(7)) = 1, dann läuft das Signal immer. num_folge <= 0; else if sw_ges >= periode then num_folge <= 0; else num_folge <= 255; periode_folge <= sw_ges + 1; end if; end if; else num_folge <= num + 1; end if; else clk1_count_folge <= 0; end if; end if; if key(0) = '0' then key0_count_folge <= key0_count + 1; else if key0_count > 500000 then -- Wenn man ein Key drücken, soll man die Schwingung vermeiden. key0_count_folge <= 0; if key0 < 9 then key0_folge <= key0 + 1; else key0_folge <= 0; end if; else key0_count_folge <= 0; end if; end if; if key(1) = '0' then key1_count_folge <= key1_count + 1; else if key1_count > 500000 then key1_count_folge <= 0; if key1 < 90 then key1_folge <= key1 + 10; else key1_folge <= 0; end if; else key1_count_folge <= 0; end if; end if; if key(2) = '0' then key2_count_folge <= key2_count + 1; else if key2_count > 500000 then key2_count_folge <= 0; if key2 < 900 then key2_folge <= key2 + 100; else key2_folge <= 0; end if; else key2_count_folge <= 0; end if; end if; if key(3) = '0' then key3_count_folge <= key3_count + 1; else if key3_count > 500000 then key3_count_folge <= 0; if key3 < 9000 then key3_folge <= key3 + 1000; else key3_folge <= 0; end if; else key3_count_folge <= 0; end if; end if; end if; if key0 = 0 and key1 = 0 and key2 = 0 and key3 = 0 then f_divide <= 0; else f_divide <= 50000000/(key0 + key1 + key2 + key3); end if; eine1 <= key0; zehn1 <= key1/10; hundert1 <= key2/100; tausend1 <= key3/1000; end process UE_SN; AUS_SN:process(eine1,zehn1,hundert1,tausend1,cnt) begin case eine1 is when 0 => eine <= "1000000"; -- Die Binärcode des Nummer für 7-Segment when 1 => eine <= "1111001"; when 2 => eine <= "0100100"; when 3 => eine <= "0110000"; when 4 => eine <= "0011001"; when 5 => eine <= "0010010"; when 6 => eine <= "0000011"; when 7 => eine <= "1111000"; when 8 => eine <= "0000000"; when others => eine <= "0011000"; end case; case zehn1 is when 0 => zehn <= "1000000"; when 1 => zehn <= "1111001"; when 2 => zehn <= "0100100"; when 3 => zehn <= "0110000"; when 4 => zehn <= "0011001"; when 5 => zehn <= "0010010"; when 6 => zehn <= "0000011"; when 7 => zehn <= "1111000"; when 8 => zehn <= "0000000"; when others => zehn <= "0011000"; end case; case hundert1 is when 0 => hundert <= "1000000"; when 1 => hundert <= "1111001"; when 2 => hundert <= "0100100"; when 3 => hundert <= "0110000"; when 4 => hundert <= "0011001"; when 5 => hundert <= "0010010"; when 6 => hundert <= "0000011"; when 7 => hundert <= "1111000"; when 8 => hundert <= "0000000"; when others => hundert <= "0011000"; end case; case tausend1 is when 0 => tausend <= "1000000"; when 1 => tausend <= "1111001"; when 2 => tausend <= "0100100"; when 3 => tausend <= "0110000"; when 4 => tausend <= "0011001"; when 5 => tausend <= "0010010"; when 6 => tausend <= "0000011"; when 7 => tausend <= "1111000"; when 8 => tausend <= "0000000"; when others => tausend <= "0011000"; end case; if Swg_cnt >= 5000 then Swg_clk <= '1'; else Swg_clk <= '0'; end if; if cnt >= f_divide/2 then clk1 <= '1'; else clk1 <= '0'; end if; R <= clk1; if zustand = '1' then case num is when 0 => Spg <= 64; when 33 => Spg <= 97; when 66 => Spg <= 126; when 99 => Spg <= 93; when 1 => Spg <= 65; when 34 => Spg <= 98; when 67 => Spg <= 125; when 100 => Spg <= 92; when 2 => Spg <= 66; when 35 => Spg <= 99; when 68 => Spg <= 124; when 101 => Spg <= 91; when 3 => Spg <= 67; when 36 => Spg <= 100; when 69 => Spg <= 123; when 102 => Spg <= 90; when 4 => Spg <= 68; when 37 => Spg <= 101; when 70 => Spg <= 122; when 103 => Spg <= 89; when 5 => Spg <= 69; when 38 => Spg <= 102; when 71 => Spg <= 121; when 104 => Spg <= 88; when 6 => Spg <= 70; when 39 => Spg <= 103; when 72 => Spg <= 120; when 105 => Spg <= 87; when 7 => Spg <= 71; when 40 => Spg <= 104; when 73 => Spg <= 119; when 106 => Spg <= 86; when 8 => Spg <= 72; when 41 => Spg <= 105; when 74 => Spg <= 118; when 107 => Spg <= 85; when 9 => Spg <= 73; when 42 => Spg <= 106; when 75 => Spg <= 117; when 108 => Spg <= 84; when 10 => Spg <= 74; when 43 => Spg <= 107; when 76 => Spg <= 116; when 109 => Spg <= 83; when 11 => Spg <= 75; when 44 => Spg <= 108; when 77 => Spg <= 115; when 110 => Spg <= 82; when 12 => Spg <= 76; when 45 => Spg <= 109; when 78 => Spg <= 114; when 111 => Spg <= 81; when 13 => Spg <= 77; when 46 => Spg <= 110; when 79 => Spg <= 113; when 112 => Spg <= 80; when 14 => Spg <= 78; when 47 => Spg <= 111; when 80 => Spg <= 112; when 113 => Spg <= 79; when 15 => Spg <= 79; when 48 => Spg <= 112; when 81 => Spg <= 111; when 114 => Spg <= 78; when 16 => Spg <= 80; when 49 => Spg <= 113; when 82 => Spg <= 110; when 115 => Spg <= 77; when 17 => Spg <= 81; when 50 => Spg <= 114; when 83 => Spg <= 109; when 116 => Spg <= 76; when 18 => Spg <= 82; when 51 => Spg <= 115; when 84 => Spg <= 108; when 117 => Spg <= 75; when 19 => Spg <= 83; when 52 => Spg <= 116; when 85 => Spg <= 107; when 118 => Spg <= 74; when 20 => Spg <= 84; when 53 => Spg <= 117; when 86 => Spg <= 106; when 119 => Spg <= 73; when 21 => Spg <= 85; when 54 => Spg <= 118; when 87 => Spg <= 105; when 120 => Spg <= 72; when 22 => Spg <= 86; when 55 => Spg <= 119; when 88 => Spg <= 104; when 121 => Spg <= 71; when 23 => Spg <= 87; when 56 => Spg <= 120; when 89 => Spg <= 103; when 122 => Spg <= 70; when 24 => Spg <= 88; when 57 => Spg <= 121; when 90 => Spg <= 102; when 123 => Spg <= 69; when 25 => Spg <= 89; when 58 => Spg <= 122; when 91 => Spg <= 101; when 124 => Spg <= 68; when 26 => Spg <= 90; when 59 => Spg <= 123; when 92 => Spg <= 100; when 125 => Spg <= 67; when 27 => Spg <= 91; when 60 => Spg <= 124; when 93 => Spg <= 99; when 126 => Spg <= 66; when 28 => Spg <= 92; when 61 => Spg <= 125; when 94 => Spg <= 98; when 127 => Spg <= 65; when 29 => Spg <= 93; when 62 => Spg <= 126; when 95 => Spg <= 97; when 128 => Spg <= 64; when 30 => Spg <= 94; when 63 => Spg <= 127; when 96 => Spg <= 96; when 129 => Spg <= 63; when 31 => Spg <= 95; when 64 => Spg <= 128; when 97 => Spg <= 95; when 130 => Spg <= 62; when 32 => Spg <= 96; when 65 => Spg <= 127; when 98 => Spg <= 94; when 131 => Spg <= 61; when 132 => Spg <= 60; when 162 => Spg <= 30; when 192 => Spg <= 0; when 222 => Spg <= 30; when 133 => Spg <= 59; when 163 => Spg <= 29; when 193 => Spg <= 1; when 223 => Spg <= 31; when 134 => Spg <= 58; when 164 => Spg <= 28; when 194 => Spg <= 2; when 224 => Spg <= 32; when 135 => Spg <= 57; when 165 => Spg <= 27; when 195 => Spg <= 3; when 225 => Spg <= 33; when 136 => Spg <= 56; when 166 => Spg <= 26; when 196 => Spg <= 4; when 226 => Spg <= 34; when 137 => Spg <= 55; when 167 => Spg <= 25; when 197 => Spg <= 5; when 227 => Spg <= 35; when 138 => Spg <= 54; when 168 => Spg <= 24; when 198 => Spg <= 6; when 228 => Spg <= 36; when 139 => Spg <= 53; when 169 => Spg <= 23; when 199 => Spg <= 7; when 229 => Spg <= 37; when 140 => Spg <= 52; when 170 => Spg <= 22; when 200 => Spg <= 8; when 230 => Spg <= 38; when 141 => Spg <= 51; when 171 => Spg <= 21; when 201 => Spg <= 9; when 231 => Spg <= 39; when 142 => Spg <= 50; when 172 => Spg <= 20; when 202 => Spg <= 10; when 232 => Spg <= 40; when 143 => Spg <= 49; when 173 => Spg <= 19; when 203 => Spg <= 11; when 233 => Spg <= 41; when 144 => Spg <= 48; when 174 => Spg <= 18; when 204 => Spg <= 12; when 234 => Spg <= 42; when 145 => Spg <= 47; when 175 => Spg <= 17; when 205 => Spg <= 13; when 235 => Spg <= 43; when 146 => Spg <= 46; when 176 => Spg <= 16; when 206 => Spg <= 14; when 236 => Spg <= 44; when 147 => Spg <= 45; when 177 => Spg <= 15; when 207 => Spg <= 15; when 237 => Spg <= 45; when 148 => Spg <= 44; when 178 => Spg <= 14; when 208 => Spg <= 16; when 238 => Spg <= 46; when 149 => Spg <= 43; when 179 => Spg <= 13; when 209 => Spg <= 17; when 239 => Spg <= 47; when 150 => Spg <= 42; when 180 => Spg <= 12; when 210 => Spg <= 18; when 240 => Spg <= 48; when 151 => Spg <= 41; when 181 => Spg <= 11; when 211 => Spg <= 19; when 241 => Spg <= 49; when 152 => Spg <= 40; when 182 => Spg <= 10; when 212 => Spg <= 20; when 242 => Spg <= 50; when 153 => Spg <= 39; when 183 => Spg <= 9; when 213 => Spg <= 21; when 243 => Spg <= 51; when 154 => Spg <= 38; when 184 => Spg <= 8; when 214 => Spg <= 22; when 244 => Spg <= 52; when 155 => Spg <= 37; when 185 => Spg <= 7; when 215 => Spg <= 23; when 245 => Spg <= 53; when 156 => Spg <= 36; when 186 => Spg <= 6; when 216 => Spg <= 24; when 246 => Spg <= 54; when 157 => Spg <= 35; when 187 => Spg <= 5; when 217 => Spg <= 25; when 247 => Spg <= 55; when 158 => Spg <= 34; when 188 => Spg <= 4; when 218 => Spg <= 26; when 248 => Spg <= 56; when 159 => Spg <= 33; when 189 => Spg <= 3; when 219 => Spg <= 27; when 249 => Spg <= 57; when 160 => Spg <= 32; when 190 => Spg <= 2; when 220 => Spg <= 28; when 250 => Spg <= 58; when 161 => Spg <= 31; when 191 => Spg <= 1; when 221 => Spg <= 29; when 251 => Spg <= 59; when 252 => Spg <= 60; when 253 => Spg <= 61; when 254 => Spg <= 62; when 255 => Spg <= 63; end case; elsif zustand = '0' then case num is when 0 => Spg <= 128; when 33 => Spg <= 221; when 66 => Spg <= 256; when 99 => Spg <= 212; when 1 => Spg <= 131; when 34 => Spg <= 223; when 67 => Spg <= 256; when 100 => Spg <= 209; when 2 => Spg <= 134; when 35 => Spg <= 225; when 68 => Spg <= 255; when 101 => Spg <= 207; when 3 => Spg <= 137; when 36 => Spg <= 227; when 69 => Spg <= 255; when 102 => Spg <= 204; when 4 => Spg <= 141; when 37 => Spg <= 229; when 70 => Spg <= 255; when 103 => Spg <= 202; when 5 => Spg <= 144; when 38 => Spg <= 231; when 71 => Spg <= 254; when 104 => Spg <= 199; when 6 => Spg <= 147; when 39 => Spg <= 233; when 72 => Spg <= 254; when 105 => Spg <= 196; when 7 => Spg <= 150; when 40 => Spg <= 234; when 73 => Spg <= 253; when 106 => Spg <= 194; when 8 => Spg <= 153; when 41 => Spg <= 236; when 74 => Spg <= 252; when 107 => Spg <= 191; when 9 => Spg <= 156; when 42 => Spg <= 238; when 75 => Spg <= 251; when 108 => Spg <= 188; when 10 => Spg <= 159; when 43 => Spg <= 239; when 76 => Spg <= 250; when 109 => Spg <= 186; when 11 => Spg <= 162; when 44 => Spg <= 241; when 77 => Spg <= 250; when 110 => Spg <= 183; when 12 => Spg <= 165; when 45 => Spg <= 242; when 78 => Spg <= 249; when 111 => Spg <= 180; when 13 => Spg <= 168; when 46 => Spg <= 244; when 79 => Spg <= 247; when 112 => Spg <= 177; when 14 => Spg <= 171; when 47 => Spg <= 245; when 80 => Spg <= 246; when 113 => Spg <= 174; when 15 => Spg <= 174; when 48 => Spg <= 246; when 81 => Spg <= 245; when 114 => Spg <= 171; when 16 => Spg <= 177; when 49 => Spg <= 247; when 82 => Spg <= 244; when 115 => Spg <= 168; when 17 => Spg <= 180; when 50 => Spg <= 249; when 83 => Spg <= 242; when 116 => Spg <= 165; when 18 => Spg <= 183; when 51 => Spg <= 250; when 84 => Spg <= 241; when 117 => Spg <= 162; when 19 => Spg <= 186; when 52 => Spg <= 250; when 85 => Spg <= 239; when 118 => Spg <= 159; when 20 => Spg <= 188; when 53 => Spg <= 251; when 86 => Spg <= 238; when 119 => Spg <= 156; when 21 => Spg <= 191; when 54 => Spg <= 252; when 87 => Spg <= 236; when 120 => Spg <= 153; when 22 => Spg <= 194; when 55 => Spg <= 253; when 88 => Spg <= 234; when 121 => Spg <= 150; when 23 => Spg <= 196; when 56 => Spg <= 254; when 89 => Spg <= 233; when 122 => Spg <= 147; when 24 => Spg <= 199; when 57 => Spg <= 254; when 90 => Spg <= 231; when 123 => Spg <= 144; when 25 => Spg <= 202; when 58 => Spg <= 255; when 91 => Spg <= 229; when 124 => Spg <= 141; when 26 => Spg <= 204; when 59 => Spg <= 255; when 92 => Spg <= 227; when 125 => Spg <= 137; when 27 => Spg <= 207; when 60 => Spg <= 255; when 93 => Spg <= 225; when 126 => Spg <= 134; when 28 => Spg <= 209; when 61 => Spg <= 256; when 94 => Spg <= 223; when 127 => Spg <= 131; when 29 => Spg <= 212; when 62 => Spg <= 256; when 95 => Spg <= 221; when 128 => Spg <= 128; when 30 => Spg <= 214; when 63 => Spg <= 256; when 96 => Spg <= 219; when 129 => Spg <= 125; when 31 => Spg <= 216; when 64 => Spg <= 256; when 97 => Spg <= 216; when 130 => Spg <= 122; when 32 => Spg <= 219; when 65 => Spg <= 256; when 98 => Spg <= 214; when 131 => Spg <= 119; when 132 => Spg <= 115; when 162 => Spg <= 33; when 192 => Spg <= 0; when 222 => Spg <= 33; when 133 => Spg <= 112; when 163 => Spg <= 31; when 193 => Spg <= 0; when 223 => Spg <= 35; when 134 => Spg <= 109; when 164 => Spg <= 29; when 194 => Spg <= 0; when 224 => Spg <= 37; when 135 => Spg <= 106; when 165 => Spg <= 27; when 195 => Spg <= 0; when 225 => Spg <= 40; when 136 => Spg <= 103; when 166 => Spg <= 25; when 196 => Spg <= 1; when 226 => Spg <= 42; when 137 => Spg <= 100; when 167 => Spg <= 23; when 197 => Spg <= 1; when 227 => Spg <= 44; when 138 => Spg <= 97; when 168 => Spg <= 22; when 198 => Spg <= 1; when 228 => Spg <= 47; when 139 => Spg <= 94; when 169 => Spg <= 20; when 199 => Spg <= 2; when 229 => Spg <= 49; when 140 => Spg <= 91; when 170 => Spg <= 18; when 200 => Spg <= 2; when 230 => Spg <= 52; when 141 => Spg <= 88; when 171 => Spg <= 17; when 201 => Spg <= 3; when 231 => Spg <= 54; when 142 => Spg <= 85; when 172 => Spg <= 15; when 202 => Spg <= 4; when 232 => Spg <= 57; when 143 => Spg <= 82; when 173 => Spg <= 14; when 203 => Spg <= 5; when 233 => Spg <= 60; when 144 => Spg <= 79; when 174 => Spg <= 12; when 204 => Spg <= 6; when 234 => Spg <= 62; when 145 => Spg <= 76; when 175 => Spg <= 11; when 205 => Spg <= 6; when 235 => Spg <= 65; when 146 => Spg <= 73; when 176 => Spg <= 10; when 206 => Spg <= 7; when 236 => Spg <= 68; when 147 => Spg <= 70; when 177 => Spg <= 9; when 207 => Spg <= 9; when 237 => Spg <= 70; when 148 => Spg <= 68; when 178 => Spg <= 7; when 208 => Spg <= 10; when 238 => Spg <= 73; when 149 => Spg <= 65; when 179 => Spg <= 6; when 209 => Spg <= 11; when 239 => Spg <= 76; when 150 => Spg <= 62; when 180 => Spg <= 6; when 210 => Spg <= 12; when 240 => Spg <= 79; when 151 => Spg <= 60; when 181 => Spg <= 5; when 211 => Spg <= 14; when 241 => Spg <= 82; when 152 => Spg <= 57; when 182 => Spg <= 4; when 212 => Spg <= 15; when 242 => Spg <= 85; when 153 => Spg <= 54; when 183 => Spg <= 3; when 213 => Spg <= 17; when 243 => Spg <= 88; when 154 => Spg <= 52; when 184 => Spg <= 2; when 214 => Spg <= 18; when 244 => Spg <= 91; when 155 => Spg <= 49; when 185 => Spg <= 2; when 215 => Spg <= 20; when 245 => Spg <= 94; when 156 => Spg <= 47; when 186 => Spg <= 1; when 216 => Spg <= 22; when 246 => Spg <= 97; when 157 => Spg <= 44; when 187 => Spg <= 1; when 217 => Spg <= 23; when 247 => Spg <= 100; when 158 => Spg <= 42; when 188 => Spg <= 1; when 218 => Spg <= 25; when 248 => Spg <= 103; when 159 => Spg <= 40; when 189 => Spg <= 0; when 219 => Spg <= 27; when 249 => Spg <= 106; when 160 => Spg <= 37; when 190 => Spg <= 0; when 220 => Spg <= 29; when 250 => Spg <= 109; when 161 => Spg <= 35; when 191 => Spg <= 0; when 221 => Spg <= 31; when 251 => Spg <= 112; when 252 => Spg <= 115; when 253 => Spg <= 119; when 254 => Spg <= 122; when 255 => Spg <= 128; end case; end if; end process AUS_SN; end structure; ```
请问一下基于ArcEngine来建立三维模型,为什么显示不了呢
public static void Display3DEM(AxSceneControl sc, ILayer TIFFLayer, ILayer DEMLayer, double Z) { IRasterSurface rsurface = new RasterSurface(); //定义基面 ISurface surface; IRasterLayer DEMRasterLayer = DEMLayer as IRasterLayer; //接收基面 IRaster DEMraster = (IRaster)DEMRasterLayer.Raster; //基面rasterLayer转为RASTER IRasterBandCollection DEMrasterbands = DEMraster as IRasterBandCollection;//基面转为波段收集器 IRasterBand DEMrasterband = DEMrasterbands.Item(0);//获取第一个波段 rsurface.RasterBand = DEMrasterband;//获取的第一个波段写入到栅格基面波段中 surface = rsurface as ISurface;//栅格表面转换为基面 ILayerExtensions layerextensions = TIFFLayer as ILayerExtensions;//Provides access to the extensions of a layer I3DProperties properties = new Raster3DPropertiesClass(); int i; object p3d; for (i = 0; i < layerextensions.ExtensionCount; i++) { p3d = layerextensions.get_Extension(i); if (p3d != null) { properties = (I3DProperties)p3d; break; } } properties.BaseOption = esriBaseOption.esriBaseSurface; //esriBaseOption包括三种表达,形状,面 properties.BaseSurface = surface; //基面提供对功能表面的信息的访问,产生给定x,y位置的高度 properties.Apply3DProperties(TIFFLayer); //应用3D属性 properties.ZFactor = Z; //缩放因子 sc.Scene.SceneGraph.RefreshViewers(); }
这一段有什么问题?怎么改
``` <script type="text/javascript"> var timer $(document).ready(function () { timer = setInterval(AutoScroll, 500); $(".e_list_news").mouseover( function () { clearInterval(timer); }) .mouseout(function () { timer = setInterval(AutoScroll, 500); }); function AutoScroll() { $("#dem").find("ul:first").animate({ marginTop: "0px" }, 500, function () { $(this).css({ marginTop: "0px" }).find("li:first").appendTo(this); }); } }); </script> ```
最长公共子序列变
Description In a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, and this is not a trivial task for the countries (maybe except for Luxembourg). To enforce that Germany will fulfill the criteria, our government has so many wonderful options (raise taxes, sell stocks, revalue the gold reserves,...) that it is really hard to choose what to do. Therefore the German government requires a program for the following task: Two politicians each enter their proposal of what to do. The computer then outputs the longest common subsequence of words that occurs in both proposals. As you can see, this is a totally fair compromise (after all, a common sequence of words is something what both people have in mind). Your country needs this program, so your job is to write it for us. Input The input will contain several test cases. Each test case consists of two texts. Each text is given as a sequence of lower-case words, separated by whitespace, but with no punctuation. Words will be less than 30 characters long. Both texts will contain less than 100 words and will be terminated by a line containing a single '#'. Input is terminated by end of file. Output For each test case, print the longest common subsequence of words occuring in the two texts. If there is more than one such sequence, any one is acceptable. Separate the words by one blank. After the last word, output a newline character. Sample Input die einkommen der landwirte sind fuer die abgeordneten ein buch mit sieben siegeln um dem abzuhelfen muessen dringend alle subventionsgesetze verbessert werden # die steuern auf vermoegen und einkommen sollten nach meinung der abgeordneten nachdruecklich erhoben werden dazu muessen die kontrollbefugnisse der finanzbehoerden dringend verbessert werden # Sample Output die einkommen der abgeordneten muessen dringend verbessert werden
相见恨晚的超实用网站
相见恨晚的超实用网站 持续更新中。。。
字节跳动视频编解码面经
三四月份投了字节跳动的实习(图形图像岗位),然后hr打电话过来问了一下会不会opengl,c++,shador,当时只会一点c++,其他两个都不会,也就直接被拒了。 七月初内推了字节跳动的提前批,因为内推没有具体的岗位,hr又打电话问要不要考虑一下图形图像岗,我说实习投过这个岗位不合适,不会opengl和shador,然后hr就说秋招更看重基础。我当时想着能进去就不错了,管他哪个岗呢,就同意了面试...
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
python学习方法总结(内附python全套学习资料)
不要再问我python好不好学了 我之前做过半年少儿编程老师,一个小学四年级的小孩子都能在我的教学下独立完成python游戏,植物大战僵尸简单版,如果要肯花时间,接下来的网络开发也不是问题,人工智能也可以学个调包也没啥问题。。。。。所以python真的是想学就一定能学会的!!!! --------------------华丽的分割线-------------------------------- ...
python 简易微信实现(注册登录+数据库存储+聊天+GUI+文件传输)
socket+tkinter详解+简易微信实现 历经多天的努力,查阅了许多大佬的博客后终于实现了一个简易的微信O(∩_∩)O~~ 简易数据库的实现 使用pands+CSV实现数据库框架搭建 import socket import threading from pandas import * import pymysql import csv # 创建DataFrame对象 # 存储用户数据的表(...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小型人工智障。 知识可以运用在不同地方,不一定非是天气预报。
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
Python实例大全(基于Python3.7.4)
博客说明: 这是自己写的有关python语言的一篇综合博客。 只作为知识广度和编程技巧学习,不过于追究学习深度,点到即止、会用即可。 主要是基础语句,如三大控制语句(顺序、分支、循环),随机数的生成,数据类型的区分和使用; 也会涉及常用的算法和数据结构,以及面试题相关经验; 主体部分是针对python的数据挖掘和数据分析,主要先攻爬虫方向:正则表达式匹配,常用数据清洗办法,scrapy及其他爬虫框架,数据存储方式及其实现; 最后还会粗略涉及人工智能领域,玩转大数据与云计算、进行相关的预测和分析。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
JavaScript 为什么能活到现在?
作者 | 司徒正美 责编 |郭芮 出品 | CSDN(ID:CSDNnews) JavaScript能发展到现在的程度已经经历不少的坎坷,早产带来的某些缺陷是永久性的,因此浏览器才有禁用JavaScript的选项。甚至在jQuery时代有人问出这样的问题,jQuery与JavaScript哪个快?在Babel.js出来之前,发明一门全新的语言代码代替JavaScript...
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
Nginx 原理和架构
Nginx 是一个免费的,开源的,高性能的 HTTP 服务器和反向代理,以及 IMAP / POP3 代理服务器。Nginx 以其高性能,稳定性,丰富的功能,简单的配置和低资源消耗而闻名。 Nginx 的整体架构 Nginx 里有一个 master 进程和多个 worker 进程。master 进程并不处理网络请求,主要负责调度工作进程:加载配置、启动工作进程及非停升级。worker 进程负责处...
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
Python 编程开发 实用经验和技巧
Python是一门很灵活的语言,也有很多实用的方法,有时候实现一个功能可以用多种方法实现,我这里总结了一些常用的方法和技巧,包括小数保留指定位小数、判断变量的数据类型、类方法@classmethod、制表符中文对齐、遍历字典、datetime.timedelta的使用等,会持续更新......
吐血推荐珍藏的Visual Studio Code插件
作为一名Java工程师,由于工作需要,最近一个月一直在写NodeJS,这种经历可以说是一部辛酸史了。好在有神器Visual Studio Code陪伴,让我的这段经历没有更加困难。眼看这段经历要告一段落了,今天就来给大家分享一下我常用的一些VSC的插件。 VSC的插件安装方法很简单,只需要点击左侧最下方的插件栏选项,然后就可以搜索你想要的插件了。 下面我们进入正题 Material Theme ...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
相关热词 c#委托 逆变与协变 c#新建一个项目 c#获取dll文件路径 c#子窗体调用主窗体事件 c# 拷贝目录 c# 调用cef 网页填表c#源代码 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天
立即提问