Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can PNG, JPG and WBMP files be georeferenced and stored that way?

2,357 views
Skip to first unread message

Craig Mackay

unread,
Jul 2, 2002, 10:54:10 AM7/2/02
to

Can PNG, JPG and WBMP files be georeferenced and stored that way?  Like GeoTiff?

Any information on this would be appreciated
 
Regards
 

Paul Cooper

unread,
Jul 2, 2002, 11:56:41 AM7/2/02
to
Not generically. GeoTIFF has a special part of the "header" information
that holds georeferencing information - it is an extension of the
standard TIFF format. TIFF is by design extensible, so this is
straightforward. The other image formats are less extensible, so you
can't do it within the file. However, you can use an ancillary file
called a world file to specify the conversion between pixel coordinates
and map coordinates. The format of this file (if it is available in your
GIS) may vary. ESRI products use the following 6 parameter affine
transformation:

If

X1 = Ax + By + C
Y1 = Dx + Ey + F

Where X1,Y1 are map coordinates and x,y are pixel coordinates

The the world file contains the parameters A - F in the order
A,D,B,E,C,F, each on a separate line. E is normally negative because
images are often stored from top to bottom, requiring the Y dimension to
be inverted. If the image is aligned parallel to the coordinate system
then D and B will be zero, A and B will be the pixel size and C and F
will be the map coordinates of the first pixel.

World files are usually named with a suffix such as tfw for TIFF.

Paul

Stichting ST

unread,
Jul 2, 2002, 1:41:07 PM7/2/02
to
On Tue, 2 Jul 2002 15:54:10 +0100, "Craig Mackay" <i-cr...@microsoft.com>
wrote:

>Can PNG, JPG and WBMP files be georeferenced and stored that way? Like GeoTiff?
>
>Any information on this would be appreciated
>
>Regards

For the png format see:
http://gis.nrcan.gc.ca/webgis/webmap7.htm
where is told:
"PNG is the most useful of the raster imagery formats for GIS use. The
extensibility of the format means that georeferencing capability could be
incorporated as a tagged data block. Other metadata information such as
spheroid, projection, and vertical datum could also be stored. "

yes 'could' but I do not know of any implementation. Somewhere I found a
remark (sorry cannot trace it back) about the GeoTIFF geo-information being in
special fields in the picturefile 'the same way as PNG makes this possible'.

Piet


0 new messages