Zoom problem

Carl Burn burnsy at VIVIDFISH.CO.UK
Thu Jan 26 13:45:49 PST 2006


Hello All,

took a break and looked at this again. Revised the extents after opening 
the file produced by gdaltindex in MapInfo and getting a totally 
different set of extents. This centres the map just fine. However still 
no zoom in or out, I tried altering the map scale value in the box below 
the map in the preview window in mapedit and this forces the map to zoom 
in but the mapscript controls for zooming in and out dont work at all. 
Still puzzled but I think I am missing something obvious.

Any ideas ?

Cheers

Burnsy


> Hello All,
>
> got a problem with a pretty simple application I am building using 
> ms4w on windows XP pro.
> I have used maplab to construct a map file which is basically a single 
> layer of raster data, I used a tileindex to bring in the data, I 
> created the tile index using gdaltindex on the target machine.
> I can call the data into the maplab using the mapedit utliity but when 
> I preview my work I see the map, slightly off-centre and am unable to 
> zoom in or out.The map file is included below, I have a feeling its 
> really obvious but I have been staring at it and just can not see it.
>
> Any ideas/help would be greatly appreciated.
>
> Burnsy
>
> MapFile begins:
>
>
> MAP
>  NAME "Alltiled"
>  STATUS ON
>  EXTENT 49942.841590 4.230118 65991.532505 1230057.149261
>  SIZE 300 300
>  SHAPEPATH "./data/ArcView"
>  SYMBOLSET "./etc/symbols.sym"
>  FONTSET "./etc/fonts.txt"
>  IMAGETYPE PNG
>  IMAGECOLOR 189 231 255
>  UNITS METERS
>  QUERYMAP
>    STATUS ON
>    SIZE 100 100
>    COLOR 255 0 0
>    STYLE HILITE
>  END
>  #
>  # Start of OutputFormat object
>  #
>  OUTPUTFORMAT
>    NAME "png"
>    MIMETYPE "image/png"
>    DRIVER "GD/PNG"
>    EXTENSION "png"
>    IMAGEMODE PC256
>    TRANSPARENT FALSE
>  END
>  LAYER
>    NAME "AARasters"
>    STATUS ON
>    TYPE RASTER
>    TILEINDEX "./data/ArcView/overallmap.shp"
>  END
> # Layer
> END
>
>
>
> MapFile ends

-- 
+++++++++++++++++++++++++++++++++

Carl Burn

www.joomla-solutions.co.uk

Hosted, managed, supported business web solutions

Tel: 01661 525001

+++++++++++++++++++++++++++++++++

-------------- next part --------------
A non-text attachment was scrubbed...
Name: burnsy.vcf
Type: text/x-vcard
Size: 283 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060126/36730458/attachment.vcf>


More information about the MapServer-users mailing list