[mapserver-users] Examples using projection?

Mike Neuman mcn at engarde.com
Mon Jul 23 01:57:29 EDT 2001


  I'm trying to draw individual states, but am having serious problems
getting the projection to make any sense. Does anyone have examples I can
look at?

  As an example of my problems, I draw the state of Minnesota. It looks
really elongated (since most people are used to seeing it as LCC). So, I do:
  $map->setProjection("proj=lcc,lat_0=33,lat_1=45,lon_0=-93");

  This works, and I get an LCC projection of Minnesota, but only if I redo
the extents using the PROJ.4 program. Even then, a good portion of the
bottom of the state is lopped off.

  By playing with the numbers, I discover I can set minx=-1 maxx=1, and the
miny and maxy to some value gotten from PROJ4 (+ or - some error so I don't
lose the bottom of the state). This doesn't seem right.

  Since Mapserver automatically recomputes ALL layers (and drawn points) in
the new projection, why can't it recompute extents? Or does it, and I'm
missing something?

  Thanks!

-Mike




More information about the mapserver-users mailing list