Tag Info

New answers tagged

0

Thanks to the comments above I think I can answer now. Shapefiles generally (always?) have an actual feature attribute, which may be called FID, OBJECTID or something else. But, perhaps because the name varies, the GDAL tools allow you to use the term 'FID' and they will generate a 'fake FID' on request, which may not match the actual feature identifier. ...


1

You are probably going to want to find either a good programmer or start reading and figuring out JS. The basic way to do this would be to either find the feature being snapped to (might be a property of the event) or run a spatial query from the feature you added to find the nearest feature in the other layer (assume distance = 0). I do this in a .NET ...


2

This should be all you need: feats = self.layer.getFeatures() self.layer.startEditing() for feat in feats: score = scores[i] feat['F_SCORE'] = score layer.updateFeature(feat) self.layer.commitChanges() You are mixing update via the layer vs at the provider. Generally you should only update via the layer as it provides rollback and error ...


1

Ok, after some hacking around it looks like the parameter c to the _buildLabelText above is actually the fields array of layerDisplay. It looks like the function looks for a match in there (by name) before it'll do any substitutions. If I add this: layerDisplay.fields.push({ alias: "VALUE", length: 10, name: "VALUE", type: ...


1

My understanding is that the ArcGIS Attribute Assistant (AA) tool is an ArcGIS Desktop Add-In, that requires ArcGIS Desktop and .NET framework to run: http://solutions.arcgis.com/shared/help/attribute-assistant/#requirements I do not think you can use AA in conjunction with ArcGIS Online. I was searching for similar thing a few months back and did not find ...


4

The solution that comes to mind is to use a join between your shapefile and the textfile. Its described on this tutorial. If the attributes values change often, you could use a database backend for your data. QGIS works especially well with PostgreSQL-Postgis databases.


2

You have defined meterid as a PRIMARY KEY so they should be unique. You may use Composite Key CREATE TABLE MeterRdg( meterid VARCHAR(5) NOT NULL, reading integer, reader VARCHAR(15), DateRead date, PRIMARY KEY(meterid, DateRead) ) or add a column with counter and use it as a key for whole record CREATE TABLE MeterRdg( ...


1

Thanks to Ujaval gandhi from qgistutorials, he prepared a python script to be run inside the modeler that solves the problem, here is the tutorial that Ujaval made for everyone. http://www.qgistutorials.com/en/docs/processing_python_scripts.html


1

I have found a solution, thanks to Mr Purple: http://gis.stackexchange.com/a/108379/55808. I think the problem was that the fields weren't initialised for the new layer first. As the code ran and didn't complain I assumed it was magically adding the fields/attributes as it went through each feature, but apparently not. import random # Prepare new temporary ...


0

If you are comfortable working with Model Builder, you can use it to create a python script that will accomplish this. In Model Builder simply, make a table view of your July_join table, use Select Layer By Attributes to make your initial selection, and to remove from that selection based on criteria mentioned. Then export the table using Table to Table. ...


1

I would look at using a spatial join in your situation to join your first shape file with your second. That would allow you to determine based on location where each of the crowns are in relation to the communities.


2

To do this using linear referencing: Turn the line into a route. Use the points to add measures along that route as an event table. Then read the order of those points (now point events) in the event table from top to bottom.


1

There could be multiple approaches.Try this , Get the starting point of the poly-line feature Get the nearest vertex from the point feature Create an empty point feature class and push this nearest point into that perform 2,3 recursively for all points in the point feature class A clean and elegant way to get first point of a polyline is found in How do ...



Top 50 recent answers are included