<DIV>hii,</DIV> <DIV>It seems that you have a lot of knowledge about projections in the mapfile . Could you please help us out . We have a few basic doubts. Here's what we are doing ....</DIV> <DIV> </DIV> <DIV>We are working on the LAMP platform. We are creating an interactive web application . Users will be provided with a map , on which they can make their own additions and deletions.For example , when a certain user wants to landmark a certain city . </DIV> <DIV> <DIV> <DIV>Could u help us out with a few of r doubts .</DIV> <DIV> </DIV> <DIV> Firstly as the input to the Mapserver will be shapefiles , we will be creating our layers , (Eg. Point , Polygon , etc,) with the help of OpenEV.When the shapfiles are created in OpenEV (for e.g the points layer ) the points are saved on the basis of their line and column value This input will be given to the Mapfile of the Mapserver , which willl in turn give a complete image comprising
of all the layers. This map can then be displayed using Php/Mapscript. </DIV> <DIV> When the user enters a certain point , the point details need to be added to MySql. </DIV> <DIV> </DIV> <DIV>We wanted to proceed step by step. Now , as we first need a base map ( on which the user will make his/her changes ) , which will be a raster image ( .png or .tif ). We have created a map file for this( the raster image as a raster layer) as follows: </DIV> <DIV> </DIV> <DIV>MAP</DIV> <DIV> </DIV> <DIV>NAME first</DIV> <DIV>EXTENT 0 0 40 40</DIV> <DIV>SIZE 600 600</DIV> <DIV>IMAGECOLOR 200 255 255</DIV> <DIV>SHAPEPATH "/var/www/html/data1"</DIV> <DIV> </DIV> <DIV>WEB</DIV> <DIV> IMAGEPATH "/var/www/html/tmp/"</DIV> <DIV> IMAGEURL "/tmp/"</DIV> <DIV>END </DIV> <DIV> </DIV> <DIV>LAYER </DIV> <DIV>NAME
"base"</DIV> <DIV>TYPE raster</DIV> <DIV>DATA "/var/www/html/india.tif"</DIV> <DIV>STATUS ON</DIV> <DIV>END</DIV> <DIV>END</DIV> <DIV> </DIV> <DIV>This is not getting plotted , what could be the problem ? </DIV> <DIV>Also , what exactly is the use of extent , because no matter what extent we give for another mapfile to plot a simple rectangle , the size of the rectangle remains the same . </DIV> <DIV>Is projection mandatory in the mapfile ? And how can it be used .</DIV> <DIV>When the shapfiles are created in OpenEV (for e.g the points layer ) the points are saved on the basis of their line and column value . Does this require the use of projection.How can these points be saved in their latitude/longitude values. </DIV> <DIV> We are unable to understand the use of Projection ...Plz can u help us . </DIV> <DIV> </DIV> <DIV>Awating your reply , </DIV> <DIV>Apeksha<BR><B><I>Ed McNierney <ed@TOPOZONE.COM></I></B> wrote:</DIV></DIV></DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="MSHTML 6.00.2900.2802" name=GENERATOR> <DIV dir=ltr align=left><SPAN class=962054415-17012006><FONT face=Arial color=#0000ff size=2>Luiz & Bengt -</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=962054415-17012006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=962054415-17012006><FONT face=Arial color=#0000ff size=2>I would expect that if Bengt is working with maps of Scandinavian countries, the difference between Plat Carree and Mercator should be noticeable (Mercator will "stretch" things north/south by quite a bit compared to a "geographic" or Plat Carree projection).</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=962054415-17012006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=962054415-17012006><FONT face=Arial
color=#0000ff size=2>Bengt, are you sure you have a good PROJ installation and that MapServer is compiled with PROJ support (run mapserv -v and look for "SUPPORTS=PROJ")?</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=962054415-17012006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=962054415-17012006><FONT face=Arial color=#0000ff size=2> - Ed</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=962054415-17012006> <div><FONT size=2>Ed McNierney<BR>President and Chief Mapmaker<BR>TopoZone.com / Maps a la carte, Inc.<BR>73 Princeton Street, Suite 305<BR>North Chelmsford, MA 01863<BR>ed@topozone.com<BR>(978) 251-4242 </FONT></div></SPAN></DIV><BR> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Luiz Vaz<BR><B>Sent:</B> Tuesday,
January 17, 2006 12:46 AM<BR><B>To:</B> MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] No reprojection done<BR></FONT><BR></DIV> <DIV></DIV>Well, <BR><BR> it seems that there no perceptual changes each other:<BR><BR># World Mercator<BR><54004> +proj=merc +lat_ts=0 +lon_0=0 +k=1.000000 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m no_defs <><BR><BR># World Plate Carree<BR><54001> +ellps=WGS84 +datum=WGS84 +units=m no_defs <><BR># World Equidistant Cylindrical<BR><54002> +ellps=WGS84 +datum=WGS84 +units=m no_defs <><BR><BR># WGS 84<BR><4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs <> <BR><BR><BR>Best Regards,<BR>Luiz Vaz<BR><BR> <DIV><SPAN class=gmail_quote>2006/1/15, Nilsson Bengt <<A href="mailto:bengt.nilsson@aerotechtelub.se">bengt.nilsson@aerotechtelub.se</A>>:</SPAN> <BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt
0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi,<BR>I've set up a WMS server with an initial singe layer to test reprojection. However , I can't get the projection to work. Whatever output projection i try I get the same geographical (4326) back. For example, when I make a WMS request with SRS=EPSG:54004 (Mercator) and bounding box in that projection I get an 4326-map back. I do not get any errors. Here is my map-file: <BR><BR>MAP<BR>NAME WMS-test<BR>STATUS ON<BR>SHAPEPATH "shp"<BR>IMAGECOLOR 255 255 255<BR>FONTSET ../etc/fontset.txt<BR><BR>DEBUG ON<BR>WEB<BR> LOG "/tmp/mapserv.log"<BR> IMAGEPATH "/srv/www/htdocs/ms_tmp/" <BR> IMAGEURL "/ms_tmp/"<BR> METADATA<BR> "wms_title" "Test"<BR> "wms_onlineresource" "<A href="http://hhhhhhhhh/mapserv/wt?service=WMS">http://hhhhhhhhh/mapserv/wt?service=WMS
</A>"<BR> "wms_srs" "epsg:9823 epsg:4326 epsg:54004"<BR> END<BR>END<BR><BR>PROJECTION<BR> "init=epsg:54004"<BR>END<BR><BR>LAYER<BR> NAME k92_strandlinje<BR> DEBUG ON<BR> METADATA <BR> "wms_title" "k92_strandlinje"<BR> "wms_srs" "EPSG:4326"<BR> END<BR> TYPE POLYGON<BR> STATUS ON<BR> CONNECTIONTYPE postgis<BR> CONNECTION "user=postgres password=xxx dbname=xxx host=localhost" <BR> DATA 'the_geom from k92_strandlin_polygon'<BR> PROJECTION<BR> "init=epsg:4326"<BR> END<BR> CLASS<BR> NAME "strandlin-pgx"<BR> COLOR 255 251 237<BR> OUTLINECOLOR 100 100 100<BR> END <BR>END<BR><BR>END<BR><BR><BR>/Regards
Bengt<BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE> <DIV><BR></DIV><p>
<hr size=1>Yahoo! Photos<br>
Ring in the New Year with <a href="http://us.rd.yahoo.com/mail_us/taglines/photos/*http://pa.yahoo.com/*http://us.rd.yahoo.com/mail_us/taglines/photos/evt=38087/*http://pg.photos.yahoo.com/ph//page?.file=calendar_splash.html&.dir=">Photo Calendars</a>. Add photos, events, holidays, whatever.