see the 'important notes' section on http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/?searchterm=projection and do some reading in general about projections.
 
You would never have 2 epsg codes in one layer in your mapfile.
The projection object in your layer defines what projection your shapefile is in.
The projection object in your overall map object defines how you want your overall map (all the layers) projected.
 
I can't help much more than this - you have to know your data and understand what projections your shapefiles are in natively and then understand the final projection you want your map to appear in.
 
D. Pagurek


From: Albert Anderson [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 12:44 PM
To: Pagurek,Debbie [NCR]; Albert Anderson; [email protected]
Subject: RE: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file

Hi,

 I still get the error.  Do I put both projections in the map obj. and layer? How would the coded the projection file and the 3 unprojection files?  I am confussed about that?

#This is Richland County Map Server
NAME "Richland"
SIZE 309 417
UNITS meters
IMAGECOLOR 255 255 255
IMAGETYPE JPEG
PROJECTION
"init=epsg:26914"
"init=epsg:4326"
END

#####################################
LAYER
    NAME "richland"
    STATUS default
    TYPE polygon
    DATA "RICH_bndy"
    PROJECTION "init=epsg:26914"
    END
    CLASS
      STYLE
            COLOR 238 220 130
      END
   END
END
#####################################
LAYER
    NAME "boundary"
    STATUS default
    TYPE line
    DATA "RC_boundary_05"
    PROJECTION "init=epsq:4326"
    END
    CLASS
      STYLE
            COLOR 0 0 0
      END
   END
END
#####################################

Thanks,
Albert


"Pagurek,Debbie [NCR]" <[EMAIL PROTECTED]> wrote:
you have a typo in what you just wrote - it should be epsG not epsQ - I hope you have epsG in your mapfile.
 
The error that you're getting indicates that Mapserver can't find the epsg file so it can't find the epsg code.
On windows in a typical ms4w installation, your epsg file should be in
c:\ms4w\proj\nad\
 
D. Pagurek
 


From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Albert Anderson
Sent: Monday, July 17, 2006 11:45 AM
To: [email protected]
Subject: Re: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file

Hi,

 I changed my units and my scale bar looks better. I still cant get my layers working. I put them on default and put
PROJECTION "init=epsq:4326"
    END
in the map object and it didnt like that. I get an error like msProcessProjection(): Projection library error. no system list, errno: 2 . What else can I try?

Thanks,
Albert
"Pagurek,Debbie [NCR]" <[EMAIL PROTECTED]> wrote:
If your other layers are not projected, you mean that they are in 'geographic'. You still need to set a projection object for them.
Try
PROJECTION
  "init=epsg:4326"
END
 
This is geographic with the datum set as WGS84. This might not be the proper settings for your data - you could have another datum... anyway - set this projection object in your mapfile to see if you can get it working. What will happen is that Mapserver will project these layers on the fly to match the projection in your MAP object.
 
D. Pagurek


From: Albert Anderson [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 11:12 AM
To: Pagurek,Debbie [NCR]; [email protected]
Subject: Re: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file

Hi,

 I add a projection map file of richland county.  The other layers that I have are unprojective files. The roads file is all the road in the county.  Right now they are not catagorized. Thats the way the other layers are.  I just want to get the projection file loaded which is and also my layers which are not.
  Setting it to default didnt seem to work.

Thanks,
Albert

"Pagurek,Debbie [NCR]" <[EMAIL PROTECTED]> wrote:
perhaps you could provide a bit more information to us. What is the native projection of the roads, boundary line, and etc... layers? If it isn't in the same projection as specified in your MAP object,
PROJECTION
  "init=epsg:26914"
END
then you also need to specify the projection in the layer object.
you also might want to try to put STATUS DEFAULT for the roads, boundary etc and that way they will ALWAYS be ON. If status is set to ON you have to make sure that your URL specifies layers=layername in order for it to be on.
 
Hope this helps,
D. Pagurek



From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Albert Anderson
Sent: Friday, July 14, 2006 4:58 PM
To: [email protected]
Subject: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file

Hi,

 I got my projection file working but I cant see to get my layers working like roads, boundary line, and etc...  Can someone look at my code and help me.  Thanks!

---Codes-------

<body>
  <form method=POST action="">
    <input type="submit" value="Click to initialize">
    <input type="hidden" name="program" value="mapserv">
    <input type="hidden" name="map" value="/home/mapdata/richland.map">
    <input type="hidden" name="mapext" value="626173.309834 5085113.091715 694065.960556 5176735.212592">
    <input type="hidden" name="zoomsize" size="2" value="2">
    <input type="hidden" name="layers" value="boundary roads sections">
  </form>
 </body>
</html>

<input type="checkbox" name="layer" value="boundary" [boundary_check]/>
  County Boundary <br />
  &nbsp;
  <input type="checkbox" name="city" value="city" />
  City Boundary <br />
  &nbsp;
  <input type="checkbox" name="township" value="township" />
  Township<br />
  &nbsp;
  <input type="checkbox" name="layer" value="sections" [sections_check]/>
  Section Lines </span><br />
 
  <br />
  <font color="green"><span class="style2">&nbsp;Land</span></font><br />
  <span class="style4">
  &nbsp;
  <input type="checkbox" name="layer" value="parcels" [parcels_check]/>
  Parcels <br />
  &nbsp;
  <input type="checkbox" name="parcelslables" value="parcelslables" />
  Parcels Labels</span><br />
  <br />
  <font color="red"<span class="style2">&nbsp;Transportation</span></font><br />
  <span class="style4">
  &nbsp;
  <input type="checkbox" name="layer" value="roads" [roads_check]/>
  County/City Roads <br />
  &nbsp;
  <input type="checkbox" name="addresslabels" value="addresslabels" />
  Address Labels</span> </p>
 <p class="style1"><font color="brown"><span class="style2">&nbsp;Backgrounds</span></font><br />
 <span class="style4">
 &nbsp;
 <input name="aerial" type="checkbox" id="aerial" value="aerial" />
  Aerial Photos</span></p>

#This is Richland County Map Server
NAME "Richland"
SIZE 309 417
UNITS miles
IMAGECOLOR 255 255 255
IMAGETYPE JPEG
PROJECTION "init=epsg:26914"
END
SHAPEPATH "/home/mapdata/"
EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592
####################################
# Symbol for drawing fat lines
#
SYMBOL
     NAME "BigLine"
     TYPE ELLIPSE
     POINTS 1 1 END
END

#####################################
# Symbol for drawing dashed lines
#
SYMBOL
     NAME "DashedLine"
     TYPE ELLIPSE
     POINTS 1 1 END
     STYLE 10 10 END  
END

#####################################
# Symbol for drawing spots
#
SYMBOL
     NAME "Circle"
     FILLED true
     TYPE ellipse
     POINTS 1 1 END
END

#####################################
# Web object
#
WEB
  TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html'
  IMAGEPATH '/var/www/htdocs/tmp/'
  IMAGEURL '/tmp/'
END

#####################################
# Reference map
#
REFERENCE
     IMAGE "/home/mapdata/richland.gif"
     SIZE 136 152
     EXTENT -97.228391 45.907505 -96.628389 46.717217
     STATUS ON
     COLOR -1 -1 -1
     OUTLINECOLOR 0 0 0
END

##################################### 
# Scalebar
#
SCALEBAR
     LABEL
          COLOR 0 0 0
          ANTIALIAS true
          SIZE small
     END
     POSITION lr
     INTERVALS 5
     STATUS embed
     SIZE 144 5
     STYLE 0
     UNITS MILES
     BACKGROUNDCOLOR 0 255 0
     IMAGECOLOR 255 255 255
     COLOR 128 128 128    
     OUTLINECOLOR 0 0 255
     TRANSPARENT off
END
#####################################
LAYER
    NAME "richland"
    STATUS default
    TYPE polygon
    DATA "RICH_bndy"
    PROJECTION "init=epsg:26914"
    END
    CLASS
      STYLE
            COLOR 238 220 130
      END
   END
END
#####################################
LAYER
    NAME "boundary"
    STATUS on
    TYPE line
    DATA "RC_boundary_05"
    CLASS
      STYLE
            COLOR 0 0 0
      END
   END
END
#####################################
LAYER
    NAME "roads"
    STATUS on
    TYPE line
    DATA "roads_shp"
    CLASS
      STYLE
            COLOR 255 0 0
      END
   END
END
#####################################
LAYER
    NAME "sections"
    STATUS on
    TYPE line
    DATA "RC_sections_05"
    CLASS
      STYLE
            COLOR 255 130 171
      END
   END
END
#####################################
LAYER
    NAME "parecles"
    STATUS on
    TYPE line
    DATA "RC_parcels_05"
    CLASS
      STYLE
            COLOR 0 0 0
      END
   END
END
END

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


See the all-new, redesigned Yahoo.com. Check it out.


See the all-new, redesigned Yahoo.com. Check it out.


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.

Reply via email to