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 Pascal,
You, are, my, hero,_
Days ago I tried Setting the files in "writable" and convert them to other format. Some times did work and some didnt. Very strange.
I didnt knkow it automatically did generate the sister file. May be I deleted them thinking it whas a kind of temp file, who knows.
It works GREAT!!!
As far as my incoming files are in JPG and the outgoint files ar in JPG+HGR (now it generates worldfiles *.jgw), I dont need to generate new image files, something that really saves much time!. It generates the *.jgw file in the same directory as the origin image wich is as much as I needed.
THANK YOU!
I'll also try your macro wich seems to be very usefull.
And now, please, let me say that the batch convert combo tool should convert, at least for the files added using the conbo + "add current drawing files" option, (...) should convert the files wich the in model space coords, as it does the "save as".
I´ll try the macro anyway, may be I need to convert them to cot or who knows...
thanks thanks thanks !!!!!!
Hi there, Some time has passed since my last post. WEll, I tried out the technique of setting on-off readability of the positioned jpg files to generate easily the HGR files. THe HGR files where always generated but, the content in many times was incorrect. Lot of times 2/10 processed rasters it generated HGR files with all the information values set to 0.
We finally decided to manually convert each raster to .cot.
Hi Pascal, can you please give the key-in to save in GEOTIFF format? That way I could change your macro to convert jpg to geotiif. Thanks in advance
Rogério Oliveira
Microstation Connect | OpenRoads Designer | OpenBridge Designer
Hi Rogério,
To output rasters in Geotiff format, you need to replace "JPG" by "GEOTIFF" in the following line:
HTH,
Pascal
Thank you Pascal. That did work jsut fine, but I tried to change the BITCOLOR to 8 and didn't work. Because the size of the *.tif is 75mb each with RGB, but with 256 colors it drops to 18mb. Can you help with this?