환경영향평가

오픈API 활용
가이드라인

사업구역정보 서비스

사업구역정보 서비스 오퍼레이션

  • 사업구역정보조회

사업구역정보조회(WMS)

▣ 요청주소

URL : http://apis.data.go.kr/B090026/BsnsAreaService/getInfoWMS

▣ 요청변수
요청변수
항목명 설명 샘플데이터
srs 좌표체계 EPSG:32652
bbox 화면 지도영역의 크기(extent)를 정의하는 범위(boundingBox) 73297.40248257795,3506059.085416644,803828.180558938,4444265.837193642
width 반환 이미지의 너비(px) 1000
height 반환 이미지의 높이(px) 800
format 반환 이미지의 형식 png/jpeg/gif
transparent 반환 이미지의 투명여부 true/false
▣ 응답결과
응답결과
항목명 설명 샘플데이터
이미지
▣ 샘플코드

사업구역정보 WMS 조회

/* WMS Javascript 샘플 코드 */


var xhr = new XMLHttpRequest();
var url = 'http://apis.data.go.kr/B090026/BsnsAreaService/getInfoWMS'; 		/*URL*/
var queryParams = '?' + encodeURIComponent('ServiceKey') + '='+'서비스키'; 				/*Service Key*/
queryParams += '&' + encodeURIComponent('srs') + '=' + encodeURIComponent('좌표체계'); 	/*지도의 좌표체계*/
queryParams += '&' + encodeURIComponent('bbox') + '=' + encodeURIComponent('화면지도영역bbox'); 		/*화면상의지도영역 bbox*/
queryParams += '&' + encodeURIComponent('width') + '=' + encodeURIComponent('이미지width(px)'); 	/*이미지width(px)*/
queryParams += '&' + encodeURIComponent('height') + '=' + encodeURIComponent('이미지height(px)'); 	/*이미지height(px)*/
queryParams += '&' + encodeURIComponent('format') + '=' + encodeURIComponent('반환이미지format'); 	/*반환이미지format*/
queryParams += '&' + encodeURIComponent('transparent') + '=' + encodeURIComponent('반환이미지투명여부'); 	/*반환이미지투명여부*/
xhr.open('GET', url + queryParams);
xhr.onreadystatechange = function () {
    if (this.readyState == 4) {
        alert('Status: '+this.status+' Headers: '+JSON.stringify(this.getAllResponseHeaders())+' Body: '+this.responseText);
    }
};

xhr.send('');