๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ ๋ฉ”๋‰ด ๋ฐ”๋กœ๊ฐ€๊ธฐ

KITHUB ์ €์žฅ์†Œ๐Ÿ˜€

ํ”„๋กœํ•„์‚ฌ์ง„
  • ๊ธ€์“ฐ๊ธฐ
  • ๊ด€๋ฆฌ
  • ํƒœ๊ทธ
  • ๋ฐฉ๋ช…๋ก
  • RSS

KITHUB ์ €์žฅ์†Œ๐Ÿ˜€

๊ฒ€์ƒ‰ํ•˜๊ธฐ ํผ
  • ๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ (44)
    • โ†˜ Programming (15)
      • โ”— JAVA (4)
      • โ”— PYTHON (0)
      • โ”— JSON (0)
      • โ”— Node.js (1)
      • โ”— GIS (10)
    • โ†˜ Framework (3)
      • โ”— Spring (2)
      • โ”— Spring boot (1)
      • โ”— VueJS (0)
    • โ†˜ Linux (2)
      • โ”— Ubuntu (0)
      • โ”— Centos (2)
    • โ†˜ Database (2)
      • โ”— Mysql (2)
      • โ”— MariaDB (1)
      • โ”— Procedure (0)
    • โ†˜ Network (2)
    • โ†˜ IDE (2)
      • โ”— Eclipse (0)
      • โ”— Visual Studio Code (2)
      • โ”— IntelliJ (0)
    • โ†˜ Tools (4)
      • โ”— Docker (2)
    • โ†˜ VCS (0)
      • โ”— Github (0)
    • โ†˜ Algorithm (4)
    • โ†˜ K's Life (2)
      • โ”— ์™ธ๊ตญ์–ด (0)
      • โ”— ์ปคํ”ผ์ด์•ผ๊ธฐ (1)
    • โ†˜ IT world (0)
    • ์˜คํ”ˆAPI (0)
    • ํ”„๋กœ๊ทธ๋žจ by kim (0)
    • ๋ฒ„ํ‚ท๋ฆฌ์ŠคํŠธ (0)
    • To do study (0)
  • ๋ฐฉ๋ช…๋ก

โ†˜ Programming/โ”— GIS (10)
[ Openlayers ] ํ˜•์ƒ ํฌ๊ธฐ์— ๋งž๊ฒŒ ์ง€๋„ ์คŒ๋ ˆ๋ฒจ ๋งž์ถ”๊ธฐ ( ol6 ๊ธฐ์ค€ )

๊ฐœ๋ฐœ์„ ํ•˜๋ฉด์„œ ๋ ˆ์ด์–ด์˜ ํฌ๊ธฐ๊ฐ€ ๋‹ค๋ฅธ ๊ฒฝ์šฐ ์ง€๋„์˜ ์คŒ๋ ˆ๋ฒจ์„ ์ง์ ‘ ๋งž์ถฐ ์ฃผ์–ด์•ผ ํ•˜๋Š” ๋ฒˆ๊ฑฐ๋กœ์›€์„ ๊ฒช์—ˆ๋˜ ๊ฒฝํ—˜์ด ์ž‡์—ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ด์ œ fit ํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด ์ด๋Ÿฐ ๋ฌธ์ œ๋ฅผ ์กฐ๊ธˆ์€ ๋œ ์ˆ˜ ์žˆ๊ฒŒ ๋˜์—ˆ๋‹ค. ํ˜•์ƒ์„ ๋‹ด๊ณ  ์žˆ๋Š” ๋ ˆ์ด์–ด์˜ ๋ฐ”์šด๋”๋ฆฌ์™€ ์ง€๋„ ์‚ฌ์ด์ฆˆ๋ฅผ ํ†ตํ•ด ์ง€๋„ ์คŒ๋ ˆ๋ฒจ์„ ๋งž์ถœ ์ˆ˜ ์žˆ๋‹ค. map.getView().fit(vectorSource.getExtent(), map.getSize()); ๊ฒฐ๊ณผ

