[Mapserver-users] easy question

Steve Lime steve.lime at dnr.state.mn.us
Tue Jan 6 09:46:05 PST 2004


Are you explicity requesting the testpoint layer? If using the CGI all
layers are off unless declared as DEFAULT or explicitly requested (i.e.
layer=testpoint). Also, you need a symbol to use a class size, otherwise
all you'll get is a single green pixel. Try adding:

SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED TRUE
END

to the map file and add:

SYMBOL 'circle'

to the testpoint class definition.

Steve

>>> "Hugo Nathaniel Rodrigues" <hugo at pbh.gov.br> 1/6/2004 11:02:49 AM
>>>
thanks eric, i tried it but didnt work, here is my map file:

NAME FIRSTMAP
SIZE 400 300
STATUS ON
EXTENT 598047.223047 781652.733880 619791.428883 812944.406142
UNITS METERS
IMAGECOLOR 255 255 255


WEB
  IMAGEPATH "/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"

 LOG "/tmp/gmap.log"
END

LAYER
NAME testpoint
STATUS ON
TYPE POINT
CLASS
   COLOR 200 255 0
   SIZE 10
END
FEATURE
   POINTS 618579.06 806912.68 END
END
END
END

i received blank screen and not one point (or any green symbol),
anyone
knows why?
Hugo Rodrigues
Analista/Consultor
SSSS - Prodabel
----- Original Message ----- 
From: "Eric Bridger" <eric at gomoos.org>
To: "Hugo Nathaniel Rodrigues" <hugo at pbh.gov.br>
Cc: "Mapserver List" <mapserver-users at lists.gis.umn.edu>
Sent: Monday, January 05, 2004 6:21 PM
Subject: Re: [Mapserver-users] easy question


>
> On Mon, 2004-01-05 at 14:23, Hugo Nathaniel Rodrigues wrote:
> > i have this coordinates:
> >
> > x 618579,06
> > y 806912,68
> > (meters)
> >
> > what i need to put in my map file (using gmap75.map example) to
show a
point (or symbol or anything) in this point of the map?
> > this is my extent:
> >
> > EXTENT 598047.223047 781652.733880 619791.428883 812944.406142
> >
>
> You'll want to use the LAYER FEATURE tag in your map file.  This
works
> for mapserver 3.6.
>
> LAYER
>   NAME "test_point"
>   STATUS DEFAULT
>   TYPE POINT
>   CLASS
>     COLOR 0 0 0
>     SIZE 10
>   END
>   FEATURE
>     POINTS 618579.06  806912.68 END
>   END
> END
>
>

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list