Tag Info

Hot answers tagged

4

Update you roads direction using a formula something like if (45 <= (360 + math.atan2((!Shape.lastpoint.X! - !Shape.firstpoint.X!),(!Shape.lastpoint.Y! - !Shape.firstpoint.Y!)) * (180 / math.pi)) % 360 % 180) < 135): dir = 'W-E' else: dir = 'N-S' Then for each direction group number them in order using the first opposite ordinate to sort. ...


2

As far as I can tell, OSM data does not define the road width, but there is a property named "highway" that describes the road type. You can use this property to symbolize different road types with different widths. For certain features, there may also be a lanes key, which you can use to get an idea of the actual road width. (But I would suspect that width ...


2

You can use the Merge Divided Roads (Cartography) tool for this. Generates single-line road features in place of matched pairs of divided road lanes. Matched pairs of roads or lanes are merged if they are the same road class, trend generally parallel to one another, and are within the merge distance apart. The road class is specified by the Merge ...


2

Apologies if I misunderstood your question but perhaps you could create a new attribute column and calculate the length of each feature from there using: $length Hopefully others will help if I am indeed mistaken.


2

Here is a decent start to what you're asking. It can be more accurate if you somehow gathered the "mean direction" of all the vertices and used that to determine the azimuth for a given road segment. Also, this uses an arcpy.Sort_management function that sorts the feature table spatially starting, in this case, with a particular corner of the data (like "LR" ...


2

OpenStreetMap is a crowd-sourced spatial dataset. The free download server (http://download.geofabrik.de/) provides access to daily-updated information. Not sure about traffic volumes though.


1

geocode the points of interest. then take your road centerline shapefile and create a buffer around it that is adequate for your needs (as some points of interest may be 40' off the road, etc) then do a spatial join of all POIs that fall inside the road buffer.


1

The linked post will give you your answer... But those profile graphs are pretty useless graphics. The point thing will work, but might miss the actual maximum or you might needlessly create far too many points. I think you could avoid it all by using the Add Surface Information tool from the 3D Analyst toolbox and asking for Z_MAX. ...


1

I haven't used that particular tool but the results look fairly typical of unsupervised snapping when the line vertex order doesn't respect the street topology and the geometric accuracy is poor. Not sure if by merge you simply mean create a topologically connected set of roads or merging parallel dual carriageway. But one option is to buffer with merge ...


1

From the Google Maps Maker Maker Help page: Lanes designate the number of vehicles that can pass parallel to one another on the route. Select the number of lanes to specify the total number of drivable lanes on the drawn road. Verify the number of lanes selected using satellite imagery and Street View where available. One-way Roads: Use the total ...


1

I think you are correct that the only way to update Waze is manually using the Waze Map Editor. To determine whether there is any unadvertised means to apply updates in the way you seek I recommend contacting Waze using their Contact Us page.


1

Very late reply but I posted a similar answer not long ago. You can download .csv file which contains roads of GB (not UK unfortunately but still might be useful) with the length measured in miles: http://data.dft.gov.uk/gb-traffic-matrix/Traffic-major-roads-miles.csv It also contains coordinate data for it to be immediately imported into various GIS ...


1

Here's one approach: Using OSM data from Geofabrik you will have the administrative boundaries and all the roads. Simply load the data into PostGIS (there are plenty of tutorial of how to do that - other spatially enabled databases are available) and then select all roads that intersect the appropriate level of admin boundary. The count of the selection ...


1

I posted this question on the R-sig-Geo listserv and received a helpful answer from Adrian Baddeley, one of the spatstats authors. I will post my interpretation of his response here for posterity. Adrian notes that the function spatstat::pixellate.psp() is a better match to my task. This function converts a line segment pattern (or SpatialLines object ...


1

First thing first is clean up the data. 1) Use the UNSPLIT LINE tool with the dissolve field set to the street names. 2) Use the 'Plannerize tool' on the output at step 1 to create segments between each crossing 3) Used the 'intersect tool' to create points at each intersection. (Join Attributes set to FID_Only and the output type should be set to ...


1

I don't consider this a complete solution as it relies on non-out-of-the-box tools and isn't fully tested. It also may require an Advanced license. For now I am removing the comments I made linking to questions with methods using the start and end nodes of the lines, as after some testing I'm not sure how to apply that to this problem (while at the same time ...


1

That's a very nice use case for Linear Referencing tools. Have a look at my answer to this post: QGIS Linear Referencing. There I explain the capabilities of the QGIS LRS plugin. That should help you get started.


1

Right-click on your length field -> statistics -> look at the SUM field


1

EDIT : The default output of line density is in kilometer per square kilometer. So the output of the tool is already what you are looking for (you don't need to divide it again by the size of the circle, this is done automatically). Note that the vector-based approach from @Anggik will be more precise, however you will not have overlapping window analysis.


1

in my point of view, you should decide your unit area (it could be county boundary or certain grid). after that, do some geoprocessing to divide roads in each unit area. Then you calculate each of roads length in each unit area and divide with the hectarage (or km2).


1

I don't know what could be the difference between console and plugin, I think it should to work either way. Also you try to replace layer.commitChanges() (which makes not sense there) with layer.triggerRepaint() and look if that helps (note it is not necessary to call mapCanvas.refresh()). You can also use custom properties for the layer to enable labeling, ...



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