[mapserver-users] Re: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer

Robert Hicks robhyx at gmail.com
Tue Feb 19 12:30:43 EST 2008


Here is more of a verbose output on one of the images that is experiencing
the strange projection problem. Again this is a problem where duplicate tifs
are showing up when being reprojected on the fly with Mapserver, showing up
in different parts of the world.

$ gdalinfo full_w18_4.tif
Driver: GTiff/GeoTIFF
Files: full_w18_4.tif
Size is 2000, 2000
Coordinate System is:
PROJCS["NAD83 / UTM zone 15N",
    GEOGCS["NAD83",
        DATUM["North_American_Datum_1983",
            SPHEROID["GRS 1980",6378137,298.2572221010002,
                AUTHORITY["EPSG","7019"]],
            AUTHORITY["EPSG","6269"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4269"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",-93],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","26915"]]
Origin = (669899.999999790450000,3359100.000000209500000)
Pixel Size = (0.299999999930151,-0.299999999930151)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  669900.000, 3359100.000) ( 91d13'56.25"W, 30d21'6.70"N)
Lower Left  (  669900.000, 3358500.000) ( 91d13'56.60"W, 30d20'47.21"N)
Upper Right (  670500.000, 3359100.000) ( 91d13'33.79"W, 30d21'6.39"N)
Lower Right (  670500.000, 3358500.000) ( 91d13'34.14"W, 30d20'46.91"N)
Center      (  670200.000, 3358800.000) ( 91d13'45.19"W, 30d20'56.80"N)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
  NoData Value=1
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
  NoData Value=1
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
  NoData Value=1

On Feb 15, 2008 3:18 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote:

>  Robert,
>
> Please reply to the list too, there are a lot of people on the list who
> know a lot more about this than I do.
>
> It would be useful to see a more verbose output on both of the commands,
> not necessarily for each feature in the tileindex, but at least the extent,
> etc.
>
> David.
>
>  -----Original Message-----
> *From:* Robert Hicks [mailto:robhyx at gmail.com]
> *Sent:* Friday, February 15, 2008 11:02 AM
> *To:* Fawcett, David
> *Subject:* Re: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer
>
> $ gdalinfo img.tif | grep EPSG
>               AUTHORITY["EPSG","7019"]],
>           AUTHORITY["EPSG","6269"]],
>       AUTHORITY["EPSG","4269"]],
>       AUTHORITY["EPSG","9001"]],
>   AUTHORITY["EPSG","26915"]]
>
> ------------------------------------------------------------
>
> $ ogrinfo 128Resolution.shp
> INFO: Open of `128Resolution.shp'
>       using driver `ESRI Shapefile' successful.
> 1: 128Resolution (Polygon)
>
> On Fri, Feb 15, 2008 at 11:31 AM, Fawcett, David <
> David.Fawcett at state.mn.us> wrote:
>
> >  This looks like a projection issue.
> >
> > If you run ogrinfo on the tile index what do you get?
> >
> > How about if you run gdalinfo on one of the image tiles?
> >
> >  -----Original Message-----
> > *From:* Robert Hicks [mailto:robhyx at gmail.com]
> > *Sent:* Friday, February 15, 2008 10:23 AM
> > *To:* Fawcett, David
> > *Subject:* Re: [UMN_MAPSERVER-USERS] Strange Projection Issue in
> > MapServer
> >
> > Sure thing, thanks David.
> >
> > I am using MapServer for Windows version 2.2.6, I have attached both
> > again for you.
> >
> > Thanks,
> >
> > Rob
> >
> > On Fri, Feb 15, 2008 at 10:47 AM, Fawcett, David <
> > David.Fawcett at state.mn.us> wrote:
> >
> > > Robert,
> > >
> > > Can you post the text of your map file and the version of MapServer
> > > that
> > > you are using?
> > >
> > > I also didn't see the .png attachment come through.
> > >
> > > David.
> > >
> > > -----Original Message-----
> > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]
> > > On
> > > Behalf Of Robert Hyx
> > > Sent: Friday, February 15, 2008 9:30 AM
> > > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > > Subject: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer
> > >
> > >
> > > Hello Everyone,
> > >
> > > I am having a strange problem with mapserver and reprojecting on the
> > > fly. I have some imagery in mapserver that has been processed but is
> > > still kept in its native projection 26915, and when I use the
> > >
> > > PROJECTION
> > >  "init=epsg:4326"
> > > END
> > >
> > > in the header (above the paths of the shape files)
> > >
> > > and I use
> > >
> > > PROJECTION
> > >  "init=epsg:26915"
> > > END
> > >
> > > in each layer (above the path of each shape file), I get another
> > > version
> > > of the imagery over on the other side of the world in addition to the
> > > normal version of the imagery that appears in the correct place.
> > >
> > > I have attached a png of what the imagery that appears in the
> > > incorrect
> > > place looks like. Any help would be greatly appreciated.
> > >
> > > Thanks,
> > >
> > > Robert
> > >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080219/f97f8f34/attachment.html


More information about the mapserver-users mailing list