edited image not being saved and displayed properly

Fawcett, David David.Fawcett at STATE.MN.US
Tue Jan 15 09:17:44 PST 2008


The extent that you set in your map file should be set to the full
extent of all of the data that you will display on the map.  If you look
at the URL that the template page creates, it is likely passing a
different bounding box for the extent of the data that you want to see
for a particular image.  

I would simplify your map file even more:  

1.  Comment out your projection blocks.  If you are only showing data
from one projection, you don't need to include projection blocks.  

2.  set your layer STATUS to DEFAULT for now.  This will make it draw
regardless of whether you explicitly ask for the layer in the URL GET or
POST.  

3.  Comment out your expression.  If your expression isn't quite right,
you may be eliminating all of the features in the data set.  

It would be useful to have you also include the URL that the page is
using to call MapServer.

David.

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of SUBSCRIBE MAPSERVER-USERS mapuser
Sent: Tuesday, January 15, 2008 10:55 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] edited image not being saved and
displayed properly


hi, i have set the EXTENT to the extent of particular postcode. i think 
you are right that the extent changes every time when i click, which is 
not in the 

specified extent. 

how can i set the extent values. i want to show that particular area. if
i 
set the extent value to the extent of my table, then how can i be able 
to show the 

small area.

my layer status is set to ON
and projection is 27700
units is meters

my mapfile is

MAP
  NAME           EX1.9_
  IMAGETYPE      PNG24
  UNITS METERS
  EXTENT 248029.59375 54095.69921875 248179.609375 
54245.703125# EXTENT OF SPECIFIC AREA

  SIZE           400 300
  #SHAPEPATH      "../data"
  SYMBOLSET      "../symbols/symbols35.sym"
  FONTSET        "../fonts/fonts.list"

 WEB
    TEMPLATE  'example1-9.html'
    IMAGEPATH '/ms4w/tmp/ms_tmp/'
    IMAGEURL  '/ms_tmp/'
  END

  PROJECTION
"proj=tmerc"
"lat_0=49"
"lon_0=-2"
"k=0.999601"
"x_0=400000" 
"y_0=-100000"
"ellps=airy"
"units=m"
"no_defs "
END #end projection

# Start of LAYER DEFINITIONS
---------------------------------------------
LAYER # States polygon layer begins here
    NAME         tarea
    CONNECTIONTYPE postgis
    CONNECTION "user=postgres password=postgres 
dbname=MasterMap host=localhost port=5432"

    DATA "geom from topographicarea"
    TYPE POLYGON
    STATUS       ON
PROJECTION
"proj=tmerc"
"lat_0=49"
"lon_0=-2"
"k=0.999601"
"x_0=400000" 
"y_0=-100000"
"ellps=airy"
"units=m"
"no_defs "
END #end projection

CLASS
NAME "buildings"
TYPE POLYGON
STATUS ON
EXPRESSION ('[theme]'='Buildings')
STYLE
                  
			COLOR  255 196 196
			OUTLINECOLOR 0 0 0
END
END #my class end
END #LAYER
END #END MAP



More information about the MapServer-users mailing list