teacher points on California zips revisited
Joseph Norris
sirronj at PACBELL.NET
Thu Dec 2 11:51:58 PST 2004
I made this change - no change in output. When I zoom into a zip polygon I
get the new legend reflecting my circle for teachers but I get not points
identified in the polygon.
#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: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On
Behalf Of Eric Bridger
Sent: Thursday, December 02, 2004 10:48 AM
To: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips
revisited
You need UNITS DD in your points layer where proj=latlong, or no UNITS
since DD is probably the default.
On Thu, 2004-12-02 at 13:13, Joseph Norris wrote:
> Ok - here is my map file. I have set the min/max of the layers so that
when
> I zoom in I should be able to see the teacher points and loose the
"Teachers
> in Zip" coloring - this happens - sort of. When I zoom in I loose the
color
> and get the teacher circle in the legend but I do not get any polygon
> outline and no circles for the teachers.
>
> 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 700 700
> STATUS ON
> UNITS FEET
> PROJECTION
> "init=epsg:26942"
> END
>
> NAME "calmap"
>
> 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
>
> QUERYMAP
> COLOR 255 255 0
> SIZE -1 -1
> STATUS OFF
> STYLE HILITE
> END
>
> SCALEBAR
> COLOR 0 0 0
> IMAGECOLOR 255 255 255
> INTERVALS 4
> LABEL
> SIZE MEDIUM
> TYPE BITMAP
> BUFFER 0
> COLOR 0 0 0
> FORCE FALSE
> MINDISTANCE -1
> MINFEATURESIZE -1
> OFFSET 0 0
> PARTIALS TRUE
> END
> POSITION LL
> SIZE 200 3
> STATUS OFF
> STYLE 0
> UNITS MILES
> 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
> MINSCALE 1478131.017053
> TYPE POLYGON
> PROJECTION
> "init=epsg:26942"
> END
> UNITS FEET
> CLASS
> NAME "Teachers in Zips"
> EXPRESSION
>
/95822|94117|93230|94903|91941|94110|95818|95815|91006|92503|90305|90042|953
> 37|95020|90242|94123|92084|94949
>
|93702|92802|95648|94103|95135|91103|95687|95632|95329|92024|91326|92054|935
> 60|93010|90043|90805|93023|90012|94606|91405|9195
>
0|90720|93405|94124|91935|95128|95124|94112|92663|92308|94087|92630|92105|94
> 115|94520|90033|94040|94621|92804|95501|91764|939
>
07|92186|94901|95210|94509|95076|94513|91910|95825|90032|93274|94612|91601|9
> 5351|93960|90025|95608|94952|90405|94105|90241|95
>
665|94404|92028|92115|92629|92083|92107|92117|92675|93711|38125|92570|94558|
> 93291|93720|95816|92320|95864|94107|94607|94131|9
>
0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|95139
> |95692|94704|94611|92585|94402|92705|90063|94560|
>
93727|94549|90015|95993|90274|93901|90065|90232|91977|93212|91730|92127|9239
> 2|92111|93706|95452|94804|91107|91945|92612|94539
>
|93924|92505|93710|92019|92801|91962|95834|90270|90802|95126|94555|95823|943
> 03|92108|92128|95690|92064|92071|92120|92025|9310
>
9|94580|94904|91406|94108|94070|74580|93034|90066|92509|94401|90059|95562|94
> 947|95242|91911|95521|93111|95658|94122|94102|907
>
45|95050|93449|95060|93446|93726|95969|95110|91104|91001|90049|95838|94577|9
> 2131|92040|95204|94545|91932|95018|91411|92106|94
>
568|95304|95407|94531|95678|90292|92243|91711|92410|95070|93004|92008|95829|
> 93908|93721|94703|94954|95959|94134|95428|90003|9
>
1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|94806
> |92591|95531|90504|94705|94530|95376|93003|94707|
> 95841|95667/
> STYLE
> COLOR 255 102 102
> MAXSIZE 100
> MINSIZE 1
> SIZE 1
> SYMBOL 0
> END
> END
> CLASS
> NAME "Zip Boundries"
> EXPRESSION /./
> STYLE
> MAXSIZE 100
> MINSIZE 1
> OUTLINECOLOR 204 204 204
> OUTLINECOLOR 204 204 204
> SIZE 1
> SYMBOL 0
> END
> END
> END
>
> LAYER
> NAME "points"
> SIZEUNITS PIXELS
> STATUS DEFAULT
> TEMPLATE "bogus.html"
> TOLERANCE 10
> TOLERANCEUNITS PIXELS
> TYPE POINT
> UNITS FEET
> MAXSCALE 1478131.017053
> PROJECTION
> "proj=latlong"
> END
> CLASS
> NAME "Teachers"
> LABEL
> SIZE MEDIUM
> TYPE BITMAP
> BUFFER 2
> COLOR 255 0 0
> FORCE FALSE
> MINDISTANCE -1
> MINFEATURESIZE -1
> OFFSET 0 0
> PARTIALS FALSE
> POSITION AUTO
> END
> STYLE
> COLOR 255 255 0
> OUTLINECOLOR 0 0 0
> SIZE 8
> SYMBOL "circle"
> END
> END
> FEATURE
> POINTS
> 38.5263 -121.507
> END
>
> List of points for lat/long with text of teacher's names
>
> #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: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On
> Behalf Of David Fawcett
> Sent: Thursday, December 02, 2004 9:20 AM
> To: MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips
> revisited
>
> In addition to what Ethan says,
>
> For your teachers layer, you could use the below projection block in
> place of projection=latlong (this is just the EPSG code for latlong):
>
> PROJECTION
> "init=epsg:4267"
> END
>
>
> David J. Fawcett
> MN Office of Environmental Assistance
>
> >>> Ethan Alpert <ealpert at DIGITALGLOBE.COM> 12/2/2004 11:10:22 AM >>>
> Go back and read the answers to your previous posts. What your
> PROJECTION blocks should be was already discussed.
>
> -e
>
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]
> On
> Behalf Of Joseph Norris
> Sent: Thursday, December 02, 2004 10:08 AM
> To: MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips
> revisited
>
>
> Thanks for this information - so do I have to take my point file and
> create it within the state plane also? I so how will I do that build?
>
> #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: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On
>
> Behalf Of Ethan Alpert
> Sent: Thursday, December 02, 2004 9:01 AM
> To: MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips
> revisited
>
> Those are meters not lat/lon and are probably in the California state
> plane projection. You posted the .prj previously which clearly showed
> that you data was in the state plane projection.
>
> -e
>
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]
> On
> Behalf Of Joseph Norris
> Sent: Thursday, December 02, 2004 9:55 AM
> To: MAPSERVER-USERS at lists.umn.edu
> Subject: [UMN_MAPSERVER-USERS] teacher points on California zips
> revisited
>
>
> Hello,
>
> Here we go again. I finally did the following:
>
> Created a shape file of all of my teacher points by their lat/long.
> Dropped the California zip code map on to my laptop and then the new
> teacher points file. I then used fGIS
> (http://www.digitalgrove.net/fgis.htm) and loaded the California zip
> layer and then my new teacher point layer. I can zoom to the zip layer
> but when I zoom to the point layer it is way far away from the zip
> layer. I did this as a sanity check because I did not think that I
> was
> even producing the teacher point layer. The questions are:
>
> If I create a point shape file based upon lat/lon and I have the
> California zip file - why will one not lie over the other - are they
> not
> both based upon lat/long?
>
> Can I open my teacher dbf file, and go search for the zip in the
> California zip file and then rebuild the teacher point file with
> coordinates from the California zip file thus allowing me to place my
> points in the zip polygon that they belong to?
>
> In my California shape file on a dump I get:
>
> ( 5983045.379, 3224996.563, 0, 0)
> ( 5989542.292, 3224832.974, 0, 0)
> ( 5989921.623, 3224823.475, 0, 0)
> ( 5989953.049, 3224815.898, 0, 0)
> ( 5990112.487, 3224777.458, 0, 0)
> ( 5991452.255, 3224753.633, 0, 0)
> ( 5993483.853, 3224717.643, 0, 0)
> ( 5993800.929, 3224702.331, 0, 0)
> ( 6011910.153, 3224087.577, 0, 0)
> ( 6017051.977, 3223915.448, 0, 0)
> ( 6026300.989, 3223711.249, 0, 0)
> ( 6026888.615, 3222812.493, 0, 0)
>
> What do these values mean - are they lat/long values?
>
> Thanks for all of the help that you have given me so far.
>
>
> #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);
>
More information about the MapServer-users
mailing list