Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-users] How do you get an image file into uDig

Hi Crag; uDig 1.1.0 supports only a couple of image formats - it is something we are working on for the next release.

To import your tif or jpg file into uDig we need to know "where in the world" it is; so we can draw it in the correct location. There are a couple of good ways to do this: - Some image formats allow you to store metadata (ie where in the world) about the image. If you add location information to a TIFF file it is called a "geotiff". I am not sure how good our support of geotiff is for uDig 1.1.0 - I am just listing it here so you know what a geotiff is. - You can also store a little text file next to the image; that contains the "world" information for the image. The actual extension on this file depends on the format (jpeg uses jgw, tiff uses tfw, etc...)

When you choose to export an image from uDig (http://udig.refractions.net/confluence/display/EN/Map+to+Image+Wizard) it will produce a jpeg with a world file. Can you try that now so you have a good working example to start from?

You will see the following produced (if you choose the jpf format)
- foo.jpg - this is your image
- foo.jgw - this is the world file recording the coordinates of the upper left corner, size of each pixel etc... - foo.prj - this is the coordinate reference system documenting what the coordinates mean

Here are some documentation links:
- http://udig.refractions.net/confluence/display/EN/Adding+an+image+to+a+map
- http://www.kralidis.ca/gis/worldfile.htm
- http://geos.gsi.gov.il/vladi/FEFLOW/help/general/file_format.html#tfw_file

Cheers,
Jody
PS. If you were unable to find this information in the uDig online help please let me know where it could be located in order to help you?

Craig.Vertigan@xxxxxxxxxxxxxxx wrote:

I have tried loading both .tif and .jpg files but it won't load them.

I try loading the image file the same as I do with shape files by choosing File\New\New Layer... Then selecting the files option in the Data Sources dialog box. Then it comes back with this error in the dialog box:

"Unable to recognize service, choose another."

I also tried loading by dragging the image file into the main panel of uDig and get the same error there too.

Do I need to save the image in a different format or something? I am a complete novice to GIS systems.

Cheers
Craig
------------------------------------------------------------------------

_______________________________________________
udig-users mailing list
udig-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.refractions.net/mailman/listinfo/udig-users



Back to the top