[maplab-users] Re: projection type

Nasir Mahmood nasir_maplab at yahoo.com
Fri Dec 17 16:46:47 EST 2004


Jeff,
 
Thank a lot for your detailed description to get out of problem. I followed your instructions but problem exists. I added folllowing lines to map file..


MAP

NAME "Demo"

STATUS ON

EXTENT -31.283337 27.637497 31.581963 71.120804 

SIZE 400 300 

SHAPEPATH "./data"

SYMBOLSET "./etc/symbols.sym"

FONTSET "./etc/fonts.txt"

IMAGETYPE PNG

IMAGECOLOR 255 255 255

UNITS MILES

LAYER

NAME "Europe"

STATUS ON

DATA "europe"

TYPE POLYGON

CLASS

NAME "Europe"

OUTLINECOLOR 60 60 60

COLOR 255 255 0

END

END

# Layer

END
 
Best Regards,
Nasir

Jeff McKenna <jmckenna at dmsolutions.ca> wrote:
Nasir,

I'll attempt to get you going.

The easiest way to view your new shapefile data is to remove all of the 
other layers in the mapfile...leave only your new layer.

Next you need to specify the correct extents for the layer. Modify the 
EXTENT parameter in the mapfile 
(http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#map) to your 
data's extents. You should be able to get the extents of your data view 
in ArcView.

MAP
NAME "DEMO"
STATUS ON
EXTENT -2200000 -712631 3072800 3840000 <----- modify this line

Next modify the UNITS parameter of your mapfile to machine your data's 
units (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#map). 
Arcview will display the cursor coordinates which may help you determine 
what units it is.

MAP
NAME "DEMO"
STATUS ON
EXTENT -2200000 -712631 3072800 3840000
SIZE 400 300
SHAPEPATH "./data"
SYMBOLSET "./etc/symbols.sym"
FONTSET "./etc/fonts.txt"
IMAGETYPE PNG
IMAGECOLOR 255 255 255
UNITS METERS <------ change this


Now you should be able to view your data in MapEdit. The way i just 
explained avoids any issues regarding projections. It's the simplest 
way to see your data in MapServer.

If you want to use your data with data in another projection..well 
that's more difficult. Let me know if you want to get into that.

jeff






Nasir Mahmood wrote:
> Hi Zak,
> I dont know how can I come to know it exactly. I tried to find out the 
> properties in ArcView 3.3
> *Category: Projections of the World*
> *Type: Geographic*
> Looking forward to hear you....
> 
> Best Regards,
> Nasir
> 
> */Zak James /* wrote:
> 
> Hi Nasir,
> 
> It's likely that the problem is a mismatch between the way your own
> shapefiles are projected and the projection in the mapfile. Do you
> know what projection the data contained in the shapefile are in?
> 
> zak
> 
> On Fri, 17 Dec 2004 10:31:24 -0800 (PST), Nasir Mahmood
> wrote:
> > Hi all,
> >
> > I am trying to create map files using MapEdit.
> > I have include only layer into Map object. It works with the shp
> files given
> > with tutorial of Maplab but it doesn't with my own shp files. It
> doesn't
> > give any error with my shp files but an empty map image.
> >
> > Please, let me know where could be a problem....
> >
> > Best Regards,
> > Nasir
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has ! the best spam protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > Maplab-users mailing list
> > Maplab-users at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/maplab-users
> >
> >
> >
> 
> 
> -- 
> --
> Zak James
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
> 
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Mail 
> 
> - You care about security. So do we.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users



		
---------------------------------
Do you Yahoo!?
 Meet the all-new My Yahoo! – Try it today! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20041217/9cc193b7/attachment.html


More information about the Maplab-users mailing list