[Mapserver-users] Graticule problem

Sebastian Albrecht api at justapi.de
Wed Nov 26 00:06:14 PST 2003


Hi Ann,

I just asked that question two days ago - using a mercator projection.
The problem is the grid's maximum latitude values are -90 and 90. If
you enter those values manually in PROJ4 using your projection you
might see * is returned. I suppose this shall be something like
infinite (-90 and 90 with mercator) or undefined.

I had the same problem with a coastline shapefile that had a line from
-180 -90 to 180 -90 to border the bottom of the Antarctica polygon and
I had the same problem (screenshots http://justapi.de/mapserv). I
solved it by just moving that line to (-180 -89.5) (180 -89.5).

John Novak who developed that GRID feature wrote me yesterday he would
have a look at the problem after Thanksgiving.

Best regards,
Sebastian Albrecht



> I'm having a problem adding a GRID layer to an albers projected map. 
> The grid is fine, except that it adds a couple of extra lines which 
> intersect at the center of the projection.  An example of this is here:

> http://www.etl.noaa.gov/tmp/NEAQS-ITCT106980036229689.png


> Has any seen this or bet yet fixed it?

> Thanks-
> Ann


> The map file has the overall projection:

> EXTENT -4530061.9375 89.6875 3618936.0 713.75 # Albers
> UNITS METERS

> PROJECTION
> "+proj=aea +lat_0=40.0 +lon_0=-40.0 lat_1=29.5 lat_2=45.5 "
> END

> And the GRID layer is:

> LAYER
> NAME "GRID"
> TRANSPARENCY 30

> PROJECTION
>   "proj=latlong"
> END
> TYPE LINE
> STATUS DEFAULT
> CLASS
>    COLOR 0 0 0
>    LABEL
>    TYPE BITMAP
>    SIZE MEDIUM
>    COLOR 0 0 0
>    OUTLINECOLOR 255 255 255
> END
> END
> GRID
>   MINSUBDIVIDE 64
>   MAXSUBDIVIDE 64
>   MININTERVAL 10
>   MAXINTERVAL 10
>   LABELFORMAT "DDMM"
>   END
> END

> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list