โ†˜ Programming/โ”— GIS 2023. 3. 22. 14:40
[ Openlayers ] geojson ๋ฐ์ดํ„ฐ ์ขŒํ‘œ๋ณ€ํ™˜ ํ•ด์„œ ๋ ˆ์ด์–ด ํ‘œ์ถœํ•˜๊ธฐ ( ol6 ๊ธฐ์ค€ )

์˜คํ”ˆ๋ ˆ์ด์–ด์Šค๋กœ ๊ฐœ๋ฐœ์‹œ ๋ฐฐ๊ฒฝ์ง€๋„์™€ ๋งž์ง€ ์•Š๋Š” ์ขŒํ‘œ๊ณ„์˜ ๋ฐ์ดํ„ฐ๋ฅผ ํ‘œ์ถœํ•ด์•ผํ•  ๊ฒฝ์šฐ ๊ฐ feature์˜ coordinates๋ฅผ ๋ณ€ํ™˜ํ•ด์ค˜์•ผํ•œ๋‹ค. ๊ทธ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ์†Œ์Šค๋Š” ์•„๋ž˜์™€ ๊ฐ™๋‹ค. ๋ฐฐ๊ฒฝ์ง€๋„ - EPSG:3857 ๋ฐ์ดํ„ฐ - EPSG:5179 // EPSG:5179 ์ขŒํ‘œ๊ณ„ ๋“ฑ๋ก proj4.defs("EPSG:5179", "+proj=tmerc +lat_0=38 +lon_0=127.5 +k=0.9996 +x_0=1000000 +y_0=2000000 +ellps=GRS80 +units=m +no_defs"); ol.proj.proj4.register(proj4); var vectorSource = new ol.source.Vector({ format: new ol.format.GeoJSON(), loader: func..

โ†˜ Programming/โ”— GIS 2023. 3. 21. 13:52
[ Openlayers ] geojson์œผ๋กœ ๋ ˆ์ด์–ด ํ‘œ์ถœํ•˜๊ธฐ( ol6 ๊ธฐ์ค€ )

