[mapserver-users] Photo Viewer
Basques, Bob (CI-StPaul)
bob.basques at ci.stpaul.mn.us
Thu Feb 14 14:16:49 PST 2013
Ok, I sort of got something to work . . .
http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map
http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map?mapext=750+600+1100+925
Danged if I can figure out how to rotate the image (via the world file), nothing is happening with edits to the world file.
Still not responding to all the CGI parameters either.
MAPFILE:
MAP
NAME PHOTO
SIZE 2048 1536
EXTENT 0 0 2048 1536
UNITS feet
LAYER
NAME "photo"
DATA "up_a_tree.jpg"
TYPE RASTER
TRANSFORM FALSE
STATUS DEFAULT
UNITS PIXELS
END
END
WORLD FILE:
1.0000
0.0000
0.0000
1.0000
0.5
0.5
bobb
________________________________
From: Lime, Steve D (MNIT)
Sent: Thursday, February 14, 2013 10:53 AM
To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users at lists.osgeo.org
Subject: RE: Photo Viewer
I would think it could be done, your extent would be given in pixels. Full extent is given as 0 0 width-1 height-1. Depends if the raster code respects the layer TRANSFORM parameter.
Steve
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul)
Sent: Thursday, February 14, 2013 10:34 AM
To: Weisbender, Eric; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Photo Viewer
Eric,
Interesting idea. I remember a thread a few years back about something similar being asked.
As far as the geo-referencing part, you can simply use the size of the image as your reference coordinate system for each image. Mapserver is more generally suit towards combining different data into a single output, thus the need for a coordinate system to reference more than one layer.
So, the real question boils down to a technique for fooling MapServer into some sort of projection some how for each image. Let me think on this a bit. I wonder though about setting up something to register images to a location via a loading form which grabs the image size, etc. Then they are put away with the sudo projection assigned to each image at the uploading point.
Bobb
From: mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric
Sent: Thursday, February 14, 2013 10:03 AM
To: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] Photo Viewer
I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated.
Thanks,
Eric Weisbender
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130214/8a9c0c19/attachment.htm>
More information about the MapServer-users
mailing list