Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

postgis

How to intelligently degrade or smooth GIS data (simplifying polygons)?

April 26, 2023 by Tarik

Douglas-Peucker is definitely the right approach. There are some simple ways to access implementations of it in PostGIS and QGIS that I thought I would add here for those who come across this post with a similar question. The goal is to start with something like this: and end up with something like this: In … Read more

Categories algorithm Tags algorithm, geometry, gis, postgis Leave a comment

GIS: PostGIS/PostgreSQL vs. MySql vs. SQL Server? [closed]

February 21, 2023 by Tarik

I have worked with all three databases and done migrations between them, so hopefully I can still add something to an old post. Ten years ago I was tasked with putting a largish — 450 million spatial objects — dataset from GML to a spatial database. I decided to try out MySQL and Postgis, at … Read more

Categories mysql Tags geocoding, gis, mysql, postgis, postgresql Leave a comment

Postgis installation: type “geometry” does not exist

December 16, 2022 by Tarik

I had the same problem, but it was fixed by running following code CREATE EXTENSION postgis; In detail, open pgAdmin select (click) your database click “SQL” icon on the bar run “CREATE EXTENSION postgis;” code

Categories postgresql Tags geometry, postgis, postgresql Leave a comment

Which data type for latitude and longitude?

November 27, 2022 by Tarik

You can use the data type point – combines (x,y) which can be your lat / long. Occupies 16 bytes: 2 float8 numbers internally. Or make it two columns of type float (= float8 or double precision). 8 bytes each. Or real (= float4) if additional precision is not needed. 4 bytes each. Or even … Read more

Categories postgresql Tags latitude-longitude, postgis, postgresql, types Leave a comment

Get PostGIS version

October 11, 2022 by Tarik

Since some of the functions depend on other libraries like GEOS and proj4 you might want to get their versions too. Then use: SELECT PostGIS_full_version();

Categories postgresql Tags postgis, postgresql Leave a comment
Newer posts
← Previous Page1 Page2

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa