Revision 2764
trunk/extensions/extWCS/src/com/iver/cit/gvsig/fmap/layers/FLyrWCS.java | ||
---|---|---|
118 | 118 |
xml.putProperty("wcs.maxResY", getMaxResolution().getY()); |
119 | 119 |
if (status!=null) |
120 | 120 |
status.getXMLEntity(xml, true, this); |
121 |
else{ |
|
122 |
status = new StatusLayerRaster(); |
|
123 |
status.getXMLEntity(xml, true, this); |
|
124 |
} |
|
121 | 125 |
return xml; |
122 | 126 |
} |
123 | 127 |
|
... | ... | |
815 | 819 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.InfoByPoint#queryByPoint(java.awt.Point) |
816 | 820 |
*/ |
817 | 821 |
public String queryByPoint(Point p) throws DriverException { |
818 |
String data = "<file:"+getName().replaceAll(" ","_")+">\n"; |
|
819 |
|
|
822 |
String data = "<file:"+getName().replaceAll("[^a-zA-Z0-9]","")+">\n"; |
|
820 | 823 |
ArrayList attr = this.getAttributes(); |
821 | 824 |
data += " <raster\n"; |
822 | 825 |
data += " File=\""+getName()+"\"\n"; |
... | ... | |
834 | 837 |
data += " RGB=\""+r+", "+g+", "+b+"\"\n"; |
835 | 838 |
data += " />\n"; |
836 | 839 |
|
837 |
data += "</file:"+getName().replaceAll(" ","_")+">\n";
|
|
840 |
data += "</file:"+getName().replaceAll("[^a-zA-Z0-9]","")+">\n";
|
|
838 | 841 |
System.out.println(data); |
839 | 842 |
return data; |
840 | 843 |
} |
Also available in: Unified diff