[fusion-trac] #44: Measure tool return incorrect distance for MapServer

Fusion trac_fusion at osgeo.org
Fri Mar 28 13:31:10 EDT 2008

#44: Measure tool return incorrect distance for MapServer
 Reporter:  aboudreault  |         Owner:  madair
     Type:  defect       |        Status:  new   
 Priority:  P2           |     Milestone:        
Component:  MapServer    |       Version:  1.0.4 
 Severity:  Major        |    Resolution:        
 Keywords:               |   External_id:        
    State:  New          |       Browser:  All   
       Os:  All          |  
Comment (by aboudreault):

 * the units in the map file are meters
  * The problem was effectively related to geos. My MapServer wasnt built
 with it. In the MapServer/php/Measure.php file, we use the method of
 ShapeObj class getLength and this method is only available if
 php/mapscript is built with GEOS library.
    $distance = $shapeObj->getLength($shapeObj);

Ticket URL: <http://trac.osgeo.org/fusion/ticket/44#comment:3>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.

More information about the fusion-trac mailing list