teacher points on California zips revisited
Joseph Norris
sirronj at PACBELL.NET
Thu Dec 2 09:11:23 PST 2004
I can I not build my teacher point file with the same projection as the
California zip file? If so how do I set these values?
#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:07 AM
To: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips
revisited
Joseph,
A few days ago, Eric established that your Cal Zip layer is in a LCC
projection that uses feet as units.
(here is snip of that message)
____________
> 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.
_____________________________________
My guess is that fGIS isn't projecting your layers and is assuming that
they are both in the same projection.
Stick with MapServer, you were getting very close. You have two layers
in different projections, you need to set the projection that you want
the output map to be in, and then within each layer, set the projection
in which the data exists.
There should be many examples of the use of projection in the list
archives.
David.
David J. Fawcett
MN Office of Environmental Assistance
>>> Joseph Norris <sirronj at PACBELL.NET> 12/2/2004 10:54:34 AM >>>
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