Tag Info

Hot answers tagged

6

Removed the previous links, which I should have checked more scrutinously, and found some information and shapefiles which hopefully would be of some use: The EEZ Boundaries (Exclusive Economic Zone) which for this purpose is mainly used to show the coastal lines and outlines of continents. http://www.marineregions.org/downloads.php#eez The main Global ...


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

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. ...


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

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 ...


3

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. ...


3

That's a known issue of QGIS 2.2 but it should be fixed in the dev version and will be in 2.4. See http://hub.qgis.org/issues/9780


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

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

If your layers have a field that matches a ddp name or page number you can set a definition query on your feature class to include or exclude features that match the ddp


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 ...


2

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.


2

Open table Select Graph, type Hystogram Pick field Experiment with graphs, there are options to export, etc


2

Unfortunately arcpy does not have the ability to modify an existing graph through the API, just create new ones using MakeGraph_management.


2

I don't think there is currently a way to add the grf file to the layout. However, you can save the graph as an image - see here. In your layout you can have a picture element called "GRAPH" which could be a placeholder for the image of your graph (just insert a picture into your layout). Change the element name here: The path of the image will go ...


1

shape.Z and shape.M aren't fields, they are properties of the shape field. If you want to plot Z and M, you should export these to new fields and use the new fields in arcpy.graph.addSeriesLineVertical.


1

I created a workaround solution to the problem. Instead of using the graph output from StackProfile_3d it is possible to create a graph from the value table. With this approach it is also possible to customize the look of the graph using a graph text template which first must be created, see intructions in the code below. import arcpy # Set Local ...


1

It seems there is a bug with this function in version 10.1: Bug NIM-092377 - When using Python to generate a Stack Profile, 3D Analyst (arcpy.StackProfile_3d), the output table and graph generated are blank. It doesn't correspond fully to your description as your table is not empty, though. Apparently it's solved with 10.2, you could try with this version if ...


1

You can create a query to select all edges within some distance of the start and end points and then only the major roads in the bbox between the the start and end points. So something like: select * from edges where st_dwithin(the_geom, start_pt, radius) union select * from edges where st_dwithin(the_geom, end_pt, radius) union select * from edges where ...


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 think I've done this. I sum the attribute value based on the date (I can't remember if it's better to have the date as a string variable or a date) and then do a histogram on the summation .dbf data.


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

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