Revision 4940
trunk/extensions/extWMS/src/com/iver/cit/gvsig/webmapcontext/ExportWebMapContextExtension.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.4 2006-04-21 10:27:32 jaume |
|
46 |
* Revision 1.5 2006-04-25 11:40:56 jaume |
|
47 |
* *** empty log message *** |
|
48 |
* |
|
49 |
* Revision 1.4 2006/04/21 10:27:32 jaume |
|
47 | 50 |
* exporting now supported |
48 | 51 |
* |
49 | 52 |
* Revision 1.3 2006/04/20 17:11:54 jaume |
... | ... | |
221 | 224 |
return (ProjectView[]) exportableViews.toArray(new ProjectView[0]); |
222 | 225 |
} |
223 | 226 |
|
224 |
/** |
|
225 |
* Establishes the (new or not) destination file. |
|
226 |
* |
|
227 |
* @param dst |
|
228 |
*/ |
|
229 |
public void setDestinationFile(File dst) { |
|
230 |
dstFile = new File(dst.getAbsolutePath() + FILE_EXTENSION); |
|
231 |
} |
|
232 |
|
|
233 | 227 |
// /** |
234 | 228 |
// * Sets the MapContext version to be applied. |
235 | 229 |
// * |
trunk/extensions/extWMS/src/com/iver/cit/gvsig/webmapcontext/WebMapContext.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.8 2006-04-25 10:01:56 jaume |
|
46 |
* Revision 1.9 2006-04-25 11:40:56 jaume |
|
47 |
* *** empty log message *** |
|
48 |
* |
|
49 |
* Revision 1.8 2006/04/25 10:01:56 jaume |
|
47 | 50 |
* fixed extend bug when importing |
48 | 51 |
* |
49 | 52 |
* Revision 1.7 2006/04/21 12:46:53 jaume |
... | ... | |
147 | 150 |
public String telephone = null; |
148 | 151 |
public String fax = null; |
149 | 152 |
public String email = null;; |
153 |
|
|
150 | 154 |
/** |
151 | 155 |
* list of FLyrWMS. |
152 | 156 |
*/ |
153 | 157 |
ArrayList layerList = null; |
158 |
|
|
154 | 159 |
/** |
155 | 160 |
* key: server URL (URL) |
156 | 161 |
* value: server title (String) |
157 | 162 |
*/ |
158 | 163 |
Hashtable serverTitles = null; |
164 |
|
|
159 | 165 |
/** |
160 | 166 |
* key: layer FLyrWMS |
161 | 167 |
* value: layer abstract (String) |
162 | 168 |
*/ |
163 | 169 |
Hashtable layerAbstracts = null; |
170 |
|
|
164 | 171 |
/** |
165 | 172 |
* key: layer FLyrWMS |
166 | 173 |
* value: layer formats (String[]) |
167 | 174 |
*/ |
168 | 175 |
Hashtable layerFormats = null; |
176 |
|
|
169 | 177 |
/** |
170 | 178 |
* key: layer FLyrWMS |
171 | 179 |
* value: styles (FMapWMSStyle[]) |
... | ... | |
205 | 213 |
|
206 | 214 |
public WebMapContext() { } |
207 | 215 |
|
216 |
/** |
|
217 |
* If no version was recognized then will parse the default one which is supposed |
|
218 |
* to be the best available. |
|
219 |
* @param file |
|
220 |
*/ |
|
208 | 221 |
private void parseDefaultVersion(File file) { |
209 | 222 |
parse1_1_0(file); |
210 | 223 |
} |
trunk/extensions/extWMS/src/com/iver/cit/gvsig/fmap/layers/FLyrWMS.java | ||
---|---|---|
1297 | 1297 |
// </Name> |
1298 | 1298 |
|
1299 | 1299 |
// <Title> |
1300 |
xml.writeTag(WebMapContextTags.TITLE, layer.getTitle().trim());
|
|
1300 |
xml.writeTag(WebMapContextTags.TITLE, getName().trim());
|
|
1301 | 1301 |
// </Title> |
1302 | 1302 |
|
1303 | 1303 |
// <Abstract> |
... | ... | |
1331 | 1331 |
|
1332 | 1332 |
// <StyleList> |
1333 | 1333 |
if (layer.getStyles().size()>0) { |
1334 |
xml.openTag(WebMapContextTags.STYLE_LIST); |
|
1334 |
xml.openTag(WebMapContextTags.STYLE_LIST);
|
|
1335 | 1335 |
for (int j = 0; j < layer.getStyles().size(); j++) { |
1336 | 1336 |
// <Style> |
1337 | 1337 |
FMapWMSStyle st = (FMapWMSStyle) layer.getStyles().get(i); |
... | ... | |
1351 | 1351 |
// <OnlineResource xlink:type="simple" xlink:href="http://globe.digitalearth.gov/globe/en/icons/colorbars/NATIONAL.gif"/> |
1352 | 1352 |
// </OnlineResource> |
1353 | 1353 |
// </LegendURL> |
1354 |
xml.closeTag(); |
|
1354 | 1355 |
// </Style> |
1355 |
xml.closeTag(); |
|
1356 |
|
|
1356 | 1357 |
} |
1358 |
xml.closeTag(); |
|
1357 | 1359 |
} |
1358 | 1360 |
// </StyleList> |
1359 |
if (!mapContextVersion.equals("1.0.0")) {
|
|
1361 |
if (mapContextVersion.compareTo("1.0.0") > 0) {
|
|
1360 | 1362 |
// <DimensionList> |
1363 |
xml.openTag(WebMapContextTags.DIMENSION_LIST); |
|
1361 | 1364 |
// <Dimension> |
1362 | 1365 |
// </Dimension> |
1366 |
xml.closeTag(); |
|
1363 | 1367 |
// </DimensionList> |
1364 | 1368 |
} |
1365 | 1369 |
} else { |
trunk/extensions/extWMS/src/com/iver/cit/gvsig/gui/panels/WebMapContextSettingsPanel.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.3 2006-04-21 10:27:32 jaume |
|
46 |
* Revision 1.4 2006-04-25 11:40:55 jaume |
|
47 |
* *** empty log message *** |
|
48 |
* |
|
49 |
* Revision 1.3 2006/04/21 10:27:32 jaume |
|
47 | 50 |
* exporting now supported |
48 | 51 |
* |
49 | 52 |
* Revision 1.2 2006/04/20 17:11:54 jaume |
... | ... | |
375 | 378 |
} |
376 | 379 |
}); |
377 | 380 |
if (fc.showOpenDialog((Component) PluginServices.getMainFrame()) == JFileChooser.APPROVE_OPTION){ |
378 |
targetFile = fc.getSelectedFile(); |
|
379 |
String fileName = targetFile.getAbsolutePath();
|
|
381 |
|
|
382 |
String fileName = fc.getSelectedFile().getAbsolutePath();
|
|
380 | 383 |
if (!fileName.toLowerCase().endsWith(WebMapContext.FILE_EXTENSION)) |
381 | 384 |
fileName += WebMapContext.FILE_EXTENSION; |
385 |
targetFile = new File(fileName); |
|
382 | 386 |
getTxtFile().setText(fileName); |
383 | 387 |
} |
384 | 388 |
fc = null; |
... | ... | |
1076 | 1080 |
str = getTxtPostCode().getText(); |
1077 | 1081 |
if (str!=null && !str.equals("")) { |
1078 | 1082 |
wmc.postCode = str; |
1079 |
wmc.contactInfo = true; |
|
1080 | 1083 |
} |
1081 | 1084 |
|
1082 | 1085 |
// Country |
1083 | 1086 |
str = (String) getCmbCountries().getSelectedItem(); |
1084 | 1087 |
if (str!=null && !str.equals("")) { |
1085 | 1088 |
wmc.country = str; |
1086 |
wmc.contactInfo = true; |
|
1087 | 1089 |
} |
1088 | 1090 |
|
1089 | 1091 |
// Telephone |
Also available in: Unified diff