[mapserver-users] Geo-Referencing questions

Rebecca Maurer rebecca.a.maurer at gmail.com
Fri Jul 17 17:03:33 EDT 2009


Alright, so after some great help last week from some people on this
listhost, I have mapserver up and running on my local apache webserver. Now,
however, I have tons of newbie questions, so sorry if these are painfully
obvious/ignorant. I've spent a lot of time reading through documentation,
and these are the things I still don't understand.

My goal right now for the project I'm working is to use a .jpeg of my
neighborhood, geo-reference it, and then get different "line" shapefiles
with all the different bus routes and shuttles up. I have a bunch of
questions in trying to accomplish this.

First of all, I downloaded HyperCube and used Google Earth to get four
longitude/latitude points that I could identify on my .jpeg of my
neighborhood. Then used the Image to Reference Coordinates utility on
HyperCube to add in this data, then resave this as a .tif.

I was sort of skeptical that this could actually make it a geo-referenced
TIFF file, so I called gdalinfo on it and got:

/gdalinfo /Library/WebServer/Documents/TrialCampusMap.tif
Warning 1: TIFFReadDirectoryCheckOrder:Invalid TIFF directory; tags are not
sorted in ascending order
Warning 1: TIFFFetchNormalTag:ASCII value for tag "GeoASCIIParams" does not
end in null byte
Driver: GTiff/GeoTIFF
Size is 1439, 1804
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.2572235630016,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
GeoTransform =
  -87.60760613250471, 1.981903295209896e-05, -7.648849138569716e-08
  41.80965128643957, 3.093930015634964e-07, -1.475797871914549e-05
Metadata:
  AREA_OR_POINT=Point
  TIFFTAG_XRESOLUTION=72
  TIFFTAG_YRESOLUTION=72
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  ( -87.6076061,  41.8096513) ( 87d36'27.38"W, 41d48'34.74"N)
Lower Left  ( -87.6077441,  41.7830279) ( 87d36'27.88"W, 41d46'58.90"N)
Upper Right ( -87.5790865,  41.8100965) ( 87d34'44.71"W, 41d48'36.35"N)
Lower Right ( -87.5792245,  41.7834731) ( 87d34'45.21"W, 41d47'0.50"N)
Center      ( -87.5934153,  41.7965622) ( 87d35'36.30"W, 41d47'47.62"N)
Band 1 Block=1439x1 Type=Byte, ColorInterp=Red
Band 2 Block=1439x1 Type=Byte, ColorInterp=Green
Band 3 Block=1439x1 Type=Byte, ColorInterp=Blue

First of all -- what are the differences between the two different sets of
coordinates in parentheses for "upper left/ lower left.....etc". Next, is
this actually a GeoTiff? And moreover, what do I do with it now? I tried
displaying it as

        LAYER
                NAME "campusmap"
                TYPE RASTER
                STATUS ON
                DATA "TrialCampusMap.tif"
                CLASSITEM "[pixel]"

with a GeoTiff OUTPUTFORMAT and also with different types of files as
IMAGETYPE. But each time, the image came out as horrible quality, and oddly
tilted (though it might be tilted so that the latitude line is the
horizontal axis?). Also, I wasn't sure what to use for the EXTENT, and used
the numbers -87.60 41.75 -87.57 41.81 which seemed to display the whole map,
but this was only after some trial and error with the upperleft/lowerleft,
etc. data. How can I normally find the EXTENT?

Second of all - I want to start adding some Vector layers, but the problem
is that no shapefiles or anything exist for the data I want to add. I
googled about a bit, but didn't find any good advice on how to make your own
Vector data from personal knowledge. Can anybody point me in the right
direction on this?

Thank you very much,

Rebecca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090717/5fa598c3/attachment.html


More information about the mapserver-users mailing list