<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div>>From: postgis-users <postgis-users-bounces@lists.osgeo.org> on behalf of Shaozhong SHI <shishaozhong@gmail.com>Sent: Monday, March 28, 2022 3:21 PMTo: PostGIS Users Discussion <postgis-users@lists.osgeo.org>Subject: Re: [postgis-users] Cut extent box2d
 into small regular boxes, and iterate through each box of features</div>
<div>> </div>
<div>>Hi, Lars,</div>
<div>></div>
<div>>Your points are very interesting.</div>
<div>></div>
<div>>How about the following alternative.</div>
<div>></div>
<div>>Use geohash to divide features into geographical groups.</div>
<div>></div>
<div>>Treat each group in turn.</div>
<div>></div>
<div>>How about that?</div>
<div>></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have not used geohash my self, but that only seems work in degrees. I have not seen any big problems with spatial grids as we make them and it's fast since it can use indexes so I am not sure how geohash can help us to do this in a better way.
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
About grids, we do not only use grid for distribution, but also in some case spatial operations. For instance when we compute gaps/overlaps.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
For parrel work that you asked about in ealier mail, we use <a href="https://github.com/larsop/postgres_execute_parallel" id="LPNoLPOWALinkPreview">
https://github.com/larsop/postgres_execute_parallel</a> , this is solution based on dblink which again my cause security issues so as it is now this is temporary solution .
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Lars<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<span></span>
</body>
</html>