Difference between revisions of "Import Background Image"

From Heureka Wiki
Jump to navigation Jump to search
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A forest map related to the stand register data can be imported ("Link to existing area..." or "Import forest map..." > "Import from shape") only if the format is "Shape". Digital maps in other formats should be converted before import. 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]]
  
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 .tiff-file format (but other graphical formats are possible, e.g. .bmp). ''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.
+
'''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.
  
 
However, this is the somewhat advanced steps in importing images:
 
However, this is the somewhat advanced steps in importing images:
  
#In your GIS, open the raster image
+
#In your GIS, open the raster image.
#If necessary, zoom to/select the area of interest (to decrease the extent of the image and hence the file-size)
+
#If necessary, zoom to/select the area of interest (to decrease the extent of the image and hence the file-size).
#Choose "Export Raster Data" (or similar)
+
#Choose "Export Raster Data" (or similar).
#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.
+
#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 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].
  
#To change the folder where the project will be created, choose Browse (to the right of the Location combo box), and select a folder. The new project will be created in a sub folder in the selected folder . The sub folder will have the same name as the project.
+
Now return to PlanStart, and in menu "External data" > "Import background image...":
#To specify or change the location of the forest database, choose Browse (to the right of the Forest Database combo box), and enter the database configuration for the forest database.
 
#To specify or change the location of the result database, choose Browse (to the right of the Result Database combo box), and enter the database configuration for the forest database.
 
  
*'''Tip 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).
:You can quickly select one of the most recent project locations, forest databases, and result databases you have used by dropping down and selecting a value from the corresponding combo box.
+
#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".
 +
#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.
  
*'''Tip 2'''
+
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.
:To see more information, you can resize the open project dialog.
 
  
*'''Tip 3'''
+
*'''Tip 1'''
:To create a
+
: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.
 
  
Associated pyramid file is used for geo-referencing. Any conversions - coordinate system transformations - should be done prior to import. [The map-viewer in PlanWise is based on the Swedish Grid (RT90, 2.5 gon V), redundant?]
+
[[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.