<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Postgis on Faiq Najib</title>
		<link>https://najib.id/en/tags/postgis/</link>
		<description>Recent content in Postgis on Faiq Najib</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
			<copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright>
		
		
			<lastBuildDate>Wed, 02 Dec 2026 21:36:50 +0700</lastBuildDate>
		
			<atom:link href="https://najib.id/en/tags/postgis/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Geofencing with PostGIS: Real-Time Entry-Exit Detection</title>
				<link>https://najib.id/en/writing/2026/geofencing-postgis/</link>
				<pubDate>Wed, 11 Nov 2026 00:00:00 +0000</pubDate>
				<guid>https://najib.id/en/writing/2026/geofencing-postgis/</guid>
				<description>&lt;p&gt;&amp;ldquo;Vehicle A entered the port area at 03:00 and left at 05:30.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;That kind of note is a common feature in GPS tracking services. It sounds simple, but it is easy to get wrong. We need to draw a &lt;em&gt;polygon&lt;/em&gt; and detect entry and exit &lt;em&gt;events&lt;/em&gt; from a stream of positions arriving every 10-30 seconds.&lt;/p&gt;&#xA;&lt;p&gt;In &lt;a href=&#34;https://najib.id/en/writing/2026/gps-data-postgresql-timescaledb/&#34;&gt;Part 4&lt;/a&gt;, positions were stored in TimescaleDB. This time I am adding one thing: &lt;strong&gt;regions&lt;/strong&gt;. I tested the examples with PostGIS 3.5 (PostgreSQL 16, container &lt;code&gt;postgis/postgis:16-3.5&lt;/code&gt;).&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
