Difference between revisions of "Import Background Image"

From Heureka Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''A forest map''' corresponding to the stand register data can be imported ("External data" > "Import forest map...") only if the format is "Shape". Digital maps in other formats should be converted before import. ''Once in while, one must convert a shape-file to shape... this to make it readable by the system and probably due to some data format specification.'' Linking is done by using the .dbf-file of the map and the three first fields of the register's .csv-file (MapId, StandId, and SubStandId, respectively).
+
[[User's guide to PlanStart]]
  
Settings in the dialog box, following the selection of Shape database, follows:
+
'''Background images''', in raster format, can be imported and used as background to the [[Import Forest Map | forest map]]. Preferrably, the image should be in .tif-file format (but other graphical formats are possible, e.g. bitmaps). ''NB: Only one layer per type (Road-, Terrain-, and Ortomap) is possible to import to the forest database, any new image-import will overwrite the old, already imported images!'' This is of course unfortunate and will be fixed in future releases. A roadmap, more or less covering the entire company sphere of activities, might be imported once and for all while the ortophotos probably would be added continuously as new areas are to be analysed.
 
 
#In "Attribute"-drop list, select columns in the .dbf-file or constants (with user-defined values).
 
#Add attributes and change the column length if necessary.
 
#By padding with zeros and selecting space between columns, preview and confirm that the shape database key corresponds to the stand register. Press "Ok".
 
 
 
 
 
'''Background images''' (in raster format, as opposed to the vector format above) can be imported and viewed with the forest map. Preferrably, the image should be in .tif-file format (but other graphical formats are possible, e.g. bitmaps). ''NB: Only one layer per type (Road-, Terrain-, and Ortomap) is possible to import to the forest database, any new image-import will overwrite the old, already imported images!'' This is of course unfortunate and will be fixed in future releases. A roadmap, more or less covering the entire company sphere of activities, might be imported once and for all while the ortophotos probably would be added continuously as new areas are to be analysed.
 
  
 
However, this is the somewhat advanced steps in importing images:
 
However, this is the somewhat advanced steps in importing images:
Line 17: Line 10:
 
#Now you might be in a tricky position; if the original image is in 8 bit you must force it into the three bands RGB to obtain a 24 bit-image. This might be possible only if you export to an output raster with .bmp-format. If so, open the bitmapped file in, e.g., Paint and save it as .tif-file.
 
#Now you might be in a tricky position; if the original image is in 8 bit you must force it into the three bands RGB to obtain a 24 bit-image. This might be possible only if you export to an output raster with .bmp-format. If so, open the bitmapped file in, e.g., Paint and save it as .tif-file.
 
#Did you obtain a corresponding World file (.tfw or .bpw)? This is needed for geo-referencing purposes, and in most GIS's a built-in functionality (automatically runned), else you might need to create such file separately.
 
#Did you obtain a corresponding World file (.tfw or .bpw)? This is needed for geo-referencing purposes, and in most GIS's a built-in functionality (automatically runned), else you might need to create such file separately.
#Did your World file turn out alright? Sometimes EOL is misinterpret and then you must edit the .tfw-file so that it contains six rows. This can be done in, e.g., Notepad.
+
#Did your World file turn out alright? Sometimes EOL is misinterpret and then you must edit the .tfw-file so that it contains six rows. This can be done in, e.g., Notepad (but beware of any double extensions after saving, like "*.tfw.txt" - rename files with such names).
 
#Finally, the spatial reference of an image should be set to the Swedish Grid RT90, 2.5 gon West, to enable viewing in PlanWise. [Redundant? What is important is probably that different imported maps and images are in the same system, in future releases preferrably in SWEREF99].
 
#Finally, the spatial reference of an image should be set to the Swedish Grid RT90, 2.5 gon West, to enable viewing in PlanWise. [Redundant? What is important is probably that different imported maps and images are in the same system, in future releases preferrably in SWEREF99].
  
 
Now return to PlanStart, and in menu "External data" > "Import background image...":
 
Now return to PlanStart, and in menu "External data" > "Import background image...":
  
#In "Create pyramides", the catalogue with graphical files must contain at least one graphical .tif-file with a corresponding world .tfw-file (formatted as described above).
+
#In "Path to grapichal files", the folder with graphical files must contain at least one graphical .tif-file with a corresponding world .tfw-file (formatted as described above).
#In "Create pyramides", the catalogue with pyramid files can be empty, created files will end up here.
+
#In "Path to pyramide files", the folder with pyramid files can be empty, created files will end up here.
 
#Choose correct map type and "Create".
 
#Choose correct map type and "Create".
 
#Looking at the pyramids of an image, you will find it divided into several images, or layers, with different resolution in each layer. The presentation of such image in a GIS/Map viewer will then be done more rapid, adapting to current view-scale.
 
#Looking at the pyramids of an image, you will find it divided into several images, or layers, with different resolution in each layer. The presentation of such image in a GIS/Map viewer will then be done more rapid, adapting to current view-scale.
Line 31: Line 24:
 
*'''Tip 1'''
 
*'''Tip 1'''
 
:Since creating pyramids for large images are time-consuming, look for databases with already imported image data and possibilities to use such as the forest database in the following analyses.
 
:Since creating pyramids for large images are time-consuming, look for databases with already imported image data and possibilities to use such as the forest database in the following analyses.
 +
 +
[[Category:User's Guides|PlanStart|PlanStart]]
 +
[[Category:PlanStart]]
 +
[[Category:Database]]

Latest revision as of 17:40, 7 December 2011

User's guide to PlanStart

Background images, in raster format, can be imported and used as background to the forest map. Preferrably, the image should be in .tif-file format (but other graphical formats are possible, e.g. bitmaps). NB: Only one layer per type (Road-, Terrain-, and Ortomap) is possible to import to the forest database, any new image-import will overwrite the old, already imported images! This is of course unfortunate and will be fixed in future releases. A roadmap, more or less covering the entire company sphere of activities, might be imported once and for all while the ortophotos probably would be added continuously as new areas are to be analysed.

However, this is the somewhat advanced steps in importing images:

  1. In your GIS, open the raster image.
  2. If necessary, zoom to/select the area of interest (to decrease the extent of the image and hence the file-size).
  3. Choose "Export Raster Data" (or similar).
  4. Now you might be in a tricky position; if the original image is in 8 bit you must force it into the three bands RGB to obtain a 24 bit-image. This might be possible only if you export to an output raster with .bmp-format. If so, open the bitmapped file in, e.g., Paint and save it as .tif-file.
  5. Did you obtain a corresponding World file (.tfw or .bpw)? This is needed for geo-referencing purposes, and in most GIS's a built-in functionality (automatically runned), else you might need to create such file separately.
  6. Did your World file turn out alright? Sometimes EOL is misinterpret and then you must edit the .tfw-file so that it contains six rows. This can be done in, e.g., Notepad (but beware of any double extensions after saving, like "*.tfw.txt" - rename files with such names).
  7. Finally, the spatial reference of an image should be set to the Swedish Grid RT90, 2.5 gon West, to enable viewing in PlanWise. [Redundant? What is important is probably that different imported maps and images are in the same system, in future releases preferrably in SWEREF99].

Now return to PlanStart, and in menu "External data" > "Import background image...":

  1. In "Path to grapichal files", the folder with graphical files must contain at least one graphical .tif-file with a corresponding world .tfw-file (formatted as described above).
  2. In "Path to pyramide files", the folder with pyramid files can be empty, created files will end up here.
  3. Choose correct map type and "Create".
  4. Looking at the pyramids of an image, you will find it divided into several images, or layers, with different resolution in each layer. The presentation of such image in a GIS/Map viewer will then be done more rapid, adapting to current view-scale.

Before you go on with importing the pyramids (i.e. the divided background image), make sure this is done to a forest database where no other image data is overwritten.

  • Tip 1
Since creating pyramids for large images are time-consuming, look for databases with already imported image data and possibilities to use such as the forest database in the following analyses.