Coder Social home page Coder Social logo

giswqs / postgis Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 32.0 13.48 MB

Spatial Data Management with PostgreSQL and PostGIS https://gishub.org/sdm

Home Page: https://postgis.gishub.org

License: MIT License

Jupyter Notebook 96.50% Shell 0.05% TeX 3.45%
postgis postgresql postgres geospatial database data-science

postgis's Introduction

postgis

Binder

Spatial Data Management with PostgreSQL and PostGIS https://gishub.org/sdm

Sample Datasets

Useful Resources

SQL Tutorial

Change column type

ALTER TABLE cities
ALTER COLUMN population TYPE INT
USING population::integer

SQL queries for non-spatial data

The examples below use the sample dataset - cities.csv

  • SELECT * FROM cities
  • SELECT * FROM cities LIMIT 10
  • SELECT name, country FROM cities
  • SELECT DISTINCT country FROM cities
  • SELECT COUNT(DISTINCT country) FROM cities
  • SELECT MAX(population) FROM cities
  • SELECT SUM(population) FROM cities
  • SELECT AVG(population) FROM cities
  • SELECT * FROM cities ORDER BY country
  • SELECT * FROM cities ORDER BY country ASC, population DESC
  • SELECT * FROM cities WHERE country='USA'
  • SELECT * FROM cities WHERE country='USA' OR country='CAN'
  • SELECT * FROM cities WHERE country='USA' AND population>1000000
  • SELECT * FROM cities WHERE country LIKE 'U%'
  • SELECT * FROM cities WHERE country LIKE '%A'
  • SELECT * FROM cities WHERE country LIKE '_S_'
  • SELECT * FROM cities WHERE country IN ('USA', 'CAN', 'CHN')
  • SELECT * FROM cities WHERE population BETWEEN 1000000 AND 10000000

postgis's People

Contributors

giswqs avatar sachinbhatttech avatar

Stargazers

 avatar No name avatar Graeme Woodsworth avatar Noeli  avatar PavlosDem avatar  avatar  avatar Miguel avatar Youssef Bakr avatar HuangXiaofeng avatar  avatar Apu avatar Bjarni Freyr avatar  avatar  avatar Maxine Lai avatar KaixuanDai avatar Mou Lai avatar Liao Spacefan avatar Kratik avatar jacob avatar  avatar N A Farinha avatar Abdul Mateen avatar  avatar Allison avatar oyoyogg avatar  avatar  avatar Rene Tellez Rodriguez avatar Mohsen Kalantari avatar LinglongQian avatar Kelsey Brinton avatar O'Maiye Tomi avatar Necip Enes Gengeç avatar Mukesh Rao avatar Pedro Pablo Silva Antilef avatar Ary Vinicius N. Frigeri avatar Satyam Suman avatar Naheem Adebisi avatar

Watchers

James Cloos avatar  avatar  avatar

postgis's Issues

Unable to connect to postgres through python

Hi Dr. Qiusheng Wu
I am not able to connect to postgres through python.

I am getting following error while connecting

(psycopg2.OperationalError) could not translate host name "2712@localhost" to address: Unknown server error

(Background on this error at: https://sqlalche.me/e/14/e3q8)
Connection info needed in SQLAlchemy format, example:
postgresql://username:password@hostname/dbname
or an existing connection: dict_keys([])

Raster data in postgis

Hi Dr. Qiusheng Wu

I am working on satellite imagery. I want to save satellite imagery in postgis and upload it map. I am getting problem in making a table from Geotiff file. I want to send a query on geotiff file so that I could select the particular region of interest.

Please help to upload Geotiff file in postgres/postgis

I have made an application using Google earth engine.

https://sabudh.users.earthengine.app/view/myfarm2.

I want to make this type of application using Ipyleaflet and Postgres/postgis.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.