2009. 1. 29. 10:31ㆍ프로그래밍/GIS
Chris Zelenak has created Spacial Query a very nice library for spatial math. He told us:
I recently wrote up a library to help me with operations on polygons, and ended up adding some stuff for dealing with matrix, vector and latitude longitude primitives as well. The name is taken from the JQuery style chaining in the library, that I added just because, well...I like JQuery, and I like being able to do things like:
JAVASCRIPT:
$ll([latitude, longitude]).vector().project_onto([wsg84x, wsg84y, wsg84z]).latlng()It adds a series of $ methods to the global namespace - $p for polygons, $v for vectors, $m for matrices and $ll for latitude/longitude coordinates.
Most vector and matrix operations support calculations to any dimension size.
In cases where they are not supported, one of the two following cases will arise:
- The function will be named
_2d or _3d to indicate what dimension the operated data should be in - The function will throw an error stating that the general case solution has not been implemented yet. (Matrix inversion, for example)
'프로그래밍 > GIS' 카테고리의 다른 글
IP Geolocation 정보 다운 받기 (0) | 2013.09.03 |
---|---|
Ellipsoid Specifications (0) | 2010.02.11 |
Geotools 를 이용한 좌표 변환 (2) | 2010.02.01 |
GRS80 Korea TM (0) | 2010.01.18 |
Geometry Study... (0) | 2009.01.09 |