summary by grid

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Mon Sep 27 11:57:03 PDT 2004


An interesting idea.

I think I would approach this a little differently. The thing you need
to do is to use the cell object to query the flight lines data using
multiple select and count the number of lines intersecting with the cell
object. Then update the the cell's attributes with the count.

Mapserver already supports query by shape and query by rectangle. So you
could have arbitrary cell object shapes like city polygons or cell
rectangles based on shapes. or you could just create a double for loop
in mapscript to compute the rectangles and call querybyrect().

Hope this helps,
  -Steve


David Bitner wrote:

> Would there be anyway to make use of the grid object to create a summary of
> line data (flight lines from an airport) by haveing each grid cell shaded in
> proportion to the number of lines it intersects?
>
> Has anybody created this type of report with Mapserver?  Any examples,
> hints?
>
> Thanks
>



More information about the MapServer-users mailing list