Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am not looking for any third party tools, want to do programatically.

Please guide me in this regard.

Thanks in Advance.
Posted
Updated 5-Jun-11 22:20pm
v11

If you can't do it through the Image object, you will have to do it manually. That process is, roughly speaking:
- make a data class which represents the internal semantic structure of the file which you want to preserve
- write a data reader that takes the input format (in your case DGN) and extracts the semantic information into an instance of the data class
- write a data writer that takes an instance of your data class and creates a file of the target output format (PIX).

Obviously this requires that the file formats are either publicly documented or easy to reverse engineer, and that both file formats are capable of storing the semantic information you care about. Spatial information is a relatively specialist thing and you should first check that it will be possible to store that in a PIX file.
 
Share this answer
 
Comments
OPees 4-May-11 7:17am    
Hi BobJanova....
Thanks...
I am new in GIS Domain, Can you elloborate it More.....
BobJanova 4-May-11 13:53pm    
No, I'm sorry, I know nothing about the file formats you mention. The general advice I gave in the solution is as far as I can go.
OPees 5-May-11 2:07am    
Ok..
Thanks Again....
Create an Image object and save it to the required format; see here[^]
 
Share this answer
 
Comments
OPees 28-Apr-11 2:24am    
Hi Nagy Vilmos,
Thanks for quick reply, image conversion we can do like this but i want to retain spatial inforamation which is not possible through this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900