Hi.
I`m having a serious problem when converting raster files with the raster manager's "batch convert" tool.
I´ve a number of .jpg images possitioned in the model space, the number varis betwen dgn files, is about 5 to 75 raster files per dgn.
Once georeferenced, I need to export them to .cot or preferably to .jpg with .hgr file.
When saving each file individually; doing file>save as> imagename.cot or imagename.jpg+hgr file, it exports the file correctly. In the case of the .cot, it adds the position, scale and rotation in the header an in the case of teh jpg writes correctly the hgr file.
BUT, heres comes my problem, after a batch convert processing, when importing back the generated files to the raster manager, they appear in an incorrect position, VERY far from where they should be.
Even stranger is the fact that some times it has worked during the testing process.
I'm getting crazy with this problem, and soon I'll get quite in a hurry seeing drafters lose time saving files individually.
Please, give me a hand with this.
Bye.
Hi Paulov,
What version of Microstation are you using?
Thanks,
Mathieu
Hi,
XM version. 08.09.04.51
I Use the batch convert tool, and I add the drawings using the combo that lets me select the actual drawing and add all the rasters automatically.
I've tried it in a trial V8i version with the same result.
Thanks
If you provide a test case we can test it at our end.
Here is one ideia: In your files do you have a Coord. System? Do you have a unit definition either? In your RM preferences (tab georeference) the default unit setting for the raster file is set to working unit? changing the resolution will change the raster coordinate
Actually, "Batch Convert" and "Save As" work differently. When saving each raster files separately with a "Save As", the input raster's position in the view is saved to the output raster if you choose to create an sister file (World File or HGR) or if the output raster format supports georeference (geotiff, itiff, img...) The Batch Convert on the other hand works differently. When it creates an output raster, it doesn't use the raster's position in the view, it uses the georeference that is saved to the raster on disk or in an associated sister file. You can actually Batch Convert raster files that are not even attached to your design file.
In your case, you are working with jpg files. Those files do not support georeference unless they have an associated sister file, which doesn't seam to be your case. So, even if you attach those jpg files and position them in a view, you will not be able to export them and save their position in an HGR using Batch Convert.
Pascal
I have a Macro that can save all the images attached to a design file using "Save As" key-ins. I will attach it to this message and you can see if it does what you are looking for. Right now, it saves the raster attachments of a design file to JPG format. You will probably need to edit the output directory in the Macro (currently set to D:\Temp\Output\), ask me if you need help.
Also, before you use the Macro, you will have to do the following steps to ensure that the sister files are created properly during the export.
1) Go to MicroStation's "Workspace" menu and click on "Preferences...". In the "Category" list, choose "Raster Manager" and then go to the "Georeference" tab. Make sure that "Save Location Info in Sister File if Required" is checked.
2) Go to MicroStation's "Workspace" menu and click on "Configuration...". Fing the configuration named "MS_RASTER_DEFAULTSISTER", set its value to 0 or 1 if you want HGR or to 2 if you want WorlFiles.
3) Restart MicroStation and try the Macro.
Another "trick" to work around this problem would be to do the 3 steps mentioned above. Then, open the Raster Manager dialog box and set the "Read-Only" toggle of all attached rasters OFF and back ON. This will create sister files for all the attached raster files. Once the sister files are created, the Raster Convert should work as you expect it too.