Tag Info

Hot answers tagged

5

NetworkX ( A python module for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks ) has a read_shp() function which generates a graphs from shapefiles. You might want to check it out. Here's a short tutorial. No TPSLIB export as far as I know but does support writing the graphs into formats like GML, GraphML, ...


4

Maybe this one is a better example, and I'm afraid transformFeature control is not the right tool to do this job because it can only change the geometry of the feature but externalGraphic is a style property, which can only apply to a point feature. And another style property you need to use is rotation. So you have to write your own logic by using ...


3

I would use a zonal statistics analysis to investigate the relationship between crime rate and land price. Use Zonal Statistics as Table (Spatial Analyst) tool with these settings: in_zone_data = crime rate zone_field = label (field of crime rate) in_value_raster = land price statistics_type = all The result is a table. Use Excel to create a chart. ...


3

After an enormous amount of time debugging, I solved the problem. The fc's stored in each arcpy.ListFeatureClass() list must first be made into a feature layer (arcpy.MakeFeatureLayer) in memory before being passed to the arcpy.Graph() class, arcpy.MakeGraph, and finally arcpy.SaveGraph functions. Word of Wisdom: Another related note for creating a graph ...


2

You want to favor edges that are "close" to the line segment joining the endpoints of the path (its "axis," let's say). One direct way to do this is to weight the edges accordingly. How you weight them will determine what kind of path is "nicest." Just make sure that edges further from the axis get proportionately greater weight. As an illustration, I ...


2

You can display barcharts in QGIS with the Diagrams Overlay plugin. You may have to enable it first. From the Plugins menu, select 'Manage plugins'. Look for the plugin and enable it by clicking on the checkbox. Then open the Layer Properties, for the layer containing the data to be displayed. On the Overlay tab, you will find the settings for barcharts. ...


2

We had done something similar in Flex Using the ArcGIS FLEX API. Since you are working in JavaScript, have a look at the Rickshaw Library. Especially this Sample:Interactive Hover Details You need to store your data such that it has 4 variables for each point, such as: Speed Distance From Starting point (or maybe Time?) X value of point (or longitude) ...


2

Take a look at ParaView, which is a generic 3D model viewer, with support for time dependency. However, getting data into the program can be difficult, as it has poor GIS file format support. You may need to write a format that the program recognizes, which can be a pain. I suggest a legacy VTK format. X3D would be ideal (since there is a ST_AsX3D PostGIS ...


1

There are already many plugins which use the Python module matplotlib. (Midvatten here) If you know Python, it is not very difficult to use the Python console or a Python script in the Processing Toolbox. In the same way, you can use a R script in the Processing Toolbox.


1

To turn your lines into edges, and give them an id, you may want to use assign_vertex_id inside PostGIS in case your lines are in PostgreSQL/PostGIS. Using that, you will get a unique id for your rail network lines. To get the vertices i.e. start and end point of the lines you can simply add two extra columns for them and run a simple update to fill values ...


1

One approach would be to create a layer action similar to what is described in A python layer action to open a wikipedia page in QGIS. The python package which is often used in plugins which create graphs is called matplotlib. It can create all kinds of graphs. Since you didn't specify which kind you need - this gives you flexibility but requires some ...


1

GeoExplorer is a sample application built with the Client SDK, which provides useful functionality like styling layers and publishing maps. Use the Client SDK to build your own applications. You may want to follow the tutorial to learn how to built your own applications on top of and components for the SDK. Your custom components will use OpenLayers and ...


1

You are right in saying that ArcGIS Desktop's Garphing framework is not very developer friendly. If you want to access it, and create graphs, you need to use the IDataGraphT interface. There are many samples and snippets linked on the documentation page. I personally hate the graphs in ArcGIS Desktop. They are ugly, and you don't really have much ...


1

I found a nice OpenSpace Example with Elevation graph displayed that uploads gpx files for anywhere in the UK and displays the Elevation. http://www.maptogps.com/index.php Altitude data from GeoNames http://www.geonames.org/export/web-services.html (its worth looking a the code and contacting the author via the feedback form)


1

For the first problem, you might want to check out line rasterization algorithms. Bresenham's algorithm , which @whuber mentioned, is one of them. This is so because your nodes, with their von Neuman neighborhoods, can be treated as the center of a raster cell. Your "nice" path requirement is also similar to the raster approximation of a line. Below is an ...



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