[Mapserver-users] Projection Help
Delfos, Jacob
jacob.delfos at maunsell.com
Wed Apr 7 18:01:25 PDT 2004
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C41D05.0425BAC0
Content-Type: text/plain
Yes, it will. If you use 'rectify', in the georeference toolbar, it will
output a georeferenced and rectified TIFF file, with a TFW file. That file
should be in the right spot, except if you got your projections mixed up;
Your new TIFF file will probably have the same projection as the data frame,
which hopefully has the same projection as your data. If it still sits in
the wrong spot, then I think your data frame has a different projection from
your data, and consequently assigns that wrong projection to your TIFF file.
Regards,
Jacob
-----Original Message-----
From: Paul VanDyke [mailto:pvandyke at kib.co.kodiak.ak.us
<mailto:pvandyke at kib.co.kodiak.ak.us> ]
Sent: Thursday, 8 April 2004 08:32
To: Delfos, Jacob
Cc: mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Projection Help
I would agree, but the original photo never had any spatial information
associated with it. It was just some picture from the web. Yes the raster
is sitting in the right location relative to the shapefiles. How do I get
the georeferencing data from the .aux file to the .tfw file? I thought by
selecting rectify, it would create a new file with the correct info..
Thanks,
Paul
-----Original Message-----
From: Delfos, Jacob [mailto:jacob.delfos at maunsell.com
<mailto:jacob.delfos at maunsell.com> ]
Sent: Wednesday, April 07, 2004 3:54 PM
To: Paul VanDyke
Cc: mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Projection Help
Paul,
The moment you crop a photo, whatever spatial referencing information (where
it sits in geographic space) you had becomes invalid, because that
information is usually based on the absolute location of a corner of the
image, plus information on the geographic size of a pixel. You are far
better of leaving your imagery intact (especially when you're debugging).
Pyramids in ArcMap make it faster, but I don't like them because they
decrease graphic quality. It is just an indexing method to make it display
faster.
It says it's missing "spatial reference information" because it doesn't know
where your image should sit in real-time space (even if you had a .jpw or
.wld file with information on its location, it would be invalid after you
cropped it).
You said through georeferencing, you expand it to the right proportions. Do
you mean location as well? If you got your image to sit in the rigth spot,
based on other information you had (roads, or whatever you used), then
you're better off creating an ortho-image: In the 'georeferencing' toolbar,
select 'rectify'. This button only activates if you changed the location of
your image. It will output a TIFF file with a TFW file. These files will be
georeferenced, and sit in the right spot. Theoretically, mapserver can
display these.
The reason that what you did isn't working is probably that ArcMap saves
georeferencing information (shifts, scale change, etc.) to a .AUX file. This
information is not read by mapserver, so it will only be in the right spot
when opened in ArcMap. That is why you have to output a TIFF, because then
it will simply re-create the image with your modifications built into it,
and a correct .tfw file.
But like I said, normally you're better off to stick with your original
image, find out its extents, and maybe write a jpw file for it. The more you
resample, the more quality you lose.
Regards,
Jacob
-----Original Message-----
From: Paul VanDyke [mailto:pvandyke at kib.co.kodiak.ak.us
<mailto:pvandyke at kib.co.kodiak.ak.us> ]
Sent: Thursday, 8 April 2004 06:16
To: Frank Warmerdam
Cc: mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Projection Help
I'm sorry for not being too specific, but I didn't know what information was
necessary. Thank you for the questions.
Here's what I'm doing:
I acquired a .jpg satellite picture of Alaska that was 5202x4002 pixels. I
cropped it to 1800x1162 pixels (to include only the relevant parts) and
saved it as a 24-bit uncompress RGB .tif file
When I add it to ArcMap, it prompts me to build pyramids, which I say YES to
and then I get a message that says, "One or more layers is missing spacial
reference information. Data from those layers cannot be projected."
The raster shows up a just a spec on the map, but thru the georeferencing
process, I expand it to the proper proportions and then output a recitfied
image. I realize that this image is going to be very grainy when zoomed in,
but it's just a birds eye view (a very high
bird/satellite) of our island.
The rectified .tif does not have a coordinate system defined for it yet as
checked with the LISTGEO command.
Then I assign it a projection from within ArcCatalog by right-clicking and
selecting properties; choosing the "Spacial Reference" tab and clicking
Edit; I then choose Import and select one of the shape files that is on the
map and import it's coordinate sytem, which happens to be
NAD_1927_StatePlane_Alaska_5_FIPS_5005.
When I look at my MapServer output, the raster is plotted south of the
shapefile by a big stretch. I originally said 100 miles but I think it's
probably more like 700 miles. Changing the projection in my .map file from
init=epsg:26705 to init=epsg:26735 make the map disappear entirely. One of
the rasters that work is of type 26705, but the shapefile that I'm working
with is 26735.
Please feel free to comment on my proceedures. Maybe I'm missing a step,
but it all looks good in ArcMap...
Thanks,
Paul
-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com
<mailto:warmerdam at pobox.com> ]
Sent: Wednesday, April 07, 2004 9:29 AM
To: Paul VanDyke
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Projection Help
Paul VanDyke wrote:
> Most of my raster images are working great and I am very thankful to
> those who helped me. However, I am having problems with a few of my
> rasters and I'm scratching my head...
>
> I am adding them as a layer to my ArcMap project, doing the
> georeferencing, then exporting them out. I've gotten a few to work,
> but others haven't. The last one I did showed up on my MapServer map
> about 100 miles south of where it should have been. I've tried
> playing with the projection in my .map file and I've tried defining
> the spacial information in ArcCatalog. I realize that I don't have
> the knowledge/background/training to do the job that I'm doing, and so
> I am asking for help from this community. If you can provide me with
> any links/websites with further information, I'd be very appreciative.
> If you can tell me why my raster displays 100 miles south (roughly) of
> where it's supposed to, I'd be indebted.
>
> The map in question is Map 9 at http://209.165.152.73
<http://209.165.152.73> and you'll have
> to zoom out to the south to see what I'm talking about.
Paul,
This isn't much for us to go on.
Where did you get the data? Did it come with any coordinate system
information or other metadata that might be helpful? Can you go back to the
source to get such information? Does it display properly in ArcMap? What
projection definition are you using now? Why? Do you have other layers
that are working properly? What coordinate system are you using for them?
A 100 mile error could be the result of a number of things. Perhaps you are
using the wrong state plane zone, or are missing false easting/northings.
What it is not is a datum/ellipsoid error since those errors would be tiny
by comparison.
Best regards,
--
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
<http://pobox.com/~warmerdam>
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
<http://lists.gis.umn.edu/mailman/listinfo/mapserver-users>
------_=_NextPart_001_01C41D05.0425BAC0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Mapserver-users] Projection Help</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Yes, it will. If you use =
'rectify', in the georeference toolbar, it will output a georeferenced =
and rectified TIFF file, with a TFW file. That file should be in the =
right spot, except if you got your projections mixed up; Your new TIFF =
file will probably have the same projection as the data frame, which =
hopefully has the same projection as your data. If it still sits in the =
wrong spot, then I think your data frame has a different projection =
from your data, and consequently assigns that wrong projection to your =
TIFF file.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Regards,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Jacob</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">-----Original =
Message-----</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">From: Paul VanDyke [</FONT><A =
HREF=3D"mailto:pvandyke at kib.co.kodiak.ak.us"><U><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Courier =
New">mailto:pvandyke at kib.co.kodiak.ak.us</FONT></U></A><FONT SIZE=3D2 =
FACE=3D"Courier New">] </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Sent: Thursday, 8 April 2004 =
08:32</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">To: Delfos, Jacob</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Cc: =
mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Subject: RE: [Mapserver-users] =
Projection Help</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">I would agree, but the original =
photo never had any spatial information associated with it. It =
was just some picture from the web. Yes the raster is sitting in =
the right location relative to the shapefiles. How do I get the =
georeferencing data from the .aux file to the .tfw file? I =
thought by selecting rectify, it would create a new file with the =
correct info..</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Thanks,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Paul</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">-----Original =
Message-----</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">From: Delfos, Jacob [</FONT><A =
HREF=3D"mailto:jacob.delfos at maunsell.com"><U><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Courier =
New">mailto:jacob.delfos at maunsell.com</FONT></U></A><FONT SIZE=3D2 =
FACE=3D"Courier New">] </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Sent: Wednesday, April 07, 2004 =
3:54 PM</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">To: Paul VanDyke</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Cc: =
mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Subject: RE: [Mapserver-users] =
Projection Help</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Paul,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">The moment you crop a photo, =
whatever spatial referencing information (where it sits in geographic =
space) you had becomes invalid, because that information is usually =
based on the absolute location of a corner of the image, plus =
information on the geographic size of a pixel. You are far better of =
leaving your imagery intact (especially when you're =
debugging).</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Pyramids in ArcMap make it =
faster, but I don't like them because they decrease graphic quality. It =
is just an indexing method to make it display faster.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">It says it's missing =
"spatial reference information" because it doesn't know where =
your image should sit in real-time space (even if you had a .jpw or =
.wld file with information on its location, it would be invalid after =
you cropped it).</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">You said through georeferencing, =
you expand it to the right proportions. Do you mean location as well? =
If you got your image to sit in the rigth spot, based on other =
information you had (roads, or whatever you used), then you're better =
off creating an ortho-image: In the 'georeferencing' toolbar, select =
'rectify'. This button only activates if you changed the location of =
your image. It will output a TIFF file with a TFW file. These files =
will be georeferenced, and sit in the right spot. Theoretically, =
mapserver can display these.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">The reason that what you did =
isn't working is probably that ArcMap saves georeferencing information =
(shifts, scale change, etc.) to a .AUX file. This information is not =
read by mapserver, so it will only be in the right spot when opened in =
ArcMap. That is why you have to output a TIFF, because then it will =
simply re-create the image with your modifications built into it, and a =
correct .tfw file.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">But like I said, normally you're =
better off to stick with your original image, find out its extents, and =
maybe write a jpw file for it. The more you resample, the more quality =
you lose.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Regards,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Jacob</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">-----Original =
Message-----</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">From: Paul VanDyke [</FONT><A =
HREF=3D"mailto:pvandyke at kib.co.kodiak.ak.us"><U><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Courier =
New">mailto:pvandyke at kib.co.kodiak.ak.us</FONT></U></A><FONT SIZE=3D2 =
FACE=3D"Courier New">] </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Sent: Thursday, 8 April 2004 =
06:16</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">To: Frank Warmerdam</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Cc: =
mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Subject: RE: [Mapserver-users] =
Projection Help</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">I'm sorry for not being too =
specific, but I didn't know what information was necessary. Thank =
you for the questions.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Here's what I'm doing:</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">I acquired a .jpg satellite =
picture of Alaska that was 5202x4002 pixels. I cropped it to 1800x1162 =
pixels (to include only the relevant parts) and saved it as a 24-bit =
uncompress RGB .tif file</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">When I add it to ArcMap, it =
prompts me to build pyramids, which I say YES to and then I get a =
message that says, "One or more layers is missing spacial =
reference information. Data from those layers cannot be =
projected."</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">The raster shows up a just a =
spec on the map, but thru the georeferencing process, I expand it to =
the proper proportions and then output a recitfied image. I =
realize that this image is going to be very grainy when zoomed in, but =
it's just a birds eye view (a very high</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">bird/satellite) of our =
island.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">The rectified .tif does not have =
a coordinate system defined for it yet as checked with the LISTGEO =
command.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Then I assign it a projection =
from within ArcCatalog by right-clicking and selecting properties; =
choosing the "Spacial Reference" tab and clicking Edit; I =
then choose Import and select one of the shape files that is on the map =
and import it's coordinate sytem, which happens to be =
NAD_1927_StatePlane_Alaska_5_FIPS_5005.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">When I look at my MapServer =
output, the raster is plotted south of the shapefile by a big stretch. =
I originally said 100 miles but I think it's probably more like 700 =
miles. Changing the projection in my .map file from =
init=3Depsg:26705 to init=3Depsg:26735 make the map disappear entirely. =
One of the rasters that work is of type 26705, but the shapefile that =
I'm working with is 26735.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Please feel free to comment on =
my proceedures. Maybe I'm missing a step, but it all looks good =
in ArcMap...</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Thanks,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Paul</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">-----Original =
Message-----</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">From: Frank Warmerdam =
[</FONT><A HREF=3D"mailto:warmerdam at pobox.com"><U><FONT =
COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier =
New">mailto:warmerdam at pobox.com</FONT></U></A><FONT SIZE=3D2 =
FACE=3D"Courier New">] </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Sent: Wednesday, April 07, 2004 =
9:29 AM</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">To: Paul VanDyke</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Cc: =
mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Subject: Re: [Mapserver-users] =
Projection Help</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Paul VanDyke wrote:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> Most of my raster images =
are working great and I am very thankful to </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> those who helped me. =
However, I am having problems with a few of my </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> rasters and I'm scratching =
my head...</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> I am adding them as a =
layer to my ArcMap project, doing the </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> georeferencing, then =
exporting them out. I've gotten a few to work, </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> but others haven't. =
The last one I did showed up on my MapServer map </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> about 100 miles south of =
where it should have been. I've tried </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> playing with the =
projection in my .map file and I've tried defining </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> the spacial information in =
ArcCatalog. I realize that I don't have </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> the =
knowledge/background/training to do the job that I'm doing, and =
so</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">> I am asking for help from =
this community. If you can provide me with </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> any links/websites with =
further information, I'd be very appreciative.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">> If you can tell me why my =
raster displays 100 miles south (roughly) of</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">> where it's supposed to, I'd =
be indebted.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> The map in question is Map =
9 at </FONT><A HREF=3D"http://209.165.152.73"><U><FONT =
COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier =
New">http://209.165.152.73</FONT></U></A><FONT SIZE=3D2 FACE=3D"Courier =
New"> and you'll have </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">> to zoom out to the south =
to see what I'm talking about.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Paul,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">This isn't much for us to go =
on.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Where did you get the =
data? Did it come with any coordinate system information or other =
metadata that might be helpful? Can you go back to the source to =
get such information? Does it display properly in ArcMap? What =
projection definition are you using now? Why? Do you have =
other layers that are working properly? What coordinate system =
are you using for them?</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">A 100 mile error could be the =
result of a number of things. Perhaps you are using the wrong =
state plane zone, or are missing false easting/northings. What it is =
not is a datum/ellipsoid error since those errors would be tiny by =
comparison.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Best regards,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">-- </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">---------------------------------------+---------------------------=
-----</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">---------------------------------------+------</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">I set the clouds in motion - =
turn up | Frank Warmerdam,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">warmerdam at pobox.com</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">light and sound - activate the =
windows | </FONT><A HREF=3D"http://pobox.com/~warmerdam"><U><FONT =
COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier =
New">http://pobox.com/~warmerdam</FONT></U></A>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">and watch the world go round - =
Rush | Geospatial Programmer for Rent</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier =
New">_______________________________________________</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Mapserver-users mailing =
list</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">Mapserver-users at lists.gis.umn.edu </FONT><A =
HREF=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users"><U><F=
ONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier =
New">http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</FONT></U=
></A>
</P>
<BR>
</BODY>
</HTML>
------_=_NextPart_001_01C41D05.0425BAC0--
More information about the MapServer-users
mailing list