[Chameleon-dev] [Bug 759] [Chameleon-Widget]ZoomSelectedLayers widget is not zooming to selected layers

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Wed Nov 10 15:25:21 EST 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=759





------- Additional Comments From nsavard at dmsolutions.ca  2004-11-10 15:25 -------
More information:

1) I could not test with data you provided in comments #6 and 7 because of a
problem with points layer.  "GetExtent" method of the layer object does not seem
to be recognized as an existing method.  See comment #8 first issue.

2) I executed another test with polygon shapes in the extents of Nova Scotia (I
will attach the layer and shapes file).  I named this layer "smallpark".  The
extents are:  "minx=232801, miny=20981, maxx=2566221, maxy=470156".  I dumped
the original map extents (called #oQueryExtent, see echo output below).  I also
added an echo after "@$oLayer->queryByRect( $oQueryExtent );" line in
ZoomSelectedLayers.widget.php file.  

Lines added are:

                       "$nResults = $oLayer->getNumResults();
			echo $nResults;
			print_r($oLayer);
			exit;"

I reloaded the "sample_enhanced.phtml" application and clicked on
"ZoomSelectedLayers" widget.  It seems that no shape are found by the query
rectangle.  See echo output.




------------------
echo output:
object(ms_rect_obj)(5) { ["_handle_"]=>  resource(1831) of type (Unknown)
["minx"]=>  float(-2598687.33333) ["miny"]=>  float(-712631) ["maxx"]=> 
float(3471487.33333) ["maxy"]=>  float(3840000) }

results = 0


ms_layer_obj Object
(
    [_handle_] => Resource id #1856
    [_map_handle_] => Resource id #18
    [numclasses] => 1
    [index] => 12
    [status] => 0
    [debug] => 0
    [classitem] => 
    [name] => smallpark
    [group] => Polygon
    [data] => smallpark
    [type] => 2
    [dump] => 0
    [tolerance] => 5
    [toleranceunits] => 6
    [sizeunits] => 6
    [symbolscale] => -1
    [minscale] => -1
    [maxscale] => -1
    [labelminscale] => -1
    [labelmaxscale] => -1
    [maxfeatures] => -1
    [transform] => 1
    [labelcache] => 1
    [postlabelcache] => 0
    [labelitem] => 
    [labelsizeitem] => 
    [labelangleitem] => 
    [tileitem] => location
    [tileindex] => 
    [header] => 
    [footer] => 
    [connection] => 
    [connectiontype] => 1
    [filteritem] => 
    [template] => 
    [transparency] => 0
    [styleitem] => 
    [num_processing] => 0
    [requires] => 
    [labelrequires] => 
    [offsite] => ms_color_obj Object
        (
            [_handle_] => Resource id #1857
            [red] => -1
            [green] => -1
            [blue] => -1
        )

)





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list