danieldkim / geomodel Goto Github PK
View Code? Open in Web Editor NEWA javascript implementation of the Geomodel/Geocell concept: http://code.google.com/apis/maps/articles/geospatial.html
A javascript implementation of the Geomodel/Geocell concept: http://code.google.com/apis/maps/articles/geospatial.html
Not using Node, so I haven't run the file, but the example proximity_fetch call seems to have the arguments out of order.
Firstly, thanks for the port. It's exactly what I need.
The call stack for my use case is something like this:
best_bbox_search_cells
min_resolution remains as 0 (not sure if this is expected or not)
cur_ne and cur_sw are initially empty strings
interpolation_count is passed empty strings
compute_box is passed an empty string
In the Java version, computeBox() would return the following when passed an empty string:
BoundingBox bbox = new BoundingBox(90.0f, 180.0f, -90.0f, -180.0f);
But in your JS version, the following code returns null:
if (!cell_) {
return null;
}
That later results in the following error in interpolation_count:
caught TypeError: Cannot call method 'getNorth' of null
at this line:
var cell_lat_span = bbox_sw.getNorth() - bbox_sw.getSouth();
Haven't provided a patch since I'm not sure of the best fix.
Thanks,
Eliot.
when using 'best_bbox_search_cells' with a bbox that crosses a major (resolution 1) fault line (such as cells '8' and '9', an error is thrown.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.