Tag Info

Hot answers tagged

3

First, when you bring your DWG into ArcMap, there is no need to convert it to another file type, unless you are trying to edit the linework. You can view the file and change the way it looks without doing any conversion. (If you do need to edit it, right-click on the Polyline layer in the DWG and choose "Data" and "Export Data." You can then export it ...


2

It looks like using the read() method was returning a string. json.load will return you a json object that you can then parse: import urllib2 import json url = "http://<myserver-name>/ArcGIS/rest/services/CU/MapServer?<layer-index>f=pjson" response = json.load(urllib2.urlopen(url)) min_scale = response["minScale"] max_scale = ...


2

I did not know that the FID was not preserved by this tool. Strange. As Chris recommended, calculate a unique ID for each point before you use the buffer tool. The unique ID I use for all my points is a concatenation of the X and Y coordinates in a text field I call XY_LINK. You should be able to create a join field without creating any new feature ...


2

It is not as easy as it used to be, but there are some helper methods for the collection. That should allow you to do similar things as ThomasG77 described above. Assuming you have a map named map, with 4 layers i.e. [base_layer, coastlines, heatmap, markers] Then you can get the collection via map.getLayers(), and the array of layers via ...


1

You forgot to upload 2 files <script src="nzoutline.geojson"></script> <script src="sectors.geojson"></script> They should be in the same directory as 167finalAD.html


1

I suggest to use this program to rename your files http://www.bulkrenameutility.co.uk/Main_Intro.php. It's open and easy to use. After you have renamed your file, you must open, with a text editor, your qgis project file (try notepad++) and make the same find&replace.


1

If you have a consistent schema for renaming them, you could do this in a python script. One method in python is os.rename(src, dest). Specific details would depend on what the algorithm for renaming the files is. This is for renaming the actual files, not just the layer names in the TOC. Otherwise, I don't know of an alternative to renaming them manually, ...


1

Looks like there is geometry mismatch between POINT and MULTIPOINT. The type of GEOMETRY that the layer is storing can be seen in that layers Properties window on the Metadata tab. You can try converting either layer to a POINT or MULTIPOINT (depending on your requirements) using the Vector > Geometry Tools > Multipart to Singleparts... or ...


1

for QGIS 2.6 here is the code to identify each layer and group them #make the desired groups for layers root = QgsProject.instance().layerTreeRoot() group1 = root.insertGroup(0, "Group Point") group2 = root.insertGroup(1, "Group Line") group3 = root.insertGroup(2, "Group Polygon") #get the list of layers ...



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