
{"id":4474,"date":"2023-09-20T08:23:51","date_gmt":"2023-09-20T08:23:51","guid":{"rendered":"https:\/\/test.opensource-db.in\/wp1\/?p=4474"},"modified":"2023-09-20T10:45:28","modified_gmt":"2023-09-20T10:45:28","slug":"postgres-beyond-basics-exploring-postgis","status":"publish","type":"post","link":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/","title":{"rendered":"Postgres beyond basics : Exploring PostGIS"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><strong>Introduction:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PostGIS is a popular extension for PostgreSQL that adds support for geographic and spatial data types and functions, allowing you to work with location-based data in your database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PostGIS extends PostgreSQL by introducing new data types and functions for storing, querying, and analyzing spatial data, such as points, lines, polygons, and more complex geometries.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Installation of PostGIS:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We can download and install from the source code using the below URL:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/postgis.net\/development\/source_code\/\">https:\/\/postgis.net\/development\/source_code\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To compile assuming you have all the dependencies in your search path:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -xvfz postgis-3.3.5dev.tar.gz\ncd postgis-3.3.5dev\n.\/configure\nmake\nmake install<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Login to psql and we can check if the postgis are available in the pg_available_extensions view<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" width=\"624\" height=\"71\" src=\"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9\"><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>osdb=# create extension postgis ;\nCREATE EXTENSION<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" width=\"284\" height=\"38\" src=\"https:\/\/lh6.googleusercontent.com\/TNjTszsohOxD__pujxjATlIsdULGXq0CWqwdcwgtWW_WUTErP5Ui6Kxf8Cdse5B1K6KCFqOI9oLlYSYdQdardm97G1I3JlCUZSXg8cK2ZDQtDMl3cSa3PQFac056uwK77kytCWUdDUre4cJf6Ww224ApPEMdYgVq\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We can check postgis in installed extensions<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img fetchpriority=\"high\" decoding=\"async\" width=\"624\" height=\"101\" src=\"https:\/\/lh3.googleusercontent.com\/P_BHoZCJ31tk0tHCtGcYmOkj1dPQr80q3qnktqBishybTPLA7D9T3aPqFA3zDUHd_G3q4sHbRXhsI0QhU2T_zgrwsvwqBk_FDaYLtiY76928KzivWLgj6tsy5Dz1_DB8FFbaHlFwpiWG1ftmmYdbb2oflkV3CWpW\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And we need to install some of the dependent postgis extensions as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>osdb=# create extension postgis_raster ;\nosdb=# create extension postgis_sfcgal ;\nosdb=# create extension fuzzystrmatch; --needed for postgis_tiger_geocoder \nosdb=# create extension postgis_tiger_geocoder;\nosdb=# create extension postgis_topology;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"146\" src=\"https:\/\/lh5.googleusercontent.com\/9UdJd5OQOONHjxNamBIE_EAnVaziNC20QNmuFk1hCUG1sN5qSPEGtvm_m_IR4ZISNswyrrE3lgGR14NoL3yYCnT3GX1_IsWif_Jh2PIyEtPXF7znSrXFccbsQ4DC-F4McZUmzSEu6qxxPg32ThbBGvD_MGMD4YXc\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Here is an example of how to use the PostGIS extension:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now, let&#8217;s create a table to store geographic data. We&#8217;ll create a simple table to store points representing cities:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE cities (\n  id serial PRIMARY KEY,\n  name varchar(100),\n  location geography(Point, 4326)\n);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"276\" height=\"102\" src=\"https:\/\/lh6.googleusercontent.com\/sIJUOCfR5sGVu4Hxavg1YlJKptUqroK4N2F9DVfsRbooQEkHFpnySWMTQpwHS7R_vU-87qnEheGTJLobMZc2wP_ZfR4RYLrUbnR71oj3Afdtagnxxcl_LRtwtkQepJZ4YatO2H-6TJUW3dlco-E1ULFUlWYLKc-7\" alt=\"C:\\Users\\lenovo\\Desktop\\postgis_create_table.png\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">In this table:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><em>id is an auto-incrementing primary key.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>name is the name of the city.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>location is a geography column that stores point coordinates in the WGS 84 (EPSG:4326) coordinate system.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We can insert some sample data into the cities table, including the geographic coordinates of cities.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>INSERT INTO cities (name, location) VALUES\n  ('New York', ST_GeogFromText('POINT(-74.006, 40.7128)')),\n  ('Los Angeles', ST_GeogFromText('POINT(-118.2437, 34.0522)')),\n  ('Chicago', ST_GeogFromText('POINT(-87.6298, 41.8781)'));\n  ('Middletown', ST_GeogFromText('POINT(-56.006 38.7128)'));<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"147\" src=\"https:\/\/lh4.googleusercontent.com\/8LaIGC9cx_7Gf6NDmbRNRkvtoxesNvhC0YTw0iFDmT9fzvFkwpNgDNkjcbZjvYibM-65ODtDJIS0BhyX5PveNuVOvWUzy6wftzQa5yGzjJ2R2d1DcK6vEg5VQB2P0UxicVlhUnGWoRE-UrnUxNNX3lU\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can perform various spatial queries on your data. For example, to find cities within a certain distance of a point, you can use the ST_DWithin function:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>osdb=# SELECT name FROM cities \nWHERE ST_DWithin(ST_SetSRID(location, 4326)::geography, \n                 ST_GeomFromText('POINT(-56.006 38.7128)',4326)::geography, \n                 1600000 -\u2013distance in meters);<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>   name    \n------------\n New York\n Middletown\n(2 rows)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This query will return the names of cities within 1600 kilometers of Middletown City.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/yPYAWkX8ruW4SXIiPiDDVLAdTromHRmvqoQzJ6peIp3jnGiy_egx0XLj_U12-MjfdhgtZKFfLCnNgG6FH6rwsZmjL8H5pjqErW8ZjWggHpfzFqlvenV_4J_AnAFS10lp70y0GG2kuWwaceyE7He8qOA\" width=\"624\" height=\"159\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusion:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s a basic example of how to use the PostGIS extension in PostgreSQL to work with geographic data. PostGIS provides a wide range of functions for more advanced spatial analysis and manipulation of geographic data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PostGIS is an open-source and flexible extension that adds spatial capabilities to PostgreSQL, making it a robust choice for applications that involve geographic and spatial data. It&#8217;s widely used in various domains, including urban planning, environmental science, transportation, and location-based services.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: PostGIS is a popular extension for PostgreSQL that adds support for geographic and spatial data types and functions, allowing [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[23,42],"tags":[],"class_list":["post-4474","post","type-post","status-publish","format-standard","hentry","category-postgresql-14","category-postgresql-15"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Postgres beyond basics : Exploring PostGIS - OpenSource DB<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Postgres beyond basics : Exploring PostGIS - OpenSource DB\" \/>\n<meta property=\"og:description\" content=\"Introduction: PostGIS is a popular extension for PostgreSQL that adds support for geographic and spatial data types and functions, allowing [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/\" \/>\n<meta property=\"og:site_name\" content=\"OpenSource DB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-20T08:23:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-20T10:45:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9\" \/>\n<meta name=\"author\" content=\"Venkat Akhil\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@opensource_db\" \/>\n<meta name=\"twitter:site\" content=\"@opensource_db\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Venkat Akhil\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/\"},\"author\":{\"name\":\"Venkat Akhil\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/a37b142ecbf953189a4f9209b0b8d328\"},\"headline\":\"Postgres beyond basics : Exploring PostGIS\",\"datePublished\":\"2023-09-20T08:23:51+00:00\",\"dateModified\":\"2023-09-20T10:45:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/\"},\"wordCount\":332,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9\",\"articleSection\":[\"PostgreSQL 14\",\"PostgreSQL 15\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/\",\"name\":\"Postgres beyond basics : Exploring PostGIS - OpenSource DB\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9\",\"datePublished\":\"2023-09-20T08:23:51+00:00\",\"dateModified\":\"2023-09-20T10:45:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#primaryimage\",\"url\":\"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9\",\"contentUrl\":\"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.opensource-db.in\/wp1\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Postgres beyond basics : Exploring PostGIS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#website\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/\",\"name\":\"OpenSource DB\",\"description\":\"Your Trusted OpenSource Databases partner\",\"publisher\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.opensource-db.in\/wp1\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\",\"name\":\"OPENSOURCE DB PRIVATE LIMITED\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png\",\"contentUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png\",\"width\":368,\"height\":120,\"caption\":\"OPENSOURCE DB PRIVATE LIMITED\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/\",\"https:\/\/x.com\/opensource_db\",\"https:\/\/www.youtube.com\/channel\/UCmTI5h\",\"https:\/\/www.linkedin.com\/company\/opensource-db\",\"https:\/\/www.instagram.com\/opensource_db\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/a37b142ecbf953189a4f9209b0b8d328\",\"name\":\"Venkat Akhil\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/522c0947d21b2c2c89f10698fd9131f9db4110f65c8d02b53d9b4559c7650865?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/522c0947d21b2c2c89f10698fd9131f9db4110f65c8d02b53d9b4559c7650865?s=96&d=mm&r=g\",\"caption\":\"Venkat Akhil\"},\"url\":\"https:\/\/test.opensource-db.in\/wp1\/author\/sudheer-sopensource-db-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Postgres beyond basics : Exploring PostGIS - OpenSource DB","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Postgres beyond basics : Exploring PostGIS - OpenSource DB","og_description":"Introduction: PostGIS is a popular extension for PostgreSQL that adds support for geographic and spatial data types and functions, allowing [&hellip;]","og_url":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/","og_site_name":"OpenSource DB","article_publisher":"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/","article_published_time":"2023-09-20T08:23:51+00:00","article_modified_time":"2023-09-20T10:45:28+00:00","og_image":[{"url":"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9","type":"","width":"","height":""}],"author":"Venkat Akhil","twitter_card":"summary_large_image","twitter_creator":"@opensource_db","twitter_site":"@opensource_db","twitter_misc":{"Written by":"Venkat Akhil","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#article","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/"},"author":{"name":"Venkat Akhil","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/a37b142ecbf953189a4f9209b0b8d328"},"headline":"Postgres beyond basics : Exploring PostGIS","datePublished":"2023-09-20T08:23:51+00:00","dateModified":"2023-09-20T10:45:28+00:00","mainEntityOfPage":{"@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/"},"wordCount":332,"commentCount":0,"publisher":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#organization"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#primaryimage"},"thumbnailUrl":"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9","articleSection":["PostgreSQL 14","PostgreSQL 15"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/","url":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/","name":"Postgres beyond basics : Exploring PostGIS - OpenSource DB","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#website"},"primaryImageOfPage":{"@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#primaryimage"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#primaryimage"},"thumbnailUrl":"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9","datePublished":"2023-09-20T08:23:51+00:00","dateModified":"2023-09-20T10:45:28+00:00","breadcrumb":{"@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#primaryimage","url":"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9","contentUrl":"https:\/\/lh3.googleusercontent.com\/imct9vckJhsD4XnzpOCtsU_6t3XF5u47wJYWhm7yKYe7_MRkHHV33AQBg0TGfbLdzo3PcFAJqJJ6BgRHVake79lRncqDS8r4FI6zF9siVtuemTnqWT8O4UQw4V8JIdNLwlGt4t2lpS-u7Cchlm8cbQc-gNlwK-W9"},{"@type":"BreadcrumbList","@id":"https:\/\/test.opensource-db.in\/wp1\/postgres-beyond-basics-exploring-postgis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.opensource-db.in\/wp1\/"},{"@type":"ListItem","position":2,"name":"Postgres beyond basics : Exploring PostGIS"}]},{"@type":"WebSite","@id":"https:\/\/test.opensource-db.in\/wp1\/#website","url":"https:\/\/test.opensource-db.in\/wp1\/","name":"OpenSource DB","description":"Your Trusted OpenSource Databases partner","publisher":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.opensource-db.in\/wp1\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/test.opensource-db.in\/wp1\/#organization","name":"OPENSOURCE DB PRIVATE LIMITED","url":"https:\/\/test.opensource-db.in\/wp1\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/","url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png","contentUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png","width":368,"height":120,"caption":"OPENSOURCE DB PRIVATE LIMITED"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/","https:\/\/x.com\/opensource_db","https:\/\/www.youtube.com\/channel\/UCmTI5h","https:\/\/www.linkedin.com\/company\/opensource-db","https:\/\/www.instagram.com\/opensource_db\/"]},{"@type":"Person","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/a37b142ecbf953189a4f9209b0b8d328","name":"Venkat Akhil","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/522c0947d21b2c2c89f10698fd9131f9db4110f65c8d02b53d9b4559c7650865?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/522c0947d21b2c2c89f10698fd9131f9db4110f65c8d02b53d9b4559c7650865?s=96&d=mm&r=g","caption":"Venkat Akhil"},"url":"https:\/\/test.opensource-db.in\/wp1\/author\/sudheer-sopensource-db-com\/"}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"Venkat Akhil","author_link":"https:\/\/test.opensource-db.in\/wp1\/author\/sudheer-sopensource-db-com\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-14\/\" rel=\"category tag\">PostgreSQL 14<\/a> <a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-15\/\" rel=\"category tag\">PostgreSQL 15<\/a>","rttpg_excerpt":"Introduction: PostGIS is a popular extension for PostgreSQL that adds support for geographic and spatial data types and functions, allowing [&hellip;]","_links":{"self":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/4474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/comments?post=4474"}],"version-history":[{"count":5,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/4474\/revisions"}],"predecessor-version":[{"id":4482,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/4474\/revisions\/4482"}],"wp:attachment":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/media?parent=4474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/categories?post=4474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/tags?post=4474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}