The image module in the plugin group provides access to the 'world plus image' file formats.
This is the quickest way to get a GIF or JEPG onto a map display - simply add a small text file along side the image defining the image's extend and use this plugin.
Example Code
// example needed
Supported Formats
Depending on how you have JAI / Image IO set up the following should be supported:
- jpeg
- png
- gif
World File
a small text file that says where the corners of the image is. The extension of a world file is the first and last letters of the image extension with w appended at the end. The coordinates are in the units of the projections, so -180,180 -90,90 for lat/long.
If your image is not in lat/long you will have to include a .prj file, which is a text file with the WKT definition of the coordinate system that should be used.
Example:
If your image is world.jpg then you need a world.jgw file and optionally a world.prj file.
0.0359281435 0.0000000000 0.0000000000 -0.0359281437 -179.9820349282 89.9820359281
Projection
A projection file (prj) is WKT representation of the projection the image is in:
GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]]