simple tool for conversion

Joseph Norris sirronj at PACBELL.NET
Thu Dec 9 16:17:55 EST 2004


Eric,

Thank you for this information.  If I have to switch shapefiles to get this
to work - then I am all for it.  So as I understand you,

I have obtained the California state map as you indicated on your link.
Does this mean that I can build my teacher shape file using the actual
lat/long that I have and then I would be closer to my new California state
map knowing about my new teacher shapefile?

Thanks again for your help.

#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: Thursday, December 09, 2004 11:19 AM
To: Joseph Norris
Cc: UMN MapServerList
Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion


On Thu, 2004-12-09 at 12:12, Joseph Norris wrote:
> Ethan,
>
> At the risk of being flamed into non-existence on this subject.  I have
> repeatedly modified my map file to include the projection blocks that you
> and others in this list have mentioned.  Each change has provided no
> results.  I have sent copies of my projection file for the California zip
> map and I have received no explanation of what the terms mean. I have
tried
> to get simple features to work and this has been unsuccessful.

Joseph,

We've all been there. But it take patience and the willingness to start
all over from scratch.

It has finally occured to me that the root of your problem is that your
California zip code file (is that a shape file?) is in a strange
projection.  An LCC projection but in US Feet. Meters are the usual
units used.  Early on we found this in the Proj4 epsg file with an epsg
code between 26941 and 26946.Any of these should work except for the
fact that your zip file is using US Feet vs. Meters.

E.g.
# NAD83 / California zone 1
<26941> +proj=lcc +lat_1=41.666666667 +lat_2=40.000000000
+lat_0=39.333333333 +lon_0=-122.000000000 +x_0=2000000.000
+y_0=500000.000 +ellps=GRS80 +datum=NAD83 +units=m  no_defs <>

Perhaps you could use a projection of init=epsg:26943 but with UNITS set
to FEET. Have you tried that in your map file?

That failing I would reccommend starting with a California Zip Code
shape file in lat/long coordinates.  These are available for free from
the Census bureau:

http://www.census.gov/geo/www/cob/z52000.html#shp

Hope this finally helps.

Eric



More information about the mapserver-users mailing list