Tag Info

New answers tagged

4

Yes, very simple: Just use the Categorized Symbology. If you do not have any attributes, you can just use $id as your "Column". Result:


2

Definately it can be done, if you have styled your layer with the correct symbology then geoserver will just render that sld. On the question of it appearing in getfeature info look at geoserver templates which allows you to customise the how your get feature info behaves


-1

I'm interested in the response of this because i had the same problem. I solved it(but it's not really a good solution) publishing several Vectors using the same entring data and giving them a different style.


0

The label is a SVG text element. I suggest you to make an override for OpenLayers.Renderer.SVG.prototype.drawText function. Open your OpenLayers install package and find it here: lib\OpenLayers\Renderer\SVG.js:649 Take the function and override it in your own code like this: // My drawText override OpenLayers.Renderer.SVG.prototype.drawText = function ...


0

Your question isn't clear. Do you want the user to be able choose the style? The style must depend on something (an attribute, area, size...) Anyway you should listen to the layer using the change event: change Triggered when the id, the geometry or the style of the feature changes.event: cf ol3 doc then catch the last added feature and apply the ...


2

You could add a field to the shapefile that describes whether the dead animal - open the shapefile go to Properties>Attributes and add new columns. This could be a text field for 1 character (width) ("Y" or "N") or anything you like. This video can help: https://www.youtube.com/watch?v=iuuFEq0a5gg You can then change the style/symbology based on this ...


2

The easy way I use to set up styling is to load your dataset in QGIS and style it with that. Use only simple style features like colour and width and do it on a single attribute. The save that QGIS style as SLD, and copy paste that XML into GeoServer's style dialog. Trouble shoot that a bit to make sure it all came through, and you're good to go! You do ...


2

You can use both options. For Option a) you don't need to create a specific SLD providing the image is RGB. GeoServer will pick the channels automatically, if you do indicate them separately you might cause unnecessary processing. Option b) requires less processing and should work fine but it might be slightly slower since you will do the transcoding from ...


0

Create your style using the SLD tool from geoserver. That why it is there ! U can also use QGIS to generate the SLD (SLD4raster) see plugin Also if you tiff file is big u can use the geoserver mosaic plugin mosaic


0

Currently this can't be done natively, as far as I know. The thread here: Converting ArcGIS layer style to Styled Layer Descriptor (SLD) file? has some info on getting the styles from ESRI lyr to a sld, which is basically what you want, but it's not very smooth (or cheap for arc2earth). I think a more elegant solution is waiting to be developed.



Top 50 recent answers are included