You can checkout the results of the script provided:
http://map.rich-logic.com/test.php
Reference... The reference image was left as is from pmapper package.
I've commented the reference in the map file. No difference.
On Sat, 2008-03-15 at 19:59 +0300, b0d wrote:
> Hello Ruslan, you can debug your map rendering with this tiny script.
> If all goes good u will see full your map in 800x600. Or you will get verbose
> error info.
>
>
> <?php
> dl('php_mapscript.dll');
>
> //path to your mapfile
> $oMap = ms_newMapObj("1.map");
> // set image size
> $oMap->setsize(800, 600);
>
> // set image format
> $oMap->selectoutputformat("png");
>
> // draw map
> $oImage = $oMap->draw();
> $image=$oMap->draw();
> $image_url=$oImage->saveWebImage();
> ?>
>
> <HTML>
> <HEAD>
> <TITLE>Example 1: Displaying a map</TITLE>
> </HEAD>
> <BODY>
> <IMG SRC=<?php echo $image_url; ?> >
> </BODY>
> </HTML>
>
> And you should use uniq: the_geom from blocks using uniq bla-bla
>
> You got problem with reference map, try to comment all REFERENCE MAP lines in
> map file and see result.
> map.php 280: $refBoxL = max(0, round((($this->GEOEXT["minx"]-$refXmin) /
> $pixSizeX) - 0.5));
> script cannot calculate...
> Fix your reference man ;)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users