New answers tagged

1

Edit this snippet into your code: library(rgeos) # to use dissolve polygons library(broom) # to replace fortify() with tidy(). # Select Affected states based on $T3. Subset and merge to one polygon. statesAffectedList <- as.character(unique(final.plot$NAME_1[final.plot$T3 == "State Affected"])) states.shp$STATE_NAME <- as.character(states.shp$...


0

For small numbers of features, read Hardolph's answer on this thread: https://geonet.esri.com/thread/7568 Works like a charm for all licence levels.


0

Your schema is wrong import static org.geotools.coverage.processing.operation.Interpolate.TYPE; should be import org.opengis.feature.simple.SimpleFeatureType; Which leads to you needing a line like: SimpleFeatureType TYPE = DataUtilities.createType("test", "line", "the_geom:LineString"); to create your FeatureType (or schema). Then it works fine....


1

The following is a 4-step approach with standard QGIS functions which might get what you want. Here's the TLDR: Buffer the fences Split the buffers along all boundaries Extract the overlap areas Remove the parts of the river that fall within the overlaps Here's a more detailed explanation: 1. Buffering the fences "Vector --> Geoprocessing Tools --> ...


2

What I would try: Densify river lines. Draw perpendicular lines on vertices. Split perpendicular lines by riverlines. Classify perpendicular lines left / right with sidebuffer. Analyse linecrossings perpendicular lines with fencelines. Join results to vertices. Check where left and / or right did not cross fencelines. I would use FME Desktop (build ...


0

create a cost allocation for each line segment based on segment_ID, convert the cost allocation to polygons and intersect each cost allocation polygon with you road polygons.


2

+proj=longlat +datum=WGS84 is a coordinate reference system (crs). If you would create a map with that, by treating longitude as 'x' and latitude as 'y', you could call it the equirectangular projection. +proj=laea stand for "Lambert Equal Area". This is planar (Cartesian) crs (unlike angular longlat), and can be used with rgeos::gLenght. gLength computes ...


0

The Digitizing Tools plugin has to amend line function https://github.com/bstroebl/DigitizingTools/wiki/Usage Prolong line applies to: line layer (multi or single part) Continue editing existing online features. Just click any end point of an existing line and digitize new vertices as if you would digitize the new feature.


0

In ArcGIS 10.3 there is a new tool called Edge Match Features (http://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-existing-features/using-the-edge-match-tool.htm) and Generate Edgematch links (http://desktop.arcgis.com/en/arcmap/10.3/tools/editing-toolbox/generate-edgematch-links.htm) that will link line endpoints to one another based on a search ...


1

Can you see if these lines are offsetting in different directions? If so, then I think your lines were drawn in different directions. That is, one was drawn from left to right and the other from right to left. To fix this, you need to flip one of the lines. It's up to you to determine what makes sense. Whether you fix the one on the top, or the one on ...


1

After much trial and error, I went for a Python script to solve my problem as I want to get the Longitudes of the crossings in between nodes rather than getting the closest node. In retrospect, I should have been more clear about that in my question. Here's my code: from qgis.core import * from qgis.gui import * import qgis.utils import numpy as np """...


2

In the next release (8 july 2016) this wil be fixed. Have a look at http://changelog.linfiniti.com/en/qgis/version/2.16.0/ There you can read: Feature: Extend linestring geometries with reshape tool The reshape tool now allows you to extend linestrings, by starting a reshape at either a line's start or end point. This feature was developed ...


1

You could calculate lat and lon as attributes in you shapefile and then use the "select features using an expression" tool. Important to make sure that the lat and lon are using the same precision and scale as the coordinate that you are searching for. Amended - included steps for using the "Select features using an expression tool" You mentioned in your ...



Top 50 recent answers are included