Revision 7448 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/writers/gml/GMLWriter.java
GMLWriter.java | ||
---|---|---|
19 | 19 |
import com.iver.utiles.StringUtilities; |
20 | 20 |
import com.vividsolutions.jts.geom.Geometry; |
21 | 21 |
|
22 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
|
22 |
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
|
|
23 | 23 |
* |
24 | 24 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
25 | 25 |
* |
... | ... | |
41 | 41 |
* |
42 | 42 |
* Generalitat Valenciana |
43 | 43 |
* Conselleria d'Infraestructures i Transport |
44 |
* Av. Blasco Ib??ez, 50
|
|
44 |
* Av. Blasco Ib��ez, 50
|
|
45 | 45 |
* 46010 VALENCIA |
46 | 46 |
* SPAIN |
47 | 47 |
* |
... | ... | |
63 | 63 |
* |
64 | 64 |
* $Id$ |
65 | 65 |
* $Log$ |
66 |
* Revision 1.5 2006-08-25 13:04:07 fjp |
|
66 |
* Revision 1.5.4.1 2006-09-21 15:34:12 jorpiell |
|
67 |
* El driver no permitía generar GML's en linux en directorios que tubiesen una letra en Mayúsculas. |
|
68 |
* |
|
69 |
* Revision 1.5 2006/08/25 13:04:07 fjp |
|
67 | 70 |
* Comprobar que se puede editar antes de ponerte en edicion |
68 | 71 |
* |
69 | 72 |
* Revision 1.4 2006/08/10 12:03:43 jorpiell |
70 | 73 |
* Se usa el nuevo driver de GML de remoteServices |
71 | 74 |
* |
72 | 75 |
* Revision 1.3 2006/08/02 11:22:56 fjp |
73 |
* Empieza a funcionar con PostGIS lo de a?adir campos
|
|
76 |
* Empieza a funcionar con PostGIS lo de a�adir campos
|
|
74 | 77 |
* |
75 | 78 |
* Revision 1.2 2006/07/21 08:57:28 jorpiell |
76 |
* Se ha a?adido la exportaci?n de capas de puntos
|
|
79 |
* Se ha a�adido la exportaci�n de capas de puntos
|
|
77 | 80 |
* |
78 | 81 |
* Revision 1.1 2006/07/19 12:29:39 jorpiell |
79 |
* A?adido el driver de GML
|
|
82 |
* A�adido el driver de GML
|
|
80 | 83 |
* |
81 | 84 |
* |
82 | 85 |
*/ |
83 | 86 |
/** |
84 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
|
87 |
* @author Jorge Piera Llodr� (piera_jor@gva.es)
|
|
85 | 88 |
*/ |
86 | 89 |
public class GMLWriter extends AbstractWriter implements ISpatialWriter{ |
87 | 90 |
private File m_File = null; |
... | ... | |
107 | 110 |
try { |
108 | 111 |
featureType = GMLTypesConversor.featureTypefromGvSIGToGeotools(lyrDef); |
109 | 112 |
|
110 |
String schemaPath = m_File.getName().toLowerCase().replaceAll("\\.gml", ".xsd");
|
|
111 |
|
|
113 |
String schemaPath = m_File.getName().replaceAll("\\.gml", ".xsd"); |
|
114 |
|
|
112 | 115 |
gmlFile = new GMLFileCreator(m_File,schemaPath); |
113 | 116 |
gmlFile.setAttibutes(lyrDef.getFieldsDesc()); |
114 | 117 |
|
115 |
schemaPath = m_File.getAbsolutePath().toLowerCase().replaceAll("\\.gml", ".xsd");
|
|
118 |
schemaPath = m_File.getAbsolutePath().replaceAll("\\.gml", ".xsd"); |
|
116 | 119 |
|
120 |
|
|
117 | 121 |
gmlSchemaFileCreator = new GMLSchemaCreator(new File(schemaPath)); |
118 | 122 |
gmlSchemaFileCreator.createFile(lyrDef); |
119 | 123 |
} catch (Exception e) { |
Also available in: Unified diff