Hot answers tagged

16

Here you find the map including the legend. The legend is in German, but I am German, so I tried to translate it as precise as possible. I think (and please @Giancarlo correct me, if you disagree): 1 is "Reichsstraße, ausgebaut". That means a well-developed street. 2 is propably a sort of drainage system or stream (thank you @AndreJ). It is not named in ...


15

Here are some ideas. With base plot you can do plot(x, interpolate=TRUE) You can also resample your data y <- disaggregate(x, 5, method='bilinear') Or indeed smooth it using a focal operation y <- focal(x, w=matrix(1, 5, 5), mean) Or a combination y <- disaggregate(x, 5) y <- focal(y, w=matrix(1, 5, 5), mean) The question whether ...


13

Yes. You can add in a second map to use as an overview map. You need to lock the features on your your original map first using the Item properties tab. There is a tick box for this in the Main Properties section. You then get QGIS looking how you want the overview map to look and then add it in using the print composer in the same way you added the first ...


11

OpenLayers.js: i would recommend you to download the lib and link it to your application server. This way you can have total control over its URL and content. "insecure content" warnings: that happened to me too. In OpenLayers 2.13.1, when you instantiate an OpenLayers.Layer.OSM, it is configured by default for HTTP. From OpenLayers.Layer.OSM doc: url {...


10

I believe it is actually used to generate a Magnetic north line, using the reference point P on the bottom edge of the map. At least that's how I interpreted the statement in the declination legend (shown below) which seems to refer to the scale you mentioned. I picked a sheet a random. At the time the map was done the angle was 31.25 (+ 2.5 degrees?) ...


9

The examples in your link look like the coordinates have been transformed via a shear and a scale matrix. You can easily apply this to the coordinates you get from the usual fortify/join data that ggplot requires. Need a unique character ID value: oregon.tract$id=as.character(1:nrow(oregon.tract)) Fortify on that ID and join attribute data: ofort = ...


8

Both clients - QGIS and ArcGIS Desktop/Pro - are rendering the same information - tiles of imagery, basemaps, etc. So really just images at the exact same resolution, so it has nothing to do with the software. As to the source of that imagery, here is a good post here about adding the various services from ESRI, Google, Bing, and OSM to your QGIS sources: ...


7

leaflet does support onmouseup event. i just used your code and modified a bit to remove eventListener on mouseup. now it's working fine even if you pan your map. circle.on({ mousedown: function () { map.on('mousemove', function (e) { circle.setLatLng(e.latlng); }); } }); map.on('mouseup',function(e){ map....


7

Extending on @Spacedman's answer, creating a stacked map like the one shown in the question becomes quite simple. You just need to add another map layer and displace its y axis: e.g. aes(x=x, y=y+5) : ggplot(data= ofort) + geom_polygon( aes(x=x, y=y, group=id), fill= "white", color="gray30") + # layer 1 geom_polygon( aes(x=x, y=y+5, group=id, fill=...


7

Infiltration map is the map of the proportion of water that would infiltrate into the soil in case of rain. During a rain event, you can neglect the amount of water that evaporate, so the water that does not infiltrate (go into the soil, feeding the aquifers) will either accumulate (flood) or run of (causing erosion and, possibly, floods lower in the valley)....


6

The actual answer is a mixture of the other answers/comments you've already received. MySQL is limited I see from the tags you're using MySQL, the problem is, it can only do bounding boxes until 5.6, not the actual geometries. http://dev.mysql.com/doc/refman/5.0/en/spatial-relation-functions.html If you want to use the bounding box: SELECT * FROM `test` ...


6

I suggest you to use this opensource library: GMap.NET - Great Maps for Windows Forms & Presentation GMap.NET is great and Powerful, Free, cross platform, open source .NET control. Enable use routing, geocoding, directions and maps from Coogle, Yahoo!, Bing, OpenStreetMap, ArcGIS, Pergo, SigPac, Yendux, Mapy.cz, Maps.lt, iKarte.lv, NearMap, ...


6

For the sake of completion, as per https://github.com/Leaflet/Leaflet/issues/3199#event-230611315: Simply add the layer directly to the map. map.addLayer(layer) The control layer function will pick this up and set the control buttons accordingly, regardless if the layer is included into the control. For example: map.addLayer(layer1) map.addLayer(layer2) ...


6

Take a look at OpenRouteService.org. This OSM-based routing engine has a heavy vehicle profile, where you can specify dimension limitations (e.g., length, width, height, weight) or load characteristics (e.g., hazardous materials) of a heavy vehicle. The API is described on the wiki.


6

German surveyors did everything according to rules. For the 1:100.000 Karte des deutschen Reiches, you can find it here: http://www.landkartenarchiv.de/deutschland_topographischekarte_1896_legende.php and http://www.davidrumsey.com/luna/servlet/detail/RUMSEY~8~1~215008~5501917:Legend-for-Karte-des-Deutschen-Reic #1 are major roads, no need for trees. ...


6

The answer is quite simple: "Spot heights – shown as a number beside a dot – appear at strategic points, including along roads where they level out at the top or foot of a hill. These can be a useful guide where there aren't many contour height numbers."


5

You could use the freely available Level 2 GADM shapefile data for Greenland, which comes in EPSG:4326 (Lat/Lon projection) by default, and import it into R using the GDAL functionalities offered by the rgdal package. Then, define the geographic extent for Washington Land and crop the previously imported shapefile. Make sure you have all the required ...


5

You are creating a new empty graphics layer gl but when you then call map.removeLayer(gl) it won't do anything as that new empty layer hasn't been added to the map yet. I'm guessing you wanted to remove the graphics layer previously created. You could do this giving the graphics layer a specific id when you create it, and then retrieving that existing ...


5

If you open the layer properties dialog and navigate to Labels -> Rendering there should be an option that reads "Merge connected lines to avoid duplicate labels". This has usually helped me in the past. However, I've still had times where the labels were still not cleaned up enough. I tend to store my data in PostGIS so in these cases I write a view which ...


5

If you are looking for an interactive graphical view, mapview is the right choice. Use ## load packages library(raster) library(mapview) ## download data esp <- getData(country = "COL", level = 1) ## interactive plot mapview(esp) to display clickable polygons with a popup window showing you all the attribute values associated with a particular polygon....


5

In order to symbolize the pigs proportionally, you need to do the following, but I will use (cat) because I don't have a symbol for pig: Open layer properties -> Style -> Select Graduated Select the Column that contains the number of pigs Click on Symbol to Change it Select point marker From the drop-down menu -> Select SVG marker If you can find a ...


5

Yes, graduated is the way to go. Open the layer style, choose graduated, and set the column to the one with the values you want to style. Set the Mode to whatever best fits your range of values, and likewise set the number of classes to split your ranges into the number of bands that works best for your dataset. You can change the value of the classes if ...


5

For the example, I created a point layer with 5 points and a field "population". Properties of your layer > Symbology > Simple marker > Assistant The assistant allows you to vary the size of your symbology according to a rule, for example the numerical value of a field. In the assistant window, choose the field in which you want to vary the size and ...


5

I complement the anwer with this aclaration: Esri satellite base mapa (Imagery) will render the same information (tiles, resolution...) in any user interface used, could be a desktop software or a web map, also Bing maps and Google Satellite. What it changes is the quality between sources, if you are working with a delimited area, one of the map services ...


4

Your topomap is a SpatialLinesDataframe. geom_map is used for polygons. I suggest you use geom_path as below. It connects observations in original order. (geom_line would order by x value, which you also don't want). topo <- readOGR("public.geojson.json", layer ="OGRGeoJSON") topo <- spTransform(topo, CRS("+init=epsg:31983")) class(topo) #[1] "...


4

You can not change the content of pre-renderd tiles. Since there seems to be no tile server with english labelling worldwide, you have to do it on your own: Render the tiles using the Mapnik toolchain or Maperitive using the name:en field instead of the name field for labelling. Add them with the TileLayer plugin to your project. Using the QuickOSM plugin, ...


4

The best way to get boundaries of countries, provinces and regions is to use the OSM Boundaries application: https://osm.wno-edv-service.de/boundaries/ Extracting boundaries from generic tools like Overpass Turbo is not always easy, as the boundaries may contain errors and are likely complex multipolygons consisting of many parts. The OSM Boundaries ...


4

You have a JSON but Leaflet really likes geoJSONs, so you should convert the JSON to geoJSON first, or directly load a geoJSON. So for your example, if you have: var data =[{ "latitud": 43.526523590087891, "longitud": -5.6150951385498047 }, { "latitud": 43.511680603027344, "longitud": -5.6671133041381836 }, . //More Lat-Lng Points . { "latitud": 43....


4

In the raster style setting, set the contrast enhancment to Stretch and Clip to MinMax, and set the minimum and Maximum values to your desired range


4

The trick to get the same colors in the ggplot is that you have to make a new vector repeating your color vector to reach the same length as the number of rows of the mapFrance object. Try the reproducible and commented step-by-step code: # Load libraries library("maps") library("ggplot2") # Colors color <- c("yellowgreen", "yellowgreen", "...


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