projection questions
Jeff Portwine
jdport at VERITIME.COM
Fri Jan 21 08:52:46 PST 2005
Most all of the files I've found use the latitude/longitue extents. My US states outline that I am using actually had it's boundries set to soemthing like -171 172 because it included everything from the continental US to far away US territires like the Virgin Islands. I just set my .map file extents to display the section I wanted... I actually used -80.2 40.8 -68.1 44.5, which is more or less what you said.
For road information, I usually use Tiger line data if you know that they use a particular projection.... though I'm trying to find some data that includes an entire state in a single shapefile instead of having it split up by county... the area I'm trying to plot includes 8 or 9 states and I don't really want to have to create a separate layer for every county.
I've never used the shpdump utility, i've only used ogrinfo but I'll give it a try and see if that gives me any more insight.
Thanks for the input,
Jeff
----- Original Message -----
From: Ed McNierney
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: Friday, January 21, 2005 11:23 AM
Subject: Re: [UMN_MAPSERVER-USERS] projection questions
Jeff -
Unfortunately, ESRI forgot about projections when the shapefile format was created. There was a later addition of a .prj file to go along with shapefiles and describe their projection. If you have a .prj file of the same base name, you will have that information - I expect you do not.
Without that information you're down to educated guesses. There are three likely candidates for US data - geographic (unprojected) coordinates, a UTM projection, or a state plane projection. If you are dealing with a multiple-state area, state plane is unlikely.
Can you examine the coordinates in the shapefile by either using the shpdump utility or loading the shapefile into a GIS viewer and reading the coordinates? For New England, geographic coordinates will have X values ranging from around -74 to -66, and Y values between 41 and 48. UTM coordinates will range between X values of 200000 to 700000 and Y values between 4500000 and 5250000. As you can see, these are obviously different and easy to distinguish.
If you find you have values that don't match either of these, let us know what they are; the shpdump utility will give you the bounding box of all shapes in the shapefile, and that's a good guide.
- Ed
Ed McNierney
TopoZone.com
------------------------------------------------------------------------------
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine
Sent: Friday, January 21, 2005 10:49 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] projection questions
Is there an easy way to figure out what projection my shapefile was created with? I have a map of the New England area that was created in Microsoft's Map Point, and I am more or less trying to re-create that map with mapserver. I started with an outline of the United States and then set the extents to display the area that I wanted, but the maps look very different and i'm positive it's becuase I'm not using proper projections (I don't expect the maps to look exactly alike of course, but the general shape should be pretty close). I always use ogrinfo to get the extents and see projection information of shapefiles that I've downloaded but more often than not , the ogrinfo just returns: "Layer SRS WKT: (Unknown)" instead of telling me the projection it was created with.
I also am not sure how to go about choosing my output projection... I've been using EPSG:4269 because as I understand it that is a midwest projection and when I first started playing with mapserver I was making maps of Michigan. Anybody know a good source to look up what would be the best output projection for different areas of the country/world?
As you can tell i'm really new to GIS and while I do understand the idea of projections I just don't know anything about them or how to apply them.
Thanks a lot,
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050121/8eba173c/attachment.htm>
More information about the MapServer-users
mailing list