일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 데이터비교
- table
- 와콤뱀부슬레이트
- idw
- PostgreSQL
- table비교
- 테이블목록
- posgtresql
- rc.local
- 테이블리턴
- pygqis
- HP스펙터x360
- Python
- shp내려받기
- 중복조회
- postgis
- Openlayers
- HP스펙터
- ST_InvDistWeight4ma
- 순댓국밥
- 차집합
- postgrest
- posgresql
- SQL
- 공주페이
- 테이블 중복조회
- qgis
- psql
- 네이버클라우드
- shape내려받기
- Today
- Total
목록오픈소스 (23)
오픈소스의 일상
expr = QgsExpression(expression_string) for vlayer in QgsProject.instance().mapLayersByName('레이어명'): features = vlayer.getFeatures(QgsFeatureRequest(expr)) for feature in features: fid = feature.id() 조금만 응용하면 다양한 방식으로 활용이 가능합니다.
file_path = "내려받는shape 파일명.shp" encoding = "windows-949" crs = QgsCoordinateReferenceSystem('EPSG:5179') format = "ESRI Shapefile" for layer in QgsProject.instance().mapLayers().values(): if layer.type() == QgsMapLayer.VectorLayer: if layer.name() == "원하는레이어명": writer = QgsVectorFileWriter.writeAsVectorFormat(layer,file_path,encoding,layer.crs(),format) 조금만 응용하면 원하는 코드가 되지 않을까 합니다.
array_list 에 필요한 값들을 담아둘때가 많다. 데이터량이 많을때 종종 중복된 값이 들어갈 경우가 많기에 중복제거는 필수가 된다. dict.fromkeys(array_list) 직접해보면 답이 나옵니다 ㅎ https://www.w3schools.com/python/ref_dictionary_fromkeys.asp
즉. 세션을 물고 있어서 세션을 끊어야 한다. postgres=# select pg_terminate_backend(pid) postgres-# from pg_stat_activity postgres-# where datname = 'OOOOOO'; pg_terminate_backend ---------------------- t (1개 행) 그리고 데이터베이스를 삭제하면 잘 삭제된다. ㅎ
~ ! @ # $ % ^ & * \ " ' + = ` | ( ) [ ] { } : ; - _ - # & & @ § ※ ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲ ▽ ▼ → ← ← ↑ ↓ ↔ 〓 ◁ ◀ ▷ ▶ ♤ ♠ ♡ ♥ ♧ ♣ ⊙ ◈ ▣ ◐ ◑ ▒ ▤ ▥ ▨ ▧ ▦ ▩ ♨ ☏ ☎ ☜ ☞ ¶ † ‡ ↕ ↗ ↙ ↖ ↘ ♭ ♩ ♪ ♬ ㉿ ㈜ № ㏇ ™ ㏂ ㏘ ℡ ® ª º ─ │ ┌ ┐ ┘ └ ├ ┬ ┤ ┴ ┼ ━ ┃ ┏ ┓ ┛ ┗ ┣ ┳ ┫ ┻ ╋ ┠ ┯ ┨ ┷ ┿ ┝ ┰ ┥ ┸ ╂ ┒ $ % ₩ F ′ ″ ℃ Å ¢ £ ¥ ¤ ℉ ‰ € ㎕ ㎖ ㎗ ℓ ㎘ ㏄ ㎣ ㎤ ㎥ ㎦ ㎙ ㎚ ㎛ ㎜ ㎝ ㎞ ㎟ ㎠ ㎡ ㎢ ㏊ ㎍ ㎎ ㎏ ㏏ ㎈ ㎉ ㏈ ㎧ ㎨ ㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎀ ㎁ ㎂ ㎃ ㎄ ㎺ ㎻ ㎼ ..
SELECT * FROM pg_catalog.pg_tables WHERE schemaname = '스키마' AND tableowner = '사용자' AND tablename = '테이블명'
한국에서는 OpenLayers를 가장 많이 사용한다. 아래와 같이 다양한 버전이 있지만 v5.3.0 released 2018-11-06 v4.6.5 released 2018-03-20 v3.20.1 released 2016-12-12 v2.13.1 released 2013-07 그래도 여기선 최신버전인 v6.12.0 을 설명하자고 한다. https://github.com/openlayers/openlayers/releases/ Releases · openlayers/openlayers OpenLayers. Contribute to openlayers/openlayers development by creating an account on GitHub. github.com https://github.com/..
SQL로 공간데이터를 관리하고 있는분들만 보세요 PostGIS 2.X 사용하고 있다면 하루빨리 PostGIS 3.1.X 으로 업그레이드 시키세요. https://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS UsersWikiPostgreSQLPostGIS – PostGIS Current best As of 03 September 4th, 2021 these versions are latest and give you best stable feature coverage. PostGIS Support Matrix Versions of PostgreSQL supported by which versions of PostGIS PostgreSQL versionPo..
CREATE OR REPLACE FUNCTION [스키마].[Function명] ( [변수] varchar ) RETURNS TABLE ( ex_string text, ex_area numeric) AS $BODY$ DECLARE -- 변수 선언구문 추가 BEGIN -- 로직 추가 RETURN query EXECUTE 'SELECT ex_string as ex_string, ex_area as ex_area FROM [테이블명]'; END $BODY$ LANGUAGE plpgsql VOLATILE COST 100 Function 리턴값을 Table 주의할 점 Function을 활용하여 쿼리 결과값을 테이블구조로 받을 싶을때는 꼭 리턴조건에 RETURNS TABLE ( ex_string text, ex_a..
1. 설치 참고 : https://postgrest.org/en/stable/tutorials/tut0.html#step-3-install-postgrest Tutorial 0 - Get it Running — PostgREST 9.0.0 documentation Welcome to PostgREST! In this pre-tutorial we’re going to get things running so you can create your first simple API. PostgREST is a standalone web server which turns a PostgreSQL database into a RESTful API. It serves an API that is customized based..