<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">
>From: postgis-users <postgis-users-bounces@lists.osgeo.org> on behalf of Shaozhong SHI <shishaozhong@gmail.com>Sent: Monday, March 28, 2022 10:25 AMTo: 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>>Hi, Lars,</div>
<div>></div>
<div>>No explanation on content-balanced_grid can be found. What is it based on? What does content mean in this context? Why do so?</div>
<div>></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>
There is some info in the readme file <a href="https://github.com/larsop/content_balanced_grid#readme" id="LPNoLPOWALinkPreview">
https://github.com/larsop/content_balanced_grid#readme</a> and here I also refer to<br>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
" For a exaample of usage look at page 18-23 at <a href="http://www.slideshare.net/laopsahl/foss4-g-topologyjuly162015" rel="nofollow">
http://www.slideshare.net/laopsahl/foss4-g-topologyjuly162015</a>
<p dir="auto"></p>
"<br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></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);">
The idea very simple the higher density of polygons/features in a area the smaller will the grid cells be. When running it you have parameter for how many feature that should be max in each grid cell. Content is polygons/features.<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);">
<span style="font-size:12pt">The code is also quite simple and the main function is here
<a href="https://github.com/larsop/content_balanced_grid/blob/master/func_grid/functions_def_02_content_based_balanced_grid.sql">
https://github.com/larsop/content_balanced_grid/blob/master/func_grid/functions_def_02_content_based_balanced_grid.sql</a> .</span><br>
<span style="font-size:12pt"></span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The code in github is used quite often in NIBIO, but this code not like Postgis code that works in almost any case. NIBIO is basically developing code to solve problems we have and when does are solved we start to solve other problems, but we put the code out
in case other may need it and make easy for other to help use to fix errors.<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>
</body>
</html>