Things are comming along but .... pleaselook at this mapfile dump
Stephen Woodbridge
woodbri at SWOODBRIDGE.COM
Mon Nov 29 14:42:40 PST 2004
I would remove the MAXSIZE and MINSIZE lines from your CLASS till you
get it working and I would try it with only one feature to start with
(I'm not sure you can do multiple features but I never tried. and make
sure you are view the area where the one point is being placed. This can
be a little hard to figure out with multiple projection spaces so view
is zoomed out.
Good Luck,
-Steve W
Joseph Norris wrote:
> I did that Steve - no change. What's really strange is that I know that
> mapserver is recognizing my Teacher class because its coming up in the
> legend. But no circle symbols are showing up in my map. The features are
> not showing.
>
>
> #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr
> $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-
> 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);
>
> -----Original Message-----
> From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
> Sent: Monday, November 29, 2004 2:16 PM
> To: Joseph Norris
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but ....
> pleaselook at this mapfile dump
>
> Joseph,
>
> In layer "points" change UNITS to "UNITS DD"
>
> What is the error you are getting?
>
> -Steve
>
> Joseph Norris wrote:
>
>>Steve,
>>
>>Tried this and it did not make a change. Nothing so far has made a
>
> change:
>
>>When I put in init=latlong I get an error.
>>
>>Here is what I have so far:
>>
>>MAP
>> EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749
>> TEMPLATEPATTERN "map"
>> IMAGECOLOR 255 255 255
>> IMAGETYPE gif
>> SHAPEPATH
>>
>
> "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata
>
>>"
>> SIZE 600 600
>> STATUS ON
>> UNITS FEET
>> NAME "calmap"
>>
>> PROJECTION
>> "init=epsg:26942"
>> END
>>
>> OUTPUTFORMAT
>> NAME gif
>> MIMETYPE image/gif
>> DRIVER GD/GIF
>> EXTENSION gif
>> IMAGEMODE PC256
>> TRANSPARENT FALSE
>> END
>>
>> SYMBOL
>> NAME "circle"
>> TYPE ELLIPSE
>> FILLED TRUE
>> POINTS
>> 1 1
>> END
>> END
>>
>> LEGEND
>> IMAGECOLOR 255 255 255
>> KEYSIZE 20 10
>> KEYSPACING 5 5
>> LABEL
>> SIZE MEDIUM
>> TYPE BITMAP
>> BUFFER 0
>> COLOR 0 0 0
>> FORCE FALSE
>> MINDISTANCE -1
>> MINFEATURESIZE -1
>> OFFSET 0 0
>> PARTIALS TRUE
>> POSITION CC
>> END
>> POSITION LL
>> STATUS EMBED
>> END
>>
>> WEB
>> IMAGEPATH ""
>> IMAGEURL ""
>> QUERYFORMAT text/html
>> END
>>
>> LAYER
>> CLASSITEM "zcta"
>> DATA "cal_zp_st"
>> NAME "calzip"
>> SIZEUNITS PIXELS
>> STATUS DEFAULT
>> TOLERANCE 0
>> TOLERANCEUNITS PIXELS
>> TYPE POLYGON
>> UNITS FEET
>> PROJECTION
>> "init=epsg:26942"
>> END
>>
>> CLASS
>> NAME "Zip Boundries"
>> EXPRESSION /./
>> STYLE
>> MAXSIZE 100
>> MINSIZE 1
>> OUTLINECOLOR 204 204 204
>> SIZE 1
>> END
>>
>> END
>> END
>>
>> LAYER
>> NAME "points"
>> SIZEUNITS PIXELS
>> STATUS DEFAULT
>> TOLERANCE 0
>> TOLERANCEUNITS PIXELS
>> TYPE POINT
>> UNITS FEET
>>
>> PROJECTION
>> "proj=latlong"
>> END
>>
>> CLASS
>> NAME "Teacher"
>> LABEL
>> SIZE LARGE
>> TYPE BITMAP
>> BUFFER 2
>> COLOR 255 102 102
>> MINFEATURESIZE AUTO
>> POSITION AUTO
>> END
>> STYLE
>> COLOR 255 102 102
>> MAXSIZE 100
>> MINSIZE 1
>> OUTLINECOLOR 255 153 51
>> SIZE 10
>> SYMBOL "circle"
>> END
>> END
>> FEATURE
>> POINTS
>> -121.507 38.5263
>> END
>> TEXT "Mary Lyn Kagan"
>> END
>> FEATURE
>> POINTS
>> -122.451 37.7752
>> END
>> TEXT "Greg D'Amico"
>> END
>>
>>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map
>
> chr
>
> $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-
>
>>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);
>>
>>-----Original Message-----
>>From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
>>Sent: Monday, November 29, 2004 1:40 PM
>>To: Joseph Norris
>>Cc: MAPSERVER-USERS at LISTS.UMN.EDU
>>Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but ....
>>pleaselook at this mapfile dump
>>
>>Joseph,
>>
>>For you point layer, it needs the projection set to
>>
>>PROJECTION
>> "init=latlong"
>>END
>>
>>-Steve W
>>
>>Joseph Norris wrote:
>>
>>
>>>Thanks Eric,
>>>
>>>I set the projections as you indicate below in my map and in each layer -
>>
>>I
>>
>>
>>>still see now points for the list of features that I have.
>>>
>>>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map
>>
>>chr
>>
>>
>
> $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-
>
>>>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);
>>>
>>>-----Original Message-----
>>>From: Eric Bridger [mailto:eric at gomoos.org]
>>>Sent: Monday, November 29, 2004 1:25 PM
>>>To: Joseph Norris
>>>Cc: UMN MapServerList
>>>Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but ....
>>>pleaselook at this mapfile dump
>>>
>>>On Mon, 2004-11-29 at 15:26, Joseph Norris wrote:
>>>
>>>
>>>
>>>>I got the extents from shpdump of shape file. I do have projection
>>>>information on the file:
>>>>
>>>>PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet",
>>>>GEOGCS["GCS_North_American_1983",
>>>>DATUM["D_North_American_1983",
>>>>SPHEROID["GRS_1980", 6378137, 298.257222101]],
>>>>PRIMEM["Greenwich", 0],
>>>>UNIT["Degree", 0.017453292519943295]],
>>>>PROJECTION["Lambert_Conformal_Conic"],
>>>>PARAMETER["False_Easting", 6561666.666666666],
>>>>PARAMETER["False_Northing", 1640416.666666667],
>>>>PARAMETER["Central_Meridian", -122],
>>>>PARAMETER["Standard_Parallel_1", 38.33333333333334],
>>>>PARAMETER["Standard_Parallel_2", 39.83333333333334],
>>>>PARAMETER["Latitude_Of_Origin", 37.66666666666666],
>>>>UNIT["Foot_US", 0.30480060960121924]]
>>>
>>>
>>>Joseph,
>>>
>>>By looking in my epsg file (which comes with the proj4 install, on my
>>>freeBSD system: /usr/local/share/proj it looks like your shape file has
>>>an EPSG code of 26942.(California Zone 2) You can use the following
>>>PROJECTION:
>>>
>>>PROJECTION
>>> "init=epsg:26942"
>>>END
>>>
>>>For UNITS you would use "feet" not DD.
>>>
>>>HTH.
>>>
>>
>>
>
>
>
More information about the MapServer-users
mailing list