Projection and EXTENTS

Matthew Roberson matt at MSILEADS.COM
Mon May 9 15:18:46 PDT 2005


I am trying to create a projection a map of the state of Missouri that
was created by the US Census Bureau(zt29_d00.shp).

I used ogrinfo to get the following information about the EXTENT:

[imac-dev03:~/Documents] matthewr% ogrinfo -so zt29_d00.shp zt29_d00
INFO: Open of `zt29_d00.shp'
using driver `ESRI Shapefile' successful.

Layer name: zt29_d00
Geometry: Polygon
Feature Count: 1341
Extent: (-95.774704, 35.995683) - (-89.098843, 40.613640)
Layer SRS WKT:
(unknown)
AREA: Real (20.5)
PERIMETER: Real (20.5)
ZT29_D00_: Integer (11.0)
ZT29_D00_I: Integer (11.0)
ZCTA: String (5.0)
NAME: String (90.0)
LSAD: String (2.0)
LSAD_TRANS: String (50.0)

Then, I used proj4 to find lat long values for the a Lambert Azimuthal
Equal Area projection.

[imac-dev03:~/Documents] matthewr% proj +proj=laea +ellps=clrk66 +R_A
-95.774704 35.995683
-7567149.62     5525023.18
-89.098843 40.613640
-6798293.00     5830370.88

When I use these values with MapServer to make a map, nothing shows up.
  Am I missing something.  Should I post this question in this list or
in the MapServer User's group? Any help would be appreciated.

Below is copy of my map file also,

MAP
     NAME MO
     IMAGETYPE GIF
     SIZE 6000 6000
     IMAGECOLOR 240 240 240
     SHAPEPATH "/Library/WebServer/Documents/data"
     FONTSET "/Library/fonts/fonts.list"
     EXTENT -7567149.62 5525023.18 -6798293.00 5830370.88
     UNITS METERS
     WEB
         IMAGEPATH "/Library/WebServer/Documents/test/"
         IMAGEURL "/test/"
     END

        PROJECTION
                "init=epsg:26797"
        END

        LEGEND
                STATUS EMBED
                POSITION UR
        END

        SCALEBAR
                TRANSPARENT ON
                BACKGROUNDCOLOR 254 254 254
                STATUS EMBED
                POSITION LR
                STYLE 1
        END

                LAYER
                        NAME "MO zip code boundaries"
                        DATA "zt29_d00"
                        STATUS DEFAULT
                        TYPE POLYGON
                        PROJECTION
                                "init=epsg:26797"
                        END
                        LABELITEM "ZCTA"
                        CLASS
                                COLOR 254 0 0
                                        LABEL
                                                COLOR 60 60 60
                                                SHADOWCOLOR 218 218 218
                                                SHADOWSIZE 1 1
                                                TYPE TRUETYPE
                                                FONT arialhb
                                                SIZE 10
                                                ANTIALIAS TRUE
                                                POSITION CL
                                                PARTIALS FALSE
                                                MINDISTANCE 5
                                                BUFFER 4
                                        END
                                OUTLINECOLOR 60 60 60
                                SYMBOL 0
                        END
                END

                LAYER
                        NAME "credits"
                        STATUS DEFAULT
                        TRANSFORM FALSE
                        TYPE ANNOTATION
                        FEATURE
                                POINTS
                                        10 680
                                END
                                TEXT 'Made with Mapserver.'
                        END
                        CLASS
                                LABEL
                                        TYPE BITMAP
                                        POSITION CR
                                        COLOR 0 0 0
                                END
                        END
                END


END


Thanks,

Matt



More information about the MapServer-users mailing list