[Mapserver-users] Z values from 3D shapefiles (PHP MapScript)

Daniel Morissette morissette at dmsolutions.ca
Mon Jan 27 09:24:15 PST 2003


Eduardo Spremolla wrote:
> 
> On Mon, 2003-01-06 at 15:36, Daniel Morissette wrote:
> > MapScript supports 2D shapefiles (x,y), and measured shapefiles (x,y,m),
> > but it doesn't support shapefiles with Z values (x,y,z).
> 
> It's possible to use a measured shapefiles and set the m value as the
> label of the point ?

No this is not possible at the moment.

> I have a dataset with the positions of a vehicle plus the time of
> report, and wish to display the times along the points.
> It's also possible to select a CLASS with max(m) ? so the latest got a
> different icon.
> 

Using the 'm' value in class expressions is not possible in the current
version.  The only thing that you can do with the 'm' values in the
current implementation is access the values via the shapeObj in
MapScript and use them to do your own calculations in PHP, Perl, etc.

BTW, selecting max(m) in a CLASS might not fit very well in the current
CLASS architecture because classes are evaluated on a per-shape basis
and it's not possible to use a different class for each vertex in a
polyline, doing this would imply some important changes to the way
things work.

Daniel
-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the MapServer-users mailing list