본문 바로가기

develop

OpenLayers function //WMS 레이어 업데이트 //geoserver에서 sql view 로 생성한 레이어는 parameter로 조건을 줄 수 있다.//parameter : viewparamsOpenLayers.Layer.WMS.prototype.updateLayers = function(layers,data) {console.log("updateLayers : " +layers,data);this.mergeNewParams({'LAYERS' : layers});this.mergeNewParams({viewparams : data});if(layers.length > 0) {this.setVisibility(true);} else {this.setVisibility(false);}}; //레이어 생성 시 속성값 부여 하는 스.. 더보기
POST GIS VIEW 1. POSTGIS extensions - CREATE EXTENSION postgis;2. shp 파일 import 3. postGIS 좌표계 추가- 서부원점(GRS80)-EPSG:5185 INSERT INTO spatial_ref_sys(srid, auth_name, auth_srid, srtext, proj4text) VALUES (5185, 'EPSG', 5185, 'PROJCS["ITRF_2000_TM_Korea_West_Belt", GEOGCS["GCS_ITRF_2000", DATUM["D_ITRF_2000", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.017453292519943.. 더보기
ssl keystore SSL, tomcat and self signed certificatesI have been through the process of getting an application to work via https before but I have always muddled through and never documented exactly what I have done. I must also admit that I never quite understood exactly what I had done and why. One problem is that I can not find one place that covers everything you need in one place. Now I think I am prett.. 더보기
Configuring SSL for Tomcat 7 on Windows There are dozens of guides for getting SSL working on Tomcat, but I never find one that quite fits the bill, so here’s my super-short guide to configuring Tomcat 7 (7.0.37) on Windows to serve SSL-encrypted requests for testing purposes only.1. Install & Setup OpenSSLYou need OpenSSL to generate a certificate and a server key. You can download a binary release of OpenSSL from here: http://slprow.. 더보기
openSSL 을 이용한 zeus webserver 설정 참고사이트 : http://blog.naver.com/PostView.nhn?blogId=satang50&logNo=127332595서버인증서 SSL구축은 첨부파일 행정전자서명_SSL_구축가이드Ver3_201006.pdf 참조 I. 유닉스 1. 인증기관 생성 다음 두가지 중에서 한가지 선택하여 실행(1 또는 2 둘중에서.)1) CA -newca 2) webtob/ssl 디렉토리에서 다음 순서되로 실행 mkdir demoCA mkdir demoCA/private echo '01' > demoCA/serial touch demoCA/index.txt mkdir demoCA/newcerts openssl req -config wbssl.cnf -new -x509 -keyout demoCA/private/cak.. 더보기
dojo를 이용한 vworld map 띄우기 Just an example 더보기
지도위에 구글차트 띄우기 더보기
JS 생성자?? 프로토 타입??? The Constructor PatternConstructor – 생성자 – 는 특별한 타입의 객체를 생성하는데 사용됩니다. 자바스크립트에서는 함수가 생성자의 역할을 할 수 있습니다. 그래서 객체를 생성하는데 사용되는 함수를 생성자 함수 – Constructor function – 이라고 합니다. 생성자 함수는 매개변수를 설정할 수 있고, 그것을 생성자 함수를 통해 생성될 객체의 프로퍼티들에 초기값을 주는데 사용할 수 있습니다.Basic Constructors자바스크립트에서 생성자 함수를 사용하는 방법은 인스턴스를 만드는 타당한 방법이라고 생각됩니다. 자바스크립트에는 다른 객체지향 언어에서 사용하는 클래스가 없지만 생성자 함수가 그와 유사한 역할을 할 수 있습니다. new 키워드와 함께 생성자 함수를 실.. 더보기