Re: [pmapper-users] zoom to point and buffer problem
Brought to you by:
arminburger
From: Armin B. <arm...@gm...> - 2006-11-22 13:57:51
|
I will see for the final 3.0.0 to include buffering. armin > Hi, > > this is a problem in ver. 2 and 3 with point layers: > > when I open the map with > &zoomLayer=my_point_layer&zoomQuery=gid@1@241@1@0 > > The server issue a > Fatal error: <i>[MapServer Error]: setExtent(): Given map extent is > invalid. > Check that it is in the form: minx, miny, maxx, maxy > > That's because the extent is set to the point itself (that obviously has > no > dimension). > > I thought that the pointBuffer was applied here too, but it isn't. > > Are there any workaround or maybe a patch in initmap.php applying > pointBuffer > to the extent is a better solution in this case? > > // Apply buffer (in units of features) > //$buffer = 20000; // <<<<<<<<<<<<<<<<<<<<<< ADAPT VALUE > <<<<<<<<<<<<<<<<< > // ABP: set buffer for points > if ($this->qLayerType == 0) { > $buffer = $_SESSION["pointBuffer"]; > } else { > $buffer = 0.05 * ((($mExtMaxx - $mExtMinx) + ($mExtMaxy - > $mExtMiny)) / 2); > } > > > -- > Alessandro Pasotti > itOpen - "Open Solutions for the Net Age" > w3: www.itopen.it > Linux User# 167502 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer |