[maplab-users] Confusion over map redraw during query[Scanned]

joanne cook j.cook at oxfordarch.co.uk
Mon Apr 25 04:26:11 EDT 2005


Hi Kevin,
 
That was a mistake, I'm afraid, I get the same extent in arcview that I have set for my map, ie 0, 0, 700000, 1300000. 
 
Thanks for your help,
 
Jo
 
-------------------------------------------
Joanne Cook
Oxford Archaeology North
-------------------------------------------

________________________________

From: kgrootendorst at baird.com [mailto:kgrootendorst at baird.com]
Sent: Fri 22/04/2005 18:05
To: joanne cook
Cc: maplab-users at lists.maptools.org
Subject: RE: [maplab-users] Confusion over map redraw during query[Scanned]



Jo, 
In an earlier post you mentioned that you want the scale to be at:  0, 0, 70,000, 130,000 : 
******** 
Hi Zak,
I couldn't see any error messages that appeared relevant. I tried what you suggested, removed all the layers, trying the map with one layer at a time and the problem still occured. 
I am a bit confused about the extents- when I run the shape files and rasters in Arcview I get the extent 0, 0, 70000, 130000 which is correct for the British National Grid. That's what the extent is set to in my map. But the extent shown in the MapBrowser box is the extent for the frame, which appears to put the rectangular map in the centre of the square and pad it to either side. If I set the map frame to be the same proportions in pixels as the map size is in metres, ie 700 wide by 13000 tall (or sensible fractions of these) then it still puts the map right in the centre, it doesn't make it fill the frame, which is what I thought it would do.

When I query the map and it redraws very small, the extents and scale shown below the frame don't change from what they should be if the map was drawn correctly.

Thanks again for your help

Jo
********* 

But your map file indicates:  EXTENT 0 0 700000 1.3e+006
Both x2 and y2 are 10 times greater than what you want (eg. 700,000 and 1,300,000 instead of 70,000 and 130,000) 

Could this be the problem? 

Kevin



______________________________ 



"joanne cook" <j.cook at oxfordarch.co.uk> 
Sent by: maplab-users-bounces at lists.maptools.org 

04/21/2005 04:26 AM 

To
<maplab-users at lists.maptools.org> 
cc
Subject
RE: [maplab-users] Confusion over map redraw during query[Scanned]	

		




Hi Zak,

Well, it doesn't happen in the Mapedit preview. I even downloaded a fresh installation of Maplab but it's all the same. I sorted out the projection blocks, but that didn't help either!

I have attached screenshots of the map before and after querying. All I have done in between is query a point then minimise the query window. 

Thanks for your help

Jo

-------------------------------------------
Joanne Cook
Oxford Archaeology North
-------------------------------------------

________________________________

From: Zak James [mailto:zak4ms at gmail.com]
Sent: Wed 20/04/2005 18:04
To: joanne cook
Cc: maplab-users at lists.maptools.org
Subject: Re: [maplab-users] Confusion over map redraw during query[Scanned]



Hi,

Well, that narrows it down. Can you see if this happens in the preview
launched from Mapedit as well? If it does, I think it's likely that
the problem is with the arrangement of PROJECTION blocks in your
mapfile.

Since some of your layers have their own PROJECTION, you need a
top-level PROJECTION (i.e. one defined directly in the MAP object) or
mapserver will assume no projection which may be the cause of this odd
query behaviour.

zak

On 4/20/05, joanne cook <j.cook at oxfordarch.co.uk> wrote:
> Hi Zak,
>
> Thanks for getting back to me. The problem does not occur with the tutorial map, and at the moment I'm not trying to go through gmapfactory at all, just mapbrowser. So basically if I'm in mapbrowser and I open the tutorial map and query it, there's no problem, if I open any of my other maps there's no problem, but if I open that one then the problem occurs. Interestingly, to test out whether there the problem happens with gmapfactory too, I have just made a new project using the same map, and the problem reoccurs then too.
>
> Jo
>
> -------------------------------------------
> Joanne Cook
> Oxford Archaeology North
> -------------------------------------------
>
> ________________________________
>
> From: Zak James [mailto:zak4ms at gmail.com]
> Sent: Tue 19/04/2005 19:13
> To: joanne cook
> Cc: maplab-users at lists.maptools.org
> Subject: Re: [maplab-users] Confusion over map redraw during query[Scanned]
>
> Hi,
>
> Can you recreate this problem using the tutorial map file? Is your
> site using the unmodified gmapfactory application or have you made
> customizations?
>
> zak
>
> On 4/19/05, joanne cook <j.cook at oxfordarch.co.uk> wrote:
> >
> >
> > Hi List,
> >
> > A while ago I was asking some questions about why my map redraws at a funny scale when I query it. I haven't got very much further with this problem, except to ascertain that it happens with only one map (attached and copied below). To recap: I am using maplab 2.2, with mapserver 4.4, and php 4.3.7. When using mapbrowser I load the map up and everything displays fine. Zooming and panning work fine. When I query a point on the map the query window opens and in the background the map is redrawn. When it finishes redrawing it is tiny and I have to recentre it or zoom out/in to make it redraw again, at which point it draws at the correct size. This happens whether or not I have rosa enabled.  Any help would be much appreciated...
> >
> > Jo
> >
> > MAP
> >   NAME "OS Coverage"
> >   STATUS ON
> >   EXTENT 0 0 700000 1.3e+006
> >   SIZE 400 400
> >   SHAPEPATH "./data"
> >   SYMBOLSET "./symbols35.sym"
> >   FONTSET "./fonts/fonts.txt"
> >   IMAGETYPE PNG
> >   IMAGECOLOR 255 255 255
> >   UNITS METERS
> >   DEBUG ON
> >   WEB
> >     MINSCALE 2e+06
> >     MAXSCALE 5e+07
> >   IMAGEPATH "C:/apache/htdocs/tmp/ms_tmp/"
> >     IMAGEURL "/tmp/ms_tmp/"
> >     LOG "C:/apache/htdocs/tmp/mapserv.log"
> >   END
> >   REFERENCE
> >     STATUS ON
> >     IMAGE "./data/reference/outlinesm.jpg"
> >     SIZE 100 100
> >     EXTENT 0 0 700000 1.3e+006
> >     COLOR -1 -1 -1
> >     OUTLINECOLOR 255 0 0
> >     MINBOXSIZE 10
> >     MAXBOXSIZE 100
> >     MARKER "star"
> >     MARKERSIZE 8
> >   END
> >   QUERYMAP
> >     STATUS OFF
> >     SIZE 100 100
> >     COLOR 255 0 0
> >     STYLE HILITE
> >   END
> >
> >   LEGEND
> >     STATUS ON
> >     IMAGECOLOR 255 255 255
> >     POSITION LL
> >     KEYSIZE 20 10
> >     KEYSPACING 5 5
> >     TEMPLATE "ttt"
> >     LABEL
> >       TYPE BITMAP
> >       SIZE MEDIUM
> >       OFFSET 0 0
> >       BUFFER 0
> >       MINDISTANCE -1
> >       MINFEATURESIZE -1
> >       COLOR 0 0 0
> >       PARTIALS TRUE
> >       FORCE FALSE
> >     END
> >   END
> >   SCALEBAR
> >     STATUS ON
> >     COLOR 0 0 0
> >     OUTLINECOLOR 0 0 0
> >     IMAGECOLOR 255 255 255
> >     TRANSPARENT FALSE
> >     UNITS KILOMETERS
> >     INTERVALS 7
> >     SIZE 250 4
> >     STYLE 0
> >     POSITION LL
> >     LABEL
> >       TYPE BITMAP
> >       SIZE TINY
> >       POSITION CC
> >       OFFSET 0 0
> >       BUFFER 0
> >       MINDISTANCE -1
> >       MINFEATURESIZE -1
> >       COLOR 0 0 0
> >       PARTIALS TRUE
> >       FORCE FALSE
> >     END
> >   END
> >   OUTPUTFORMAT
> >     NAME "png"
> >     MIMETYPE "image/png"
> >     DRIVER "GD/PNG"
> >     EXTENSION "png"
> >     IMAGEMODE PC256
> >     TRANSPARENT FALSE
> >   END
> >  LAYER
> >     NAME "050K Rasters NY"
> >     STATUS ON
> >     TILEINDEX "ny050.shp"
> >     TILEITEM "Location"
> >     GROUP "050K rasters"
> >   TYPE RASTER
> >   END
> >     LAYER
> >     NAME "050K Rasters SD"
> >     STATUS ON
> >     TILEINDEX "sd050.shp"
> >     TILEITEM "Location"
> >     GROUP "050K rasters"
> >   TYPE RASTER
> >   END
> >    LAYER
> >     NAME "CALevents"
> >     GROUP "CAU/CAL Sites"
> >     STATUS ON
> >     DATA "event"
> >     TYPE POINT
> >     UNITS METERS
> >     SIZEUNITS PIXELS
> >     LABELITEM "SiteCode"
> >     LABELMAXSCALE 200000
> >     TOLERANCE 10
> >     TOLERANCEUNITS PIXELS
> >     DEBUG ON
> >     METADATA
> >       "WMS_SRS"    "EPSG:BNG"
> >       "WMS_TITLE"    "CALevents"
> >       "WMS_GROUP_TITLE"    "Sites"
> >     END
> >     PROJECTION
> >       "init=epsg:27700"
> >     END
> >     CLASS
> >       NAME "CALevents"
> >       TEMPLATE "./templates/calsites.html"
> >       LABEL
> >         TYPE BITMAP
> >         FONT "arial_black"
> >         SIZE SMALL
> >         POSITION CL
> >         OFFSET 0 0
> >         BUFFER 4
> >         MINDISTANCE 300
> >         MINFEATURESIZE -1
> >         COLOR 0 0 0
> >         PARTIALS TRUE
> >         FORCE FALSE
> >       END
> >       STYLE
> >         SYMBOL 7
> >         COLOR 0 0 192
> >         OUTLINECOLOR 0 0 0
> >         SIZE 7
> >         MINSIZE 1
> >         MAXSIZE 100
> >       END
> >     END
> >   END
> >   LAYER
> >     NAME "OANSites"
> >     GROUP "LUAU/OA North Sites"
> >     STATUS ON
> >     TYPE POINT
> >     CONNECTIONTYPE OGR
> >     CONNECTION "virtual.ovf"
> >     UNITS METERS
> >     SIZEUNITS PIXELS
> >     LABELITEM "ProjectSiteCode"
> >     LABELMAXSCALE 200000
> >     TOLERANCE 10
> >     TOLERANCEUNITS PIXELS
> >     DEBUG ON
> >     METADATA
> >       "WMS_TITLE"    "OA North Sites"
> >       "WMS_GROUP_TITLE"    "Sites"
> >     END
> >     PROJECTION
> >       "init=epsg:27700"
> >     END
> >     CLASS
> >       NAME "OANSites"
> >       TEMPLATE "./templates/sites.html"
> >       LABEL
> >         TYPE BITMAP
> >         SIZE SMALL
> >         POSITION CL
> >         OFFSET 0 0
> >         BUFFER 4
> >         MINDISTANCE 300
> >         MINFEATURESIZE -1
> >         COLOR 0 0 0
> >         PARTIALS TRUE
> >         FORCE FALSE
> >       END
> >       STYLE
> >         SYMBOL 7
> >         COLOR 155 0 255
> >         OUTLINECOLOR 0 0 0
> >         SIZE 7
> >         MINSIZE 1
> >         MAXSIZE 100
> >       END
> >     END
> >   END
> > END
> >
> >
> > -------------------------------------------
> > Joanne Cook
> > Oxford Archaeology North
> > -------------------------------------------
> >
> >
> > _______________________________________________
> > Maplab-users mailing list
> > Maplab-users at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/maplab-users
> >
> >
> >
> >
>
> --
> Zak James
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
>
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users
>


--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


[attachment "before_query.jpg" deleted by Kevin Grootendorst/OAKVILLE/BAIRD] [attachment "after_query.jpg" deleted by Kevin Grootendorst/OAKVILLE/BAIRD] _______________________________________________
Maplab-users mailing list
Maplab-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/maplab-users






More information about the Maplab-users mailing list