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:


4

Actually, logically Union is the the area shared by both plus the area of each of the two layers not shared by the other. Therefore the area returned must be equal to or greater than the area in the largest layer. This is what you are seeing. The way to extract just the portion where the land use layer and the limit layer intersect is to use the Intersect ...


4

In Python a backslash is an escape character. In order to put a backslash in the string you need to need to put another backslash next to it to stop it from forcing a new line. myString = "this is\\ a string with a backslash" I can see your paths are set correctly but maybe the strings you are parsing only have a single backslash. You can solve this ...


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

No need to write any code, a very simple model as shown below could do all this. You set the group by field to be your integer field and the iterator will create a sub-set which you save out using the select tool.


2

It sounds like all you need is a simple join. Use the join tool and use a common field to combine the table and shapefile together. ESRI Help: About Joining and Relating Tables EDIT: I see now it is a new shapefile you want. In that case I would still do the join and then save the joined shapefile as a new shapefile.


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

i have been working on something similar , at the moment i have it to the point where is a script that can be run from idle. what happens is that you make a tempoary feature layer and then you need to save to have your layer. The second link below , save_to_layer_file has a python code example ...


1

You are not providing the code required to add a layer to the map at all. You need a feature layer from the shapefile and then save it on disk as the .lyr file. inputLocationsSavedFcFeatLyr = arcpy.MakeFeatureLayer_management(input_locations_fc,"Stops") arcpy.SaveToLayerFile_management(in_layer=inputLocationsSavedFcFeatLyr, ...



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