geojson ํŒŒ์ผ์„ ์ฝ์–ด๋“ค์—ฌ ๋ฒกํ„ฐ๋ ˆ์ด์–ด๋กœ ์ƒ์„ฑํ•˜๊ณ  ํ‘œ์ถœํ•˜๋Š” ์ฝ”๋“œ ์ž…๋‹ˆ๋‹ค. ํ…Œ์ŠคํŠธ์šฉ ์„œ์šธ์‹œ ํ–‰์ •๊ตฌ์—ญ geojson ๋ฐ์ดํ„ฐ๋„ ํ•จ๊ป˜ ์˜ฌ๋ ค๋‘์—ˆ์Šต๋‹ˆ๋‹ค. var vectorSource = new ol.source.Vector({ url:"./geojson/seoulHD.geojson", //geojson ํŒŒ์ผ format: new ol.format.GeoJSON() }); var vectorLayer = new ol.layer.Vector({ source: vectorSource, style: new ol.style.Style({ // fill: new ol.style.Fill({ // color: "rgba(255,255,0,0.3)", // }), stroke: new ol.style.Stroke({ colo..

โ†˜ Programming/โ”— GIS 2023. 3. 21. 13:19
[ Openlayers ] ์˜คํ”ˆ๋ ˆ์ด์–ด์Šค์—์„œ ์ขŒํ‘œ๊ณ„ ๋ณ€ํ™˜์ด ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ( ol6 ๊ธฐ์ค€ )

๋‹ค์Œ์˜ ๊ฒฝ์šฐ๋Š” 5179์ขŒํ‘œ๊ณ„๋ฅผ ์‚ฌ์šฉํ•˜๋Š” geojson์„ ์ฝ์–ด๋“ค์—ฌ ์ขŒํ‘œ๊ณ„ ๋ณ€ํ™˜์„ ํ•˜๋Š” ๊ฒฝ์šฐ์ด๋‹ค. var vectorSource = new ol.source.Vector({ format: new ol.format.GeoJSON(), loader: function (extent) { const url = "./geojson/seoulHD.geojson";//5179 fetch(url) .then((response) => response.json()) .then((data) => { const features = vectorSource.getFormat().readFeatures(data); console.log("๋ณ€ํ™˜์ „ - ",features[0].getGeometry().getCoordinates()[0][..

โ†˜ Programming/โ”— GIS 2023. 3. 21. 11:19
[ GIS ] postgis data๋ฅผ shp์œผ๋กœ ๋‹ค์šด๋กœ๋“œ ํ•˜๊ธฐ(feat. geotools)

1. postgis ํ…Œ์ด๋ธ” 2. shp ๋‚ด๋ ค๋ฐ›๊ธฐ ์†Œ์Šค Map params = new HashMap(); params.put(PostgisNGJNDIDataStoreFactory.DBTYPE.key, "postgis"); params.put(PostgisNGJNDIDataStoreFactory.HOST.key, "์ ‘์† DB IP"); params.put(PostgisNGJNDIDataStoreFactory.PORT.key, Integer.valueOf(์ ‘์†DB ํฌํŠธ)); params.put(PostgisNGJNDIDataStoreFactory.SCHEMA.key, "์ ‘์† ์Šคํ‚ค๋งˆ๋ช…"); params.put(PostgisNGJNDIDataStoreFactory.DATABASE.key, "์ ‘์† ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ช…")..

โ†˜ Programming/โ”— GIS 2021. 7. 30. 20:31
[ GIS ] shp ๋ฐ์ดํ„ฐ์˜ ์ง€์˜ค๋ฉ”ํŠธ๋ฆฌ ์ขŒํ‘œ ์ˆœ์„œ ๋ณ€๊ฒฝํ•˜๊ธฐ ( feat. geotools )

geotools ๋กœ shp > postsql ์ž„ํฌํŠธ์‹œ ์ขŒํ‘œ ์ˆœ์„œ๋ฅผ ๋ณ€๊ฒฝํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ๋„ฃ์„ ์ˆ˜ ์žˆ๋‹ค. SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(); // ์ขŒํ‘œ x.y ์ˆœ์„œ ๋ณ€ํ™˜ Hints hints = new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.FALSE); CRSAuthorityFactory factory = ReferencingFactoryFinder.getCRSAuthorityFactory("EPSG", hints); CoordinateReferenceSystem AXIS_CRS = factory.createCoordinateReferenceSystem("EPSG:43..

โ†˜ Programming/โ”— GIS 2021. 7. 20. 16:13
[ OpenLayers ] ๋ ˆ์ด์–ด feature ๊ฐ’ ๊ฐ€์ ธ์˜ค๊ธฐ

map.forEachLayerAtPixel(evt.pixel, function (olayer) { map.getFeaturesAtPixel(evt.pixel) })

โ†˜ Programming/โ”— GIS 2020. 11. 4. 14:22
[ OpenLayers ] ํŠน์ • ๋ ˆ์ด์–ด ์‚ญ์ œํ•˜๊ธฐ

var selectpolygon_Layer = new ol.layer.VectorTile({ renderMode: 'image', style: fn_Style, TxIdentify : false, name:'layer_name', extent : [13871448.599455647, 3910161.980931684, 14680011.069810476, 4666950.827313901], source: new ol.source.VectorTile({ tilePixelRatio: 1, tileGrid: ol.tilegrid.createXYZ({ maxZoom: 19, tileSize: [256,256] }), format: new ol.format.MVT(), url: SeverURL+'/geoserver/..

โ†˜ Programming/โ”— GIS 2020. 11. 4. 11:47
์ด์ „ 1 2 ๋‹ค์Œ
์ด์ „ ๋‹ค์Œ

Blog is powered by Tistory / Designed by Tistory

ํ‹ฐ์Šคํ† ๋ฆฌํˆด๋ฐ”