Tag Info

New answers tagged

0

Well I did something for myself,since no one has responded, I've only managed to move the marker or icon ,i have a KML format to represent a plane track, in Openlayers Map, everything works great, but i can only see the plan track, i'd like to see the Line too, it is possible with the same KML file or have i to add something else? i'd, like to do something ...


0

To join line segments you can assign a from-node# and a to-node# to each line segment, where the node# is a hash of x and y rounded off. For example, a point at 123.45,567.8 might be computed to be 123568. This implies a tolerance of 1. You could generalize this to round off to the closest multiple of the tolerance. Once you have From and To node#'s, you ...


0

You can use effectively Shapely, and Fiona to read a shapefile for example: import fiona # open a line shapefile file = fiona.open('lines.shp') # first element of the shapefile first = file.next print first {'geometry': {'type': 'LineString', 'coordinates': [(203317.23, 90448.75), (203679.62, 90105.68), (203882.57, 89902.74), (204143.49, 89641.81), ...


1

It seems that Shapely can answer what you are expecting. See the manual. Create lines using native objects. For what you need, only loop ;) to get segments of a line. For getting intersection point, use operators like intersection I can't say that is efficient but I suppose that because Shapely uses Geos behind, it's quite fast.


0

If a license higher than "Basic" is available a great option is the Planarize Lines tool on the Topology toolbar: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001t0000008t000000.htm


2

Try using Split (Analysis) to subset your data. To illustrate, I added a new text field to the split features (i.e. 1-16 based on OID) and used that as the basis for the split. There are 16 resulting shapefiles on the image to the right. Also, try the Split Layer by Attributes script tool if you have licensing issues. I believe you may need to ...


0

Have you tried "Union" in Analysis tools?


1

you need to add all the geometries before the addMapLayers v_layer = QgsVectorLayer("LineString", "cable", "memory") pr = v_layer.dataProvider() # first element seg = QgsFeature() seg.setGeometry(QgsGeometry.fromPolyline([line_start, geomPoint])) pr.addFeatures( [ seg ] ) v_layer.updateExtents() # second element seg = QgsFeature() ...


0

It can be done in a few ways, using self-joins or correlated subqueries but using window functions is probably the easiest way. The function lead() returns a value that's ahead in the given partition and our partition is (PARTITION BY <vehicle_id> ORDER BY <timestamp>) This query gives us the vehicle number, the position of that point in ...


0

As emerged from our Comments the troubleshooting steps which led to resolving this were: Were the Generalize and Smooth tools from the Advanced Editing toolbar being used? They were. How many vertices did the line which was failing to smooth/generalise have? The Count Vertices tool was downloaded to do the count and then it became evident that the ...


-1

As stated the question seems to me that designing a transmission system from thin air with 9 subs is infeasable. So assuming that the OP has some design in place and/or existing infrastructure is the only way I can see that there can be a solution. That said some improvisation can be accomplished by assuming that the network will folow existing ...


0

Yes, but I have not tested it. 3D Snapping in ArcGIS, which is available in ArcGlobe and ArcScene, and requires a 3D Analyst license, is described here.


0

With 3d analyst, and other extensions you can open a globe and start an edit session. I have not tested 3d snapping but have read that it can be done in that environment.


5

You must first understand how PyQGIS handles geometry (Geometry Handling) The most important element is the point: QgsPoint(x,y) and a line or a segment of line are composed of two points: QgsGeometry.fromPolyline([QgsPoint(x1,y1),QgsPoint(x2,y2)])); So to construct a line: line_start = QgsPoint(50,50) line_end = QgsPoint(100,150) line = ...


1

Not 100% what you are asking for, but why not creating the line in PostGIS first? SELECT gps.gps_track, ST_MakeLine(gps.the_geom ORDER BY gps_time) As newgeom FROM gps_points As gps GROUP BY gps.gps_track; That will create a different line for each gps track and order them by time. I use that to create bus routes, ordered by stop sequence. Really fast ...


1

i was doing similar to that and i did it by : using near tool that will add nearest street ID field in the accidents table then using the frequency tool it will create table contains the count of each street ID from the previous output last stem using join with the streets table you will get what u want :D



Top 50 recent answers are included