1 Map with Heatmap point rendering

In this example, customers on the map are shown by rendering (heatmap)


Parameters of the main box:


Sentence used:


Copy
<select>
    <columns>
        <geo.buffer>
            <geom1>
                <geo.aggrMbr>
                    <geo.point2D>
                        <coords>' || customer.gps_lon ||' ' || customer.gps_lat  || '</coords>  
                        <srid>auth_srid2_srid(4)</srid>
                    </geo.point2D>
                </geo.aggrMbr>
            </geom1>
            <dist>0.5</dist>
        </geo.buffer>
    </columns>
    <from table='customer' />
    <where>
        gps_lat IS NOT NULL
    </where>
</select>

Parameters of the layer:


Code of the SQL statement:


Copy
<select>
    <columns>
        'POINT(' || REPLACE(customer.gps_lon,',','.') || ' ' || REPLACE(customer.gps_lat, ',','.') || ')' geom,
        1 sqlgmap_range
    </columns>
    <from table='customer' />
    <where>
        customer.gps_lat IS NOT NULL
    </where>
</select>

Result: