Tag Info

Hot answers tagged

9

It isn't necessary to learn OpenLayers or Leaflet when you just want to use GeoServer. However, I have a single advice for you: because you already have a working GeoServer, do yourself a favor and go to https://github.com/boundlessgeo/suite/tree/master/geoexplorer. Follow those instructions, build a geoexplorer.war and deploy it to your servlet container. ...


8

After setting the symbology (colours / appearance) of your vector layer, you can save the symbology together with the shapefile. If the layer style file stays together with the other necessary parts of the shapefile (shp, shx and dbf) then it will automatically be rendered in the same way when it is next loaded into QGIS, even on another computer. Save ...


7

You should use vertexRenderIntent property of ModifyFeature control. For example: var vertexStyle = { strokeColor: "#ff0000", fillColor: "#ff0000", strokeOpacity: 1, strokeWidth: 2, pointRadius: 3, graphicName: "cross" } var styleMap = new OpenLayers.StyleMap({ "default": OpenLayers.Feature.Vector.style['default'], "vertex": ...


7

beside all answer you can make your popup as google map popup style. check out this link which will help you to make g-style popup... popup script codes, popup images, and so css... i hope it helps you..


7

You need to use Symbol Levels: The higher the number the later is it drawn. So black will be rendered first then the purple over top meaning that any black bits will be rendered over.


6

The best plugin to use to do colour ramps on rasters is the 1-band raster color table v1.10 plugin. Found in the plugin installer under the same name.


6

You should try TileMill. It uses gdal to access the geo-data, an editor of Carto (a css like language) to stylize your maps, and mapnick to renderize it.


6

Why not using the rule-based labeling? You could ease up the task a lot, if you use categories for multiple gradients based on your attribute data. From my point of view using categories in rule-based labeling is one of the mayor advantages of QGIS. For your data (without knowing the structure) i would recommend the following workflow: Make a rule based ...


6

In that case you should use a graduated renderer. It will sort the values correctly. Categorized renderers are meant for nominal scales. Graduated renderer will only work with numerical values. So if your column is text, you'll have to convert it to numeric format first. As Andre noted in his comment to another answer, this can be done in field calculator ...


6

In ArcMap, Go to the Customize menu, click Style Manager. You will see a style on the left called "Dano". Under that, any categories which contain custom symbols, labels, etc. you've made will appear as a yellow folder. Click the one you're concerned with and you'll see your custom symbols on the right. Right-click to delete any you don't want. If your ...


6

Add another layer into your style as "marker line" and draw markers only at line ends. See the screen capture below.


6

As a workaround you may choose "Solid Line" option for borders, set the same colour to borders and fill of the polygon and set border width to 0.0 .


6

It is possible to have a fill color and some diagonal lines at the same time in a single shapefile. You have a button to add a symbol layer in the style properties of your layer.


6

You need to change the symbol for your roads to a Cartographic Line symbol rather than a Simple Line symbol. That will give you more control over how it's drawn. When you add a line layer to ArcMap, it defaults to a Simple Line symbol, which has the rounded ends you're seeing. With a Cartographic Line symbol, you can change the line end caps. You will ...


5

In your library files, there is img/cloud-popup-relative.png file. You have to customize it in order to get infowindow you like


5

check out openlayers dark theme here. it has customization about layer switcher too.. UPDATE: oh sorry due to not reading your que. completely i give only thematic solution...I noticed that newly. new solution is that change the following style (top): .olControlLayerSwitcher { background-color: transparent; color: white; font-family: ...


5

Another idea would be to change the column of data to numbers from text (in ArcGIS I add a 'field', remove the shapefile from my work, and then import the .dbf file into open office Calc and turn the text into numbers in the new column then reopen the shapefile with the new improved column of data). Your color ramp will be correct if the software recognizes ...


5

Here, the XSL file is a style sheet language file (XSLT, or eXtensible Stylesheet Language Transformations) for transforming the XML file into other XML documents or other objects such as HTML, plain text, pdf, etc. A priori nothing to do with QGIS, especially if one looks OS MasterMap® style guidance Transforming GML using XSLT These styles are ...


5

The solution to create a qml file from RGB field values was presented in Python in How to use a field-to-RGB mapping for symbology in QGIS? but, as pointed out by Ryan Garnett, the problem is to convert the CMYK colour to RGB because: "it seems that there is the notion out there that conversion from CMYK to RGB is easy. Newsflash: It’s not. As every ...


5

The SLDs were originally created for our own use in GeoServer which supports several vendor specific options that we use for our OS OnDemand Web Services, so there are some edits that you need to manually make to the SLDs for them to work in QGIS. The first is that in the SLDs we top and tail each rule with the <FeatureTypeStyle> ...


5

Set the alpha channel of the fill color to 0.


5

The styles are normally saved in public.layer_styles. Being in the public schema it should be accessible to every user. If not, make sure it becomes using: GRANT SELECT ON TABLE public.layer_styles TO users; -- "users" is a group with all your #normal users


5

It's possible only in QGIS 2.3 and above (so will be possible in the upcoming 2.4 stable release). Here's how (I'm assuming here you want a gap of 2mm between the two crosses and between the two dashes also): Add a simple line symbol layer, set the cap style to flat, tick "Use custom dash pattern" then click "Change" and copy the settings values below: ...


5

The answer provided by @evv_gis should do what you want. An alternative, practically similar to the answer posted by @hexamon, is to use Rule-based styling instead of Interval (I use QGIS 2.2 and I also do not see this option so I'm guessing it's an alternative name in another QGIS version?). Personally, I prefer rules to values as you can add various ...


4

you can do this with some ways: defining context style: context {Object} An optional object with properties that symbolizers’ property values should be evaluated against. If no context is specified, feature.attributes will be used. you you can check out here for some idea. var context = { getGraphic: ...


4

Zach, correct, there is no way to hide a rule from the GetLegendGraphics call. The SLD standard does not provide a way either, so someone would have to come up with an extension to the standard and then code to implement it at the Geotools and GeoServer level.


4

Another approach (besides Nathan's) would be to merge both layers into one. Then you could use symbol levels as usual.


4

You can adjust the phase of your dash pattern by inserting a row in the Dash space pattern editor with a Dash of 0 length and a Space of half the length you want between your dashes. In the second row, you set the full Dash length, and half the desired Space length again. For example, if you set the Marker line to use an interval of 10, you could set your ...


4

This feature was added to the master branch of QGIS about 4 months ago, but only for PostgreSQL/PostGIS databases, not Spatialite. The series of commits could be squashed down to provide a concise view of how to add such support for Spatialite. Please submit a feature request, and link to this page. Interesting side note, Spatialite 4.1+ offers a new ...


4

CASE WHEN "Amount" <= 10000 THEN .2 WHEN "Amount" > 10000 AND "Amount" <= 75000 THEN .4 WHEN "Amount" > 75000 AND "Amount" <= 250000 THEN .6 WHEN "Amount" > 250000 THEN 1 END It looks like you need to switch the bracket in you second and third case. You also had the same case for values of 250000 to be .6 and 1. See below:



Only top voted, non community-wiki answers of a minimum length are eligible