[mapserver-users] subsetted output, but I don't want that
Even Rouault
even.rouault at mines-paris.org
Wed Nov 9 11:50:04 PST 2011
Le mercredi 09 novembre 2011 20:46:54, Kevin Ward a écrit :
> No, it's just a plain PNG. I was operating under the assumption that
> the EXTENT and UNITS parameters in the mapfile would define the
> coordinates of the source image but perhaps that is only constraining
> the output?
>
> If that is the case, how can I go about providing georeference for an
> image such as that?
PNG has no native support for georeferencing. If it is important for you, then
consider using GeoTIFF as output format with GDAL/GTiff : see
http://mapserver.org/mapfile/outputformat.html
>
> Kevin
>
> On Wed, Nov 9, 2011 at 11:35 AM, Fawcett, David (MPCA)
>
> <David.Fawcett at state.mn.us> wrote:
> > Is the raster georeferenced? It kind of sounds like it is using pixel
> > coordinates instead of coordinates from a spatial reference system.
> >
> > What do you get if you run gdalinfo on the image file?
> >
> > David.
> >
> > -----Original Message-----
> > From: mapserver-users-bounces at lists.osgeo.org
> > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of kablukiw
> > Sent: Wednesday, November 09, 2011 1:33 PM
> > To: mapserver-users at lists.osgeo.org
> > Subject: [mapserver-users] subsetted output, but I don't want that
> >
> > I am new to mapserver and am experiencing difficulty with the output
> > being generated by mapserv.exe (using OSGeo4W). The output I am getting
> > is showing a subset of the original image even though I am not
> > specifying any extents that would indicate I want anything other than
> > the full image.
> >
> > The source file is a global image 1440x720 and the output I get is also
> > 1440x720 but is showing only the bottom left 180x90 pixels of the source
> > image resized to 720x360 and placed in the upper right of the output
> > image.
> >
> > http://osgeo-org.1803224.n2.nabble.com/file/n6979235/test.png example
> > output
> >
> > It seems as if the EXTENT is affecting the extent of the output but I'm
> > not sure how. I am currently testing this from the cmd line with the
> > following (I have seen the same issue when testing this mapfile with
> > OpenLayers):
> >
> > mapserv.exe -nh
> > "QUERY_STRING=map=c:/OSGeo4W/apache/htdocs/kevin/lst.map&mode=map" >
> > test.png
> >
> > My map file:
> >
> > MAP
> > NAME "LST"
> > SIZE 1440 720
> > EXTENT -180 -90 180 90
> > UNITS DD
> > SHAPEPATH "c:/OSGeo4W/apache/htdocs/kevin/"
> > IMAGECOLOR 255 255 255
> > IMAGETYPE PNG
> > STATUS ON
> > DEBUG ON
> >
> > LAYER
> > NAME "LST"
> > TYPE RASTER
> > STATUS DEFAULT
> > DATA "lst_1440.png"
> > OFFSITE 0 0 0
> > END # LAYER
> > END # MAP
> >
> > Any suggestions would be greatly appreciated. Thanks,
> >
> > Kevin
> >
> > --
> > View this message in context:
> > http://osgeo-org.1803224.n2.nabble.com/subsetted-output-but-I-don-t-want
> > -that-tp6979235p6979235.html Sent from the Mapserver - User mailing list
> > archive at Nabble.com. _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list