I recently started off on working with shape map files, I downloaded a few shape files from the internet,
the files had the following extension .shp, .dbf, .shx which I am unable to decipher what these extensions are.
Then I found some actionscript libraries to parse these files here
However I am not able to understand the documentati...
I am using the NetCDF 4 java library from unidata to read GRIB2 files and am now trying to find a way to get timezone offsets for a given latitude/longitude. I have a .flt file for the northern hemisphere that contains all of this information and I know how to read it, I just don't know how to do the map projection properly. I am able...
I have an bean placed on my action Event.java, the action is Called ManageEvents. I would like the user to be able to add to a struts2 multiple select form field and create a list or map of items (in this case Map where the data would be .
<struts2:select name="event.dj_map" label="Add DJs To Your Event" list="event.dj_map" listsize="...
I'm programming a Risk like game in Codigniter and JQuery. I've come up with a way to create randomly generated maps by making a full layout of tiles then deleting random ones. However, this sometimes produces what I call islands.
In risk, you can only attack one space over. So if one player happens to have an island all to them self, t...
Are there any toolkits / libraries which can generate a world map and overlay data in a heat map sort of view (like Google's one on http://www.google.com/insights/search/#geo=&q=wimbledon+-tennis%2Cwimbledon+tennis&cmpt=q)?
I would need to be able to generate and display the map locally, not via some webservice, and would need t...
Hi, I have an array of strings:
["username", "String", "password", "String"]
And I want to convert this array to a list of Field objects:
class Field
attr_reader :name, :type
def initialize(name, type)
@name = name
@type = type
end
end
So I need to map "username", "String" => Field.new("username", "Strin...
I'm writing a PHP function that would use a table of sorts to look up which DB shard the application should go to, based on the datestamp I have.
The shard configuration is something like this (pseudo-code): the first column is the date of the event I'm looking for and the 2nd is the shard the event resides in.
pre-2008 -> shard1
2008-...
Hello world,
Im trying to map a list into hex, and then use the list elsewhere. In python 2.6, this was easy:
A: python 2.6:
>>> map(chr,[66,53,0,94])
['B', '5', '\x00', '^']
However, on 3.1, the above returns a map object.
B: python 3.1:
>>> map(chr,[66,53,0,94])
<map object at 0x00AF5570>
How do i retrieve the mapped list (as...
Hi, I'm wondering if there is an implementation of a map which is:
Immutable, so that I can use it in
functional programming, and
effortlessly ensure transactions and concurrency.
Fast. I've checked out Binary
Search Trees (RB, AVL) and Tries, but
none of them seemed to be as fast as
Hash Tables. Is there a map
implementation that supp...
I have the following code which I use to map a nested list in Python to produce a list with the same structure.
>>> nested_list = [['Hello', 'World'], ['Goodbye', 'World']]
>>> [map(str.upper, x) for x in nested_list]
[['HELLO', 'WORLD'], ['GOODBYE', 'WORLD']]
Can this be done with list comprehension alone (without using the map func...
edited
code
//array store the markers
var googleMarker = [];
//this function get json object with the marker data
//place name,place id,place address.
function AjaxGetUserToPlaces(res)
{
var l = res.value.length;
for(var i=0;i<l;i++)
{
var point = new GLatLng(res.value[i].lng,res.value[i].lat)
map.addO...
Currently, we serialize user's session object into database but the object changed too much lately so we decide to redesign this process. We all agree that we can't serialize the whole object and we need to save it field by field. There are 2 proposals,
Store all fields in a map and serialize the map.
Use ObjectOutputStream.putFields()...
How can I use the BeanUtils setProperty method with Maps.
For example, this method:
public void setAddress(String type, Address address);
Can be setted using:
BeanUtils.setProperty(beanObject, "address(home)", addressObject );
But if the object I want to set is a Map, is it possible? how?
...
I'm writing an application, where I want to store strings as keys ans a custom Object as value
multimap<string, owncreatedobject> mymap;
Compiling does well, but I get a "Segmentation fault" when using the funtion insert
during runtime.
mymap.insert(string,myobject); --> Segmentation Error
A already added a copyconstructor an assig...
What is the difference between the following maps I create (in another question, people answered using them seemingly interchangeably and I'm wondering if/how they are different):
HashMap<String, Object> map = new HashMap<String, Object>();
Map<String, Object> map = new HashMap<String, Object>();
...
I need to store a big list of integers in Bigtable(db). For efficiency I am storing them as diff between 2 consecutive items.
for eg:
original_list = [1005, 1004, 1003, 1004, 1006]
Storing the above list(which actually contains more than 1000k items) as
start = 1005
diff = [-1, -1, 1, 2]
The closest I could manage is,
ltp = [st...
I am aware that map is not prepared to be sorted, its heavily optimized for fast and random key access., and actually doesn't support std::sort.
My current problem is that I have a full
map<std::string,int>
which I'm not going to use anymore, I just need to extract 10 pairs in value(int) order and destroy it.
The best thing if it ...
Does anybody know of an easy-to-use, FOSS equivalent of the program generating this 'live' colored, earth map.
Alternatively, equally appreciated would be enough pointers on the logic, API, and data to use to write such a program on my own in Java or C?
What I Basically Want
I need to be able to generate a picture for my space-time c...
Ok so I have struct like this
typedef struct
{
float x;
float y;
char name[];
} pTip;
And another struc
typdef struct
{
float xx;
float yy;
pTip *tip;
}finalTip;
I create and populate a map<string, pTip> maps
That works fine.
I am now trying to generate vector of finalTips
I do:
map<string, pTip>::const_iterator it...
Hello all,
Is there any way to get the geo coordinates for a driving direction from google maps API?
if we use URL to show the driving direction with source and destination address we'll get the map and route as an webpage, instead of that i like to get the co-ordinates and details in some xml like format.
...