Tag Info

Hot answers tagged

5

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


3

Assuming all your text files are into the same directory, you can run this code snippet in the QGIS Python console to get your files loaded as individual layers in QGIS: import os.path, glob layers=[] for file in glob.glob('/tmp/xy/*.txt'): # Change this base path uri = "file://" + file + ...


3

Combine all text files in a windows directory with the copy command: copy *.txt river.txt On Linux use the cat (concatenate) command: cat * > river.txt Then in QGIS for the merged text file use 'Add Delimited Text Layer' button.


2

Regarding CartoDB: Those 10 layers that you mention can be moved to CartoDB in just one single layer. :-) CartoDB allows you to edit your layers in two ways: by using SQL (to filter or alter the actual data you want to show) and/or by using CartoCSS, which will allow you to style your geometries even independently inside the same layer. I recommend you ...


2

Leaflet's map.fitBounds has an option padding which you can use like so: map.fitBounds(polygon.getBounds(), { padding:[50,50] } ); JSFiddle demo: http://jsfiddle.net/1vjqjx6h/


2

For the second problem, I contacted the author (as suggested by DWynne) who gave the correction: for filename in dirpath[2]: That corrected the problem. The author told me he contacted Esri shortly after this made it into print but Esri hasn't changed it on the web. He told me he'd contact them again. For the first problem of this script not listing ...


2

If you won't use ArcGIS Online basemaps, then don't add any map of the basemap type. Add Tiled map service and then add Dynamic map service. Add a slider to manage opacity of the top layer. Generally, Esri refers to a basemap as to any reference map that is drawn underneath all other layers and is used for orientation. In terms of JS API, basemaps are Esri ...


1

For anyone who is interested, I just learned a really quick way to do this. Zoom into the area / extent you are working with > open image analysis window > click the clip tool under processing. A layer will be added to the map of the area in the extent when you performed the clip function.


1

Image services such as these do not perform at full capacity unless your dataframe is in the same projection as the image service. To rectify the situation make sure your current data frame is set to the SouthAfrica_Albers_Equal_Area_Conic projected coordinate system. Once you do that, you will find the image service is quite snappy. Right click the ...


1

You could use this method: http://support.esri.com/em/knowledgebase/techarticles/detail/30330 or create a polygon representing the area you need to clip and use the Clip function to clip it out.


1

based on srussking answer I wrote the following code assuming the main map object called map and it is a global var, I preferred using find layer by name and not by id, here is my code: function moveLayerBefore(old_idx, new_idx){ if((old_idx === -1) || (new_idx === -1)){ return false; } layer = map.getLayers().removeAt(old_idx); ...



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