• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            socketref,再見(jiàn)!高德

            https://github.com/adoggie

              C++博客 :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
              246 Posts :: 4 Stories :: 312 Comments :: 0 Trackbacks

            常用鏈接

            留言簿(54)

            我參與的團(tuán)隊(duì)

            搜索

            •  

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            #

            MapServer安裝之后并不具有WMS服務(wù)功能
            所有的配置圍繞著Mapfile進(jìn)行
            【http://mapserver.gis.umn.edu/docs/howto/wms_server】
            1.判別當(dāng)前MapServer是否支持WMS
            #>mapserv.exe -v
            MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
            看到以上內(nèi)容就ok了
            2.修改mapfile
            對(duì)于mapserver 5.0 的樣例數(shù)據(jù) workshop-50.zip
            添加:
            PROJECTION
            "init=epsg:4269"
            END
            "wms_onlineresource"  "http://192.168.14.65:8080/cgi-bin/mymap.exe?"
            httpd.conf 添加
            SetEnvIf Request_URI "/cgi-bin/mymap.exe" MS_MAPFILE=c:/gis/ms4w/Apache/htdocs/workshop-50/itasca.map
            路徑不能加""哦
            復(fù)制mapserve.exe 為mymap.exe
            3.重新啟動(dòng) httpd.exe
            4.測(cè)試:
            jump或者qgis測(cè)試,添加wms層 ,browser添加 http://192.168.14.65:8080/cgi-bin/mymap.exe?
            選擇一些layer就可以查看嘍


            posted @ 2008-07-02 02:12 放屁阿狗 閱讀(2600) | 評(píng)論 (0)編輯 收藏

            Mapserver的安裝介質(zhì)可從 http://mapserver.gis.umn.edu下載
            安裝也非常簡(jiǎn)單,選擇何時(shí)的服務(wù)http端口就可以了,這里我選擇了8080
            下載ms4w 5.0的App數(shù)據(jù) workshop-5.0.zip
            將其簡(jiǎn)單解壓縮到 $apache/htdocs下即可;創(chuàng)建$(apache)/tmp目錄
            修改worksop-5.0/index.html文件,將其中 IMAGEPATH,IMAGEURL 修改為workship-5.0的路徑即可

             // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP
                    var snippet = "IMAGEPATH 'C:/gis/ms4w/Apache/htdocs/tmp/'";
                    snippet += " IMAGEURL '/tmp/'";
              <!-- EDIT THESE HIDDEN VARIABLES -->
                  <input type="hidden" name="map" value="C:\gis\ms4w\Apache\htdocs\workshop-5.0\itasca.map">
                  <input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
                  <input type="hidden" name="root" value="/workshop-5.0">   

            來(lái)測(cè)試一下  http://127.0.0.1/workshop-5.0,即可看到itasca.map了

            好好研究一把mapserver,配置好wms/wfs server 看看用openlayers/Qgis的效果
            posted @ 2008-07-01 23:31 放屁阿狗 閱讀(688) | 評(píng)論 (0)編輯 收藏

            如題,今天google是愁到這個(gè)問(wèn)題
            flash確實(shí)現(xiàn)在無(wú)處不在,所以不存在是否要求client browser安裝已否,已經(jīng)成了標(biāo)配。
            目前沒(méi)有仔細(xì)研讀過(guò)openlayers的實(shí)現(xiàn)代碼,所以?xún)烧叩慕Y(jié)合會(huì)有哪些問(wèn)題目前尚不能給出區(qū)分,不過(guò)openlayers圖層的編輯Marker,確實(shí)是個(gè)頭疼的問(wèn)題,javascript再?gòu)?qiáng),實(shí)現(xiàn)的難度還是人盡共知的,所以flash確實(shí)個(gè)是補(bǔ)充的好方法
            花時(shí)間研究吧

            posted @ 2008-07-01 23:23 放屁阿狗 閱讀(680) | 評(píng)論 (0)編輯 收藏

            reference: http://netpbm.sourceforge.net/doc/ppm.html

            Each PPM image consists of the following:

            1. A "magic number" for identifying the file type. A ppm image's magic number is the two characters "P6".
            2. Whitespace (blanks, TABs, CRs, LFs).
            3. A width, formatted as ASCII characters in decimal.
            4. Whitespace.
            5. A height, again in ASCII decimal.
            6. Whitespace.
            7. The maximum color value (Maxval), again in ASCII decimal. Must be less than 65536 and more than zero.
            8. A single whitespace character (usually a newline).
            9. A raster of Height rows, in order from top to bottom. Each row consists of Width pixels, in order from left to right. Each pixel is a triplet of red, green, and blue samples, in that order. Each sample is represented in pure binary by either 1 or 2 bytes. If the Maxval is less than 256, it is 1 byte. Otherwise, it is 2 bytes. The most significant byte is first.

              A row of an image is horizontal. A column is vertical. The pixels in the image are square and contiguous.

            10. In the raster, the sample values are "nonlinear." They are proportional to the intensity of the ITU-R Recommendation BT.709 red, green, and blue in the pixel, adjusted by the BT.709 gamma transfer function. (That transfer function specifies a gamma number of 2.2 and has a linear section for small intensities). A value of Maxval for all three samples represents CIE D65 white and the most intense color in the color universe of which the image is part (the color universe is all the colors in all images to which this image might be compared).

              ITU-R Recommendation BT.709 is a renaming of the former CCIR Recommendation 709. When CCIR was absorbed into its parent organization, the ITU, ca. 2000, the standard was renamed. This document once referred to the standard as CIE Rec. 709, but it isn't clear now that CIE ever sponsored such a standard.

              Note that another popular color space is the newer sRGB. A common variation on PPM is to subsitute this color space for the one specified.

            11. Note that a common variation on the PPM format is to have the sample values be "linear," i.e. as specified above except without the gamma adjustment. pnmgamma takes such a PPM variant as input and produces a true PPM as output.
            12. Strings starting with "#" may be comments, the same as with PBM.


            posted @ 2008-06-24 21:11 放屁阿狗 閱讀(680) | 評(píng)論 (0)編輯 收藏

            string Char2Hex(char a)
            {
                string str = "";
                int n = a;
                for (int i=2*sizeof(char) - 1; i>=0; i--)
                {
                    str += "0123456789ABCDEF"[((n >> i*4) & 0xF)];
                }
                return str;
            }
            posted @ 2008-06-23 00:58 放屁阿狗 閱讀(3355) | 評(píng)論 (1)編輯 收藏

            創(chuàng)建svn 根目錄
            mkdir d:\snv-root
            創(chuàng)建一個(gè)倉(cāng)庫(kù)
            mkdir c:\svn-root\carkit
            啟動(dòng)snv服務(wù)
            svnserve -d -r c:\snv-root\carkit
            同時(shí)啟動(dòng)多個(gè)倉(cāng)庫(kù)用監(jiān)聽(tīng)服務(wù)端口號(hào)來(lái)區(qū)別
            svnserve -d -r c:\snv-root\navi --listen-port 3691

            修改認(rèn)證密碼
            修改 carkit/conf/svnserve.conf 的 password-db = passwd
            修改passwd文件,添加用戶(hù)名稱(chēng)和帳號(hào)

            客戶(hù)端導(dǎo)入目錄
            svn import project1 svn://192.168.14.65 -m "test message"
            posted @ 2008-06-20 13:39 放屁阿狗 閱讀(197) | 評(píng)論 (0)編輯 收藏

            為了找些crack的工具,沒(méi)辦法下載了很多crackxxx的東西,后悔沒(méi)有在虛擬機(jī)里面試驗(yàn)一下,直接在我的開(kāi)發(fā)機(jī)上運(yùn)行,導(dǎo)致木馬,病毒滿天飛。
            只能手工清除了,到最后nnd碰到最后一個(gè)問(wèn)題,每次點(diǎn)擊文件夾,都會(huì)彈出所謂"發(fā)現(xiàn)間諜軟件,請(qǐng)下載antispyware",并請(qǐng)求連接網(wǎng)絡(luò)。
            煩都煩死了,也沒(méi)找到他在registy的位置,干不掉,看著也煩,只能寫(xiě)個(gè)程序,定時(shí)檢測(cè)是否其窗體開(kāi)啟,并關(guān)閉它

            while(1){
                HWND hwnd = FindWindow(NULL,"System Error!");
                //::EnableWindow(hwnd,1);
                ::SendMessage(hwnd,WM_SYSCOMMAND,SC_CLOSE,0);
                Sleep(200);
               }


            posted @ 2008-06-11 23:00 放屁阿狗 閱讀(221) | 評(píng)論 (1)編輯 收藏

             macromedia flash player 6/7 (flash.dll) for ppc 如何移植到 wince5.0平臺(tái)?????
            能通過(guò)ie顯示swf內(nèi)容,并可以用com方式操作flash.dll
            msn: socketref@hotmail.com

            posted @ 2008-06-09 20:51 放屁阿狗 閱讀(1546) | 評(píng)論 (0)編輯 收藏

            學(xué)習(xí)opengl es的目的是為了實(shí)現(xiàn) cegui 項(xiàng)目中的 opengl render
            ...

            posted @ 2008-05-17 00:13 放屁阿狗 閱讀(986) | 評(píng)論 (0)編輯 收藏


            table 是個(gè)怪物,有很多facets,類(lèi)似array,map,struct,整個(gè)是個(gè)混合物,用起來(lái)也比較怪異。
            t={1,2,3,a="gen",b=100}
            t={[0]=1;["name"]="ultra"}
            t.a, t.b , t[0] , t["name"]

            表操作函數(shù):
            ipairs,pairs迭代函數(shù)
            table.getn(t)   len of table

            ================================================================
            function() 可以接受任意多的參數(shù),如果實(shí)參數(shù)過(guò)多將丟棄,過(guò)少將默認(rèn)設(shè)置為nil
            同樣可以返回多個(gè)參數(shù)
            a,b=foo()

            表作為參數(shù)傳遞到function
            function rename( arg ) os.rename(arg.old,arg.new) end
            rename{old="";new=""}

            匿名函數(shù)(lambda in python )
            foo = function(x) return x*2 end
            局部函數(shù) local f=function(x) ... end
            ================================================================
            for n=start,end,step do ... end
            while b do   ... end
            repeat do .... until

            if then .. elseif then ...  end;

            有意思的語(yǔ)法表達(dá)式:
                print a or b or c   如果a=false,嘗試b...

            注釋: --     --{ --} 


            字符串操作:    .. 連接

            ==================================================
            io 函數(shù):
            loadfile('test.lua')()    execute external lua script
            loadstring('print 100')()


            代碼測(cè)試:
            =======================
            c程序調(diào)用lua函數(shù)
            c 程序:
            void call_lua_func(){
                lua_State *s = lua_open();
                luaL_openlibs(s);
                int c = lua_gettop(s);
                luaL_dofile(s,"/nandflashpartition/test1.lua");
                lua_getglobal(s,"add");
                lua_pushnumber(s,0.25);
                lua_pushnumber(s,8);
                if( lua_pcall(s,2,1,0)){
                    std::cout<< lua_tostring(s,-1)<<std::endl;
                }
                double r;
                r = lua_tonumber(s,-1);
                lua_close(s);
            }
            lua程序:
            function add(x,y)
                return x*y
            end
            --------------------------------
            lua訪問(wèn)c程序空間變量

            1.定義變量student.h
            extern char * gender;
            extern int class_count;

            2.創(chuàng)建pkg文件 student.pkg
            $#include "student.h"
            extern char * gender;
            extern int class_count;

            3.產(chǎn)生tolua++存根框架
            tolua++ -o student.pkg

            4.創(chuàng)建lua測(cè)試代碼 call_c.lua
            print(gender)
            print(class_count)  訪問(wèn)c 空間的變量

            5.c測(cè)試代碼
            char * gender;
            int class_count;
            void lua_call_c(){
                int  tolua_student_open (lua_State* tolua_S);
                lua_State * s = lua_open();
                luaopen_base(s);

                gender ="my gender is male!";
                class_count = 100;
                tolua_student_open(s);
                luaL_dofile(s,"/nandflashpartition/call_c.lua");
                lua_close(s);
            }

            6.build && test it!



            posted @ 2008-05-13 03:13 放屁阿狗 閱讀(635) | 評(píng)論 (0)編輯 收藏

            僅列出標(biāo)題
            共25頁(yè): First 16 17 18 19 20 21 22 23 24 Last 
            欧美午夜精品久久久久免费视 | 亚洲欧美成人综合久久久| 久久久久综合国产欧美一区二区| 国产精品99久久不卡| 久久精品国产国产精品四凭 | 日韩影院久久| 久久丫忘忧草产品| 久久夜色tv网站| 久久人人妻人人爽人人爽| 日日躁夜夜躁狠狠久久AV| 国产精品久久久久久福利漫画| 久久久久国产精品| 中文字幕久久亚洲一区| 国内精品久久久久伊人av| 国产精品永久久久久久久久久| 性欧美大战久久久久久久| 国内精品伊人久久久久av一坑| 久久亚洲精品无码观看不卡| 日产精品99久久久久久| 久久精品免费大片国产大片| 久久综合狠狠综合久久综合88| 久久久中文字幕日本| 久久精品99久久香蕉国产色戒| 久久综合精品国产一区二区三区| 国产精品美女久久久久| 久久综合色老色| 日本精品久久久久影院日本| 国产午夜精品理论片久久影视| 中文字幕热久久久久久久| 日日狠狠久久偷偷色综合0| 久久精品国产亚洲网站| 久久精品a亚洲国产v高清不卡| 久久天天躁狠狠躁夜夜不卡| 久久一区二区三区免费| 久久久久中文字幕| 日本精品久久久久中文字幕8| 久久精品麻豆日日躁夜夜躁| 少妇高潮惨叫久久久久久| 99久久精品免费看国产一区二区三区 | 一本色道久久99一综合| 久久久久亚洲精品日久生情|