An arrangement of quantities or symbols in rows and columns; a matrix

learn more… | top users | synonyms

0
votes
1answer
25 views

Print last digit in Numpy Array [closed]

I'm sure this is pretty basic, but is there a way to print a certain indexed portion of each segment in an array? For example, if I have the numpy array: ([1,2,3], [4,5,6], [7,8,9]) I'd like to ...
0
votes
0answers
45 views

finding length of a custom type array in mapbasic

Hello I am just getting started with MapBasic and I have run in to some trouble trying to count the items in a custom type i have tried accomplishing this by running a loop until an error occur. ...
0
votes
0answers
27 views

Agent Analyst - How to reduce memory use during many, many loops?

I am currently using the Agent Analyst adaptation of Repast within the ArcGIS framework. The model I've built is capable of doing what I'd like (ie. randomly generating biologically-sensible ...
0
votes
1answer
55 views

Filter on a array of value in OpenLayers

I'm running into an issue. I have an array of value coming from a JSON POST. After retrieving these values and storing them into a var, I need to filter an OpenLayers layer with this values. I'm ...
0
votes
0answers
30 views

Installing GarminCustomMap: “missing _gdal_array module” error

I've used the GarminCustomMap plugin in QGIS 1.8 without troubles. But now, with QGIS 2.0, when I try to install it, I get the following message "missing _gdal_array module". Any idea how to fix this? ...
0
votes
0answers
39 views

Skimage graph route to multiple destinations

I want to route through an array with skimage.graph.route_through_array. I have one start point and multiple destination points. I am wondering if it is possible to insert the multiple destination ...
1
vote
3answers
486 views

Is it possible to open rasters as array in NumPy without using another library?

I know that it is possible to open a raster as an array in NumPy using GDAL, but I want to skip GDAL and use NumPy only, as it is cooler handling rasters with NumPy as matrices. There is a similar ...
10
votes
3answers
270 views

How to convert LAS file to numpy array?

I have begun learning how to manipulate LAS data in python and wanted to see how others handle LAS files. I would like to read the points (I am using a numpy array), and filter out classes 1 and 2 ...
0
votes
1answer
59 views

Server Object Extension MultiPoint Input [closed]

I have soe which accepts {x:-112,y:35} as input parameter. how can I modify the soe code so that I can pass more than one point as my input parameters like {x:-112,y:35},{x:-113,36},{x:-113.5,y:34} ...
0
votes
0answers
206 views

OpenLayers LineString: Not displaying the line (array of points)

I'm perplexed as to why tail_path is not drawing the line (can't see anything on the map) but the alert seems to be returning the correct data. var path_travelled = new Array(); var path = ...
2
votes
0answers
190 views

Finding coordinates from a nested grid as a numpy array

So this is a pretty basic question, but I'm trying to figure it out. I've written a script that allows a user to read in a raster and provide a cell resolution, and outputs the amount of cells ...
1
vote
1answer
510 views

Refresh map after removing marker from array

I have a map an arrays of markers. This code: function RemoveRedMarker(siteID) { for (var x in arrRedMarkers) { if (arrRedMarkers[x].SiteID == siteID) { ...
0
votes
1answer
76 views

Can I view a Postgis Geometry Array in QGIS?

I have got an array of geometry as a column in postgis database. Is it possible to view the data (even the nth element?) in qgis?
1
vote
2answers
92 views

Is it possible to export a GeoJSON with an array field from a joined layer?

I'm using QGIS to 1) load a shapefile, 2) join the shapefile data with a CSV-file and finally 3) exporting the layer as GeoJSON. Hence, I end up with something like this, where the properties object ...
2
votes
2answers
239 views

How do I sort a geoJSON feature collection alphabetically by a property value?

I am trying to sort the objects in a geoJSON FeatureCollection alphabetically by the values of one of their properties. How do I get to the nested object properties with JavaScript? I have tried using ...
2
votes
1answer
516 views

How to get polygons from PostGIS table to PHP array best?

Currently I fetch polygons from a database table using ST_AsText(). The results are in text format, like the following. POLYGON((84 104,212 48,321 122,243 179,275 238,131 240,84 104)) I am not ...
10
votes
3answers
1k views

Gdal Dataset.ReadAsArray() crashes Python

I am using Python 2.6.5 (32bit) with Numpy 1.3 and Gdal 1.9.1 installed on Windows 7 64bit. I am trying to read an 800 MB Imagine (.img) raster dataset into a Numpy array to do some raster algebra, ...
0
votes
1answer
84 views

trying to create array reader for feature fields

I am trying to create a functionality that creates array data for any layer that user selects. Now I am able to get all the data in the feature layer that the user selects but I am having some trouble ...
2
votes
1answer
204 views

Create Array From Selected Features Based on the Order in Which They Were Selected

I need to create an array of features from a selection based on the order in which they were selected. As in: I select feature 5,2,3,4. I need to have an array so I can apply attributes (with python) ...
3
votes
3answers
523 views

Convert cursor output to list of geometries

I want to convert all the geometries returned by search cursor to a list. import math import arcpy from arcpy import env env.workspace = r"C:\GIS Data\GIS data_for Maeenul vai" desc = ...