This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File file = new File(sct.getRealPath("") + File.separator + "spesialpunkt.xml"); | |
Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF8")); | |
out.write(xml); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var snitt = new OpenLayers.Layer.GML("GML","spring/getgml", {styleMap: styleMap}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var snitt = new OpenLayers.Layer.Vector("GML", { | |
protocol: new OpenLayers.Protocol.HTTP({ | |
url: "spring/getgml", | |
format: new OpenLayers.Format.GML() | |
}), | |
strategies: [new OpenLayers.Strategy.Fixed()], | |
visibility: true, | |
projection: new OpenLayers.Projection("EPSG:32633"), | |
styleMap: styleMap | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<filter> | |
<filter-name>encoding-filter</filter-name> | |
<filter-class> | |
org.springframework.web.filter.CharacterEncodingFilter | |
</filter-class> | |
<init-param> | |
<param-name>encoding</param-name> | |
<param-value>UTF-8</param-value> | |
</init-param> | |
<init-param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter: (function(group) { | |
return function(record) { | |
return (record.get("group") || defaultGroup) == group && | |
record.getLayer().displayInLayerSwitcher == true && record.getLayer().name != 'GML'; | |
}; | |
})(group), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new OpenLayers.Layer.Vector("GML", { | |
displayInLayerSwitcher: false, | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter: function(record) { | |
if (record.get("title").indexOf("Europa -hvit bakgrunn") != -1) { | |
return false; | |
} else if ( record.get("title").indexOf("Europa") != -1) { | |
return false; | |
} | |
return true; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
leaf: true, | |
text: gxp.plugins.Legend.prototype.tooltip, | |
checked: true, | |
iconCls: "gxp-icon-legend", | |
ptype: "gxp_legend", | |
outputConfig: { | |
filter: function(rec) { | |
if (record.get("title").indexOf("Europa -hvit bakgrunn") != -1) { | |
alert("filter in outputConfig"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OLRecord = gxp.plugins.OLSource.prototype.createLayerRecord({ | |
source: "ol", | |
type: "OpenLayers.Layer.WMS", | |
group: "${bilde.gruppe}", | |
queryable: true, | |
visibility: !(app.id > 0) ? ${bilde.visible} : false, | |
properties: "mareano_wmslayerpanel", | |
args: [ | |
"${kartlaget.title}", | |
"${kartlaget.url}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.RuntimeException: java.io.IOException | |
at org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:168) | |
at org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:59) | |
at org.geotools.data.crs.ForceCoordinateSystemFeatureResults.openIterator(ForceCoordinateSystemFeatureResults.java:95) | |
at org.geotools.feature.collection.AbstractFeatureCollection.features(AbstractFeatureCollection.java:69) | |
at org.geotools.feature.collection.AbstractFeatureCollection.features(AbstractFeatureCollection.java:53) | |
at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2475) | |
at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2045) | |
at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:829) | |
at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:481) |
OlderNewer