svn-gvsig-desktop / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / DGNFileExtension.java @ 312
History | View | Annotate | Download (1.24 KB)
1 |
/*
|
---|---|
2 |
* Created on 27-abr-2004
|
3 |
*
|
4 |
* To change the template for this generated file go to
|
5 |
* Window>Preferences>Java>Code Generation>Code and Comments
|
6 |
*/
|
7 |
package com.iver.cit.gvsig; |
8 |
|
9 |
/**
|
10 |
* @author vcn
|
11 |
*
|
12 |
* To change the template for this generated type comment go to
|
13 |
* Window>Preferences>Java>Code Generation>Code and Comments
|
14 |
*/
|
15 |
|
16 |
import java.io.File; |
17 |
|
18 |
import org.cresques.cts.IProjection; |
19 |
import org.cresques.cts.ProjectionPool; |
20 |
|
21 |
import com.iver.mdiApp.plugins.files.FileExtension; |
22 |
|
23 |
|
24 |
/**
|
25 |
* DOCUMENT ME!
|
26 |
*
|
27 |
* @author Fernando Gonz?lez Cort?s
|
28 |
*/
|
29 |
public class DGNFileExtension implements FileExtension{ |
30 |
/**
|
31 |
* @see com.iver.mdiApp.plugins.files.FileExtension#read(java.io.File)
|
32 |
*/
|
33 |
public Object read(File f) { |
34 |
// TODO LWS pasar la proyecci?n desde la llamada
|
35 |
IProjection proj = ProjectionPool.get("ed50utm30");
|
36 |
String dgnName = f.getName();
|
37 |
String path = f.getAbsolutePath();
|
38 |
if ((path == null) || (dgnName == null)) { |
39 |
throw new IllegalArgumentException("Se debe abrir la capa antes"); |
40 |
} |
41 |
|
42 |
//TODO implementar bien
|
43 |
return null;//new FLyrDgnG(proj, dgnName, path, true); |
44 |
} |
45 |
|
46 |
/**
|
47 |
* @see com.iver.mdiApp.plugins.files.FileExtension#write(java.io.File)
|
48 |
*/
|
49 |
public void write(File filel, Object object) { |
50 |
} |
51 |
} |
52 |
|