h3 3.6.2 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +23 -0
- data/Gemfile.lock +6 -6
- data/README.md +1 -1
- data/ext/h3/src/.github/workflows/test-linux.yml +118 -0
- data/ext/h3/src/.github/workflows/test-macos.yml +42 -0
- data/ext/h3/src/.github/workflows/test-website.yml +32 -0
- data/ext/h3/src/.github/workflows/test-windows.yml +44 -0
- data/ext/h3/src/.gitignore +5 -0
- data/ext/h3/src/.travis.yml +16 -46
- data/ext/h3/src/CHANGELOG.md +43 -0
- data/ext/h3/src/CMakeLists.txt +133 -33
- data/ext/h3/src/CONTRIBUTING.md +1 -1
- data/ext/h3/src/README.md +60 -10
- data/ext/h3/src/RELEASE.md +3 -1
- data/ext/h3/src/VERSION +1 -1
- data/ext/h3/src/dev-docs/RFCs/rfc-template.md +21 -0
- data/ext/h3/src/dev-docs/RFCs/v4.0.0/error-handling-rfc.md +21 -0
- data/ext/h3/src/dev-docs/RFCs/v4.0.0/names_for_concepts_types_functions.md +276 -0
- data/ext/h3/src/dev-docs/RFCs/v4.0.0/overrideable-allocators-rfc.md +141 -0
- data/ext/h3/src/dev-docs/RFCs/v4.0.0/polyfill-modes-rfc.md +21 -0
- data/ext/h3/src/dev-docs/RFCs/v4.0.0/vertex-mode-rfc.md +50 -0
- data/ext/h3/src/dev-docs/build_windows.md +6 -1
- data/ext/h3/src/dev-docs/creating_bindings.md +3 -3
- data/ext/h3/src/dev-docs/custom_alloc.md +27 -0
- data/ext/h3/src/docs/{overview/mainpage.md → README.md} +2 -3
- data/ext/h3/src/docs/api/misc.md +76 -0
- data/ext/h3/src/docs/community/applications.md +1 -0
- data/ext/h3/src/docs/community/bindings.md +7 -1
- data/ext/h3/src/docs/community/tutorials.md +8 -3
- data/ext/h3/src/docs/core-library/coordsystems.md +5 -4
- data/ext/h3/src/docs/core-library/filters.md +8 -9
- data/ext/h3/src/docs/core-library/geoToH3desc.md +2 -3
- data/ext/h3/src/docs/core-library/h3ToGeoBoundaryDesc.md +4 -5
- data/ext/h3/src/docs/core-library/h3ToGeoDesc.md +3 -4
- data/ext/h3/src/docs/core-library/h3indexing.md +26 -17
- data/ext/h3/src/docs/core-library/overview.md +2 -3
- data/ext/h3/src/docs/core-library/restable.md +1 -2
- data/ext/h3/src/docs/core-library/usage.md +1 -2
- data/ext/h3/src/docs/table-of-contents.json +47 -0
- data/ext/h3/src/docs/{overview/usecases.md → usecases.md} +6 -11
- data/ext/h3/src/scripts/binding_functions.sh +1 -1
- data/ext/h3/src/scripts/coverage.sh.in +1 -1
- data/ext/h3/src/scripts/update_version.sh +2 -2
- data/ext/h3/src/src/apps/applib/include/args.h +1 -0
- data/ext/h3/src/src/apps/applib/include/test.h +1 -0
- data/ext/h3/src/src/apps/applib/include/utility.h +7 -1
- data/ext/h3/src/src/apps/applib/lib/args.c +2 -0
- data/ext/h3/src/src/apps/applib/lib/kml.c +2 -0
- data/ext/h3/src/src/apps/applib/lib/test.c +1 -0
- data/ext/h3/src/src/apps/applib/lib/utility.c +133 -2
- data/ext/h3/src/src/apps/benchmarks/benchmarkH3Api.c +1 -1
- data/ext/h3/src/{website/html.config.js → src/apps/benchmarks/benchmarkH3UniEdge.c} +15 -12
- data/ext/h3/src/src/apps/filters/h3ToComponents.c +1 -0
- data/ext/h3/src/src/apps/filters/h3ToGeo.c +1 -0
- data/ext/h3/src/src/apps/filters/h3ToGeoBoundary.c +1 -0
- data/ext/h3/src/src/apps/filters/h3ToLocalIj.c +1 -0
- data/ext/h3/src/src/apps/filters/hexRange.c +1 -0
- data/ext/h3/src/src/apps/filters/kRing.c +1 -0
- data/ext/h3/src/src/apps/filters/localIjToH3.c +1 -0
- data/ext/h3/src/src/apps/miscapps/generateFaceCenterPoint.c +1 -0
- data/ext/h3/src/src/apps/miscapps/generateNumHexagons.c +1 -0
- data/ext/h3/src/src/apps/miscapps/generatePentagonDirectionFaces.c +67 -0
- data/ext/h3/src/src/apps/miscapps/h3ToGeoBoundaryHier.c +1 -0
- data/ext/h3/src/src/apps/miscapps/h3ToGeoHier.c +1 -0
- data/ext/h3/src/src/apps/miscapps/h3ToHier.c +1 -0
- data/ext/h3/src/src/apps/testapps/mkRandGeo.c +1 -0
- data/ext/h3/src/src/apps/testapps/mkRandGeoBoundary.c +1 -0
- data/ext/h3/src/src/apps/testapps/testBBox.c +1 -0
- data/ext/h3/src/src/apps/testapps/testBaseCells.c +15 -1
- data/ext/h3/src/src/apps/testapps/testCompact.c +75 -0
- data/ext/h3/src/src/apps/testapps/testCoordIj.c +1 -0
- data/ext/h3/src/src/apps/testapps/testGeoCoord.c +40 -13
- data/ext/h3/src/src/apps/testapps/testGeoToH3.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3Api.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3CellArea.c +47 -0
- data/ext/h3/src/src/apps/testapps/testH3CellAreaExhaustive.c +180 -0
- data/ext/h3/src/src/apps/testapps/testH3Distance.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3DistanceExhaustive.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3GetFaces.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3Index.c +33 -3
- data/ext/h3/src/src/apps/testapps/testH3Line.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3LineExhaustive.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3Memory.c +175 -0
- data/ext/h3/src/src/apps/testapps/testH3NeighborRotations.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3SetToLinkedGeo.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3SetToVertexGraph.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3ToCenterChild.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3ToChildren.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3ToGeo.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3ToGeoBoundary.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3ToLocalIj.c +9 -5
- data/ext/h3/src/src/apps/testapps/testH3ToLocalIjExhaustive.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3ToParent.c +1 -0
- data/ext/h3/src/src/apps/testapps/testH3UniEdge.c +45 -16
- data/ext/h3/src/src/apps/testapps/testH3UniEdgeExhaustive.c +111 -0
- data/ext/h3/src/src/apps/testapps/testHexRanges.c +1 -0
- data/ext/h3/src/src/apps/testapps/testHexRing.c +1 -0
- data/ext/h3/src/src/apps/testapps/testKRing.c +1 -0
- data/ext/h3/src/src/apps/testapps/testLinkedGeo.c +1 -0
- data/ext/h3/src/src/apps/testapps/testMaxH3ToChildrenSize.c +1 -0
- data/ext/h3/src/src/apps/testapps/testPentagonIndexes.c +1 -0
- data/ext/h3/src/src/apps/testapps/testPolyfill.c +72 -9
- data/ext/h3/src/src/apps/testapps/testPolyfillReported.c +157 -0
- data/ext/h3/src/src/apps/testapps/testPolygon.c +1 -0
- data/ext/h3/src/src/apps/testapps/testVec2d.c +1 -0
- data/ext/h3/src/src/apps/testapps/testVec3d.c +1 -0
- data/ext/h3/src/src/apps/testapps/testVertex.c +66 -0
- data/ext/h3/src/src/apps/testapps/testVertexGraph.c +1 -0
- data/ext/h3/src/src/h3lib/include/algos.h +8 -0
- data/ext/h3/src/src/h3lib/include/alloc.h +40 -0
- data/ext/h3/src/src/h3lib/include/baseCells.h +4 -0
- data/ext/h3/src/src/h3lib/include/bbox.h +4 -1
- data/ext/h3/src/src/h3lib/include/faceijk.h +3 -2
- data/ext/h3/src/src/h3lib/include/geoCoord.h +2 -3
- data/ext/h3/src/src/h3lib/include/h3Index.h +37 -4
- data/ext/h3/src/src/h3lib/include/h3api.h.in +65 -17
- data/ext/h3/src/src/h3lib/include/linkedGeo.h +1 -0
- data/ext/h3/src/src/h3lib/include/polygon.h +1 -0
- data/ext/h3/src/src/h3lib/include/polygonAlgos.h +1 -0
- data/ext/h3/src/src/h3lib/include/vertex.h +44 -0
- data/ext/h3/src/src/h3lib/include/vertexGraph.h +1 -0
- data/ext/h3/src/src/h3lib/lib/algos.c +300 -75
- data/ext/h3/src/src/h3lib/lib/baseCells.c +26 -4
- data/ext/h3/src/src/h3lib/lib/bbox.c +56 -31
- data/ext/h3/src/src/h3lib/lib/coordijk.c +2 -0
- data/ext/h3/src/src/h3lib/lib/faceijk.c +32 -21
- data/ext/h3/src/src/h3lib/lib/geoCoord.c +162 -44
- data/ext/h3/src/src/h3lib/lib/h3Index.c +81 -43
- data/ext/h3/src/src/h3lib/lib/h3UniEdge.c +42 -57
- data/ext/h3/src/src/h3lib/lib/linkedGeo.c +20 -15
- data/ext/h3/src/src/h3lib/lib/localij.c +1 -1
- data/ext/h3/src/src/h3lib/lib/polygon.c +2 -0
- data/ext/h3/src/src/h3lib/lib/vec2d.c +1 -0
- data/ext/h3/src/src/h3lib/lib/vec3d.c +1 -0
- data/ext/h3/src/src/h3lib/lib/vertex.c +134 -0
- data/ext/h3/src/src/h3lib/lib/vertexGraph.c +8 -5
- data/ext/h3/src/website/.eslintignore +2 -0
- data/ext/h3/src/website/.gitignore +57 -0
- data/ext/h3/src/website/.nvmrc +1 -0
- data/ext/h3/src/website/README.md +8 -6
- data/ext/h3/src/website/gatsby-config.js +83 -0
- data/ext/h3/src/website/package.json +20 -12
- data/ext/h3/src/website/scripts/build-to-gh-pages.sh +7 -5
- data/ext/h3/src/website/src/.gitkeep +0 -0
- data/ext/h3/src/website/templates/documentation.jsx +129 -0
- data/ext/h3/src/website/yarn.lock +13723 -0
- data/lib/h3/bindings/private.rb +3 -0
- data/lib/h3/miscellaneous.rb +123 -0
- data/lib/h3/version.rb +1 -1
- data/spec/miscellaneous_spec.rb +117 -0
- data/spec/regions_spec.rb +1 -1
- metadata +35 -14
- data/ext/h3/src/.ycm_extra_conf.py +0 -92
- data/ext/h3/src/appveyor.yml +0 -50
- data/ext/h3/src/src/apps/testapps/testPolyfill_GH136.c +0 -58
- data/ext/h3/src/website/src/config.js +0 -46
- data/ext/h3/src/website/src/mdRoutes.js +0 -151
- data/ext/h3/src/website/src/styles/_variables.scss +0 -16
- data/ext/h3/src/website/src/styles/index.scss +0 -3
- data/ext/h3/src/website/static/index.html +0 -15
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2018, Uber Technologies, Inc
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
import os
|
|
16
|
-
import ycm_core
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def DirectoryOfThisScript():
|
|
20
|
-
return os.path.dirname( os.path.abspath( __file__ ) )
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
project_dir = DirectoryOfThisScript()
|
|
24
|
-
|
|
25
|
-
flags = [
|
|
26
|
-
'-Wall',
|
|
27
|
-
'-Werror',
|
|
28
|
-
'-pedantic',
|
|
29
|
-
'-std=c11',
|
|
30
|
-
'-pthread',
|
|
31
|
-
'-x',
|
|
32
|
-
'c',
|
|
33
|
-
'-isystem',
|
|
34
|
-
'/usr/local/include',
|
|
35
|
-
'-I',
|
|
36
|
-
os.path.join(project_dir, 'src/h3lib/include'),
|
|
37
|
-
'-I',
|
|
38
|
-
os.path.join(project_dir, 'src/apps/applib/include')
|
|
39
|
-
]
|
|
40
|
-
|
|
41
|
-
compilation_database_folder = os.path.join(project_dir, 'build')
|
|
42
|
-
|
|
43
|
-
if os.path.exists( compilation_database_folder ):
|
|
44
|
-
database = ycm_core.CompilationDatabase( compilation_database_folder )
|
|
45
|
-
else:
|
|
46
|
-
database = None
|
|
47
|
-
|
|
48
|
-
SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ]
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
def IsHeaderFile( filename ):
|
|
52
|
-
extension = os.path.splitext( filename )[ 1 ]
|
|
53
|
-
return extension in [ '.h', '.hxx', '.hpp', '.hh' ]
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
def GetCompilationInfoForFile( filename ):
|
|
57
|
-
# The compilation_commands.json file generated by CMake does not have entries
|
|
58
|
-
# for header files. So we do our best by asking the db for flags for a
|
|
59
|
-
# corresponding source file, if any. If one exists, the flags for that file
|
|
60
|
-
# should be good enough.
|
|
61
|
-
if IsHeaderFile( filename ):
|
|
62
|
-
basename = os.path.splitext( filename )[ 0 ]
|
|
63
|
-
for extension in SOURCE_EXTENSIONS:
|
|
64
|
-
replacement_file = basename + extension
|
|
65
|
-
if os.path.exists( replacement_file ):
|
|
66
|
-
compilation_info = database.GetCompilationInfoForFile(
|
|
67
|
-
replacement_file )
|
|
68
|
-
if compilation_info.compiler_flags_:
|
|
69
|
-
return compilation_info
|
|
70
|
-
return None
|
|
71
|
-
return database.GetCompilationInfoForFile( filename )
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
def FlagsForFile( filename, **kwargs ):
|
|
75
|
-
if not database:
|
|
76
|
-
return {
|
|
77
|
-
'flags': flags,
|
|
78
|
-
'include_paths_relative_to_dir': DirectoryOfThisScript()
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
compilation_info = GetCompilationInfoForFile( filename )
|
|
82
|
-
if not compilation_info:
|
|
83
|
-
return None
|
|
84
|
-
|
|
85
|
-
# Bear in mind that compilation_info.compiler_flags_ does NOT return a
|
|
86
|
-
# python list, but a "list-like" StringVec object.
|
|
87
|
-
final_flags = list( compilation_info.compiler_flags_ )
|
|
88
|
-
|
|
89
|
-
return {
|
|
90
|
-
'flags': final_flags,
|
|
91
|
-
'include_paths_relative_to_dir': compilation_info.compiler_working_dir_
|
|
92
|
-
}
|
data/ext/h3/src/appveyor.yml
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2014, Ruslan Baratov
|
|
2
|
-
# All rights reserved.
|
|
3
|
-
#
|
|
4
|
-
# Redistribution and use in source and binary forms, with or without
|
|
5
|
-
# modification, are permitted provided that the following conditions are met:
|
|
6
|
-
#
|
|
7
|
-
# * Redistributions of source code must retain the above copyright notice, this
|
|
8
|
-
# list of conditions and the following disclaimer.
|
|
9
|
-
#
|
|
10
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
-
# this list of conditions and the following disclaimer in the documentation
|
|
12
|
-
# and/or other materials provided with the distribution.
|
|
13
|
-
#
|
|
14
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
15
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
16
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
17
|
-
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
18
|
-
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
19
|
-
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
20
|
-
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
21
|
-
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
22
|
-
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
23
|
-
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
24
|
-
|
|
25
|
-
environment:
|
|
26
|
-
matrix:
|
|
27
|
-
- GENERATOR: "Visual Studio 12"
|
|
28
|
-
CONFIG: Debug
|
|
29
|
-
|
|
30
|
-
- GENERATOR: "Visual Studio 12"
|
|
31
|
-
CONFIG: Release
|
|
32
|
-
|
|
33
|
-
- GENERATOR: "Visual Studio 12 Win64"
|
|
34
|
-
CONFIG: Debug
|
|
35
|
-
|
|
36
|
-
- GENERATOR: "Visual Studio 12 Win64"
|
|
37
|
-
CONFIG: Release
|
|
38
|
-
|
|
39
|
-
build_script:
|
|
40
|
-
- cmake "-G%GENERATOR%" -H. -Bbuild
|
|
41
|
-
- cmake --build build --config "%CONFIG%"
|
|
42
|
-
- cmake --build build --config "%CONFIG%" --target binding-functions
|
|
43
|
-
|
|
44
|
-
test_script:
|
|
45
|
-
- ps: cd build
|
|
46
|
-
- ctest -C "%CONFIG%"
|
|
47
|
-
# Check that binding-functions was generated and has content
|
|
48
|
-
- ps: |
|
|
49
|
-
$ErrorActionPreference = "Stop"
|
|
50
|
-
if ((Get-Item "binding-functions").Length -lt 10) { $host.SetShouldExit(1) }
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2017-2019 Uber Technologies, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
#include <stdlib.h>
|
|
18
|
-
#include "algos.h"
|
|
19
|
-
#include "constants.h"
|
|
20
|
-
#include "geoCoord.h"
|
|
21
|
-
#include "h3Index.h"
|
|
22
|
-
#include "test.h"
|
|
23
|
-
|
|
24
|
-
// https://github.com/uber/h3/issues/136
|
|
25
|
-
|
|
26
|
-
static GeoCoord testVerts[] = {{0.10068990369902957, 0.8920772174196191},
|
|
27
|
-
{0.10032914690616246, 0.8915914753447348},
|
|
28
|
-
{0.10033349237998787, 0.8915860128746426},
|
|
29
|
-
{0.10069496685903621, 0.8920742194546231}};
|
|
30
|
-
static Geofence testGeofence = {.numVerts = 4, .verts = testVerts};
|
|
31
|
-
static GeoPolygon testPolygon;
|
|
32
|
-
|
|
33
|
-
static int countActualHexagons(H3Index* hexagons, int numHexagons) {
|
|
34
|
-
int actualNumHexagons = 0;
|
|
35
|
-
for (int i = 0; i < numHexagons; i++) {
|
|
36
|
-
if (hexagons[i] != 0) {
|
|
37
|
-
actualNumHexagons++;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return actualNumHexagons;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
SUITE(polyfill_gh136) {
|
|
44
|
-
testPolygon.geofence = testGeofence;
|
|
45
|
-
testPolygon.numHoles = 0;
|
|
46
|
-
|
|
47
|
-
TEST(gh136) {
|
|
48
|
-
int res = 13;
|
|
49
|
-
int numHexagons = H3_EXPORT(maxPolyfillSize)(&testPolygon, res);
|
|
50
|
-
H3Index* hexagons = calloc(numHexagons, sizeof(H3Index));
|
|
51
|
-
|
|
52
|
-
H3_EXPORT(polyfill)(&testPolygon, res, hexagons);
|
|
53
|
-
int actualNumHexagons = countActualHexagons(hexagons, numHexagons);
|
|
54
|
-
|
|
55
|
-
t_assert(actualNumHexagons == 4353, "got expected polyfill size");
|
|
56
|
-
free(hexagons);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2018 Uber Technologies, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export const PROJECT_TYPE = 'github';
|
|
18
|
-
export const PROJECT_NAME = 'h3';
|
|
19
|
-
export const PROJECT_ORG = 'uber';
|
|
20
|
-
export const PROJECT_URL = `https://github.com/${PROJECT_ORG}/${PROJECT_NAME}`;
|
|
21
|
-
export const PROJECT_DESC = 'A hexagonal hierarchical geospatial indexing system';
|
|
22
|
-
|
|
23
|
-
export const PROJECTS = {
|
|
24
|
-
'H3': 'https://uber.github.io/h3'
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const HOME_HEADING =
|
|
28
|
-
'A hexagonal hierarchical geospatial indexing system.';
|
|
29
|
-
|
|
30
|
-
/* eslint-disable quotes */
|
|
31
|
-
export const HOME_BULLETS = [{
|
|
32
|
-
text: 'Partition data into a hexagonal grid',
|
|
33
|
-
desc: `H3 has an easy API for indexing coordinates into a hexagonal, global grid.`,
|
|
34
|
-
img: 'images/icon-high-precision.svg'
|
|
35
|
-
}, {
|
|
36
|
-
text: 'Hierarchical grid system',
|
|
37
|
-
desc: `Easy, bitwise truncation to coarser, approximate cells, along with area compression/decompression \
|
|
38
|
-
algorithms.`,
|
|
39
|
-
img: 'images/icon-layers.svg'
|
|
40
|
-
}, {
|
|
41
|
-
text: 'Fully global',
|
|
42
|
-
desc: `Along with twelve pentagons, the entire world is addressable in H3, down to square meter resolution.`,
|
|
43
|
-
img: 'images/icon-chart.svg'
|
|
44
|
-
}];
|
|
45
|
-
|
|
46
|
-
export const ADDITIONAL_LINKS = [];
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2018 Uber Technologies, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import mainpage from '../../docs/overview/mainpage.md';
|
|
18
|
-
import usecases from '../../docs/overview/usecases.md';
|
|
19
|
-
|
|
20
|
-
import overview from '../../docs/core-library/overview.md';
|
|
21
|
-
import usage from '../../docs/core-library/usage.md';
|
|
22
|
-
import coordsystems from '../../docs/core-library/coordsystems.md';
|
|
23
|
-
import filters from '../../docs/core-library/filters.md';
|
|
24
|
-
import geoToH3desc from '../../docs/core-library/geoToH3desc.md';
|
|
25
|
-
import h3Indexing from '../../docs/core-library/h3indexing.md';
|
|
26
|
-
import h3ToGeoBoundaryDesc from '../../docs/core-library/h3ToGeoBoundaryDesc.md';
|
|
27
|
-
import h3ToGeoDesc from '../../docs/core-library/h3ToGeoDesc.md';
|
|
28
|
-
import restable from '../../docs/core-library/restable.md';
|
|
29
|
-
|
|
30
|
-
import api_hierarchy from '../../docs/api/hierarchy.md';
|
|
31
|
-
import api_indexing from '../../docs/api/indexing.md';
|
|
32
|
-
import api_inspection from '../../docs/api/inspection.md';
|
|
33
|
-
import api_misc from '../../docs/api/misc.md';
|
|
34
|
-
import api_traversal from '../../docs/api/traversal.md';
|
|
35
|
-
import api_regions from '../../docs/api/regions.md';
|
|
36
|
-
import api_uniedge from '../../docs/api/uniedge.md';
|
|
37
|
-
|
|
38
|
-
import community_bindings from '../../docs/community/bindings.md';
|
|
39
|
-
import community_libraries from '../../docs/community/libraries.md';
|
|
40
|
-
import community_applications from '../../docs/community/applications.md';
|
|
41
|
-
import community_tutorials from '../../docs/community/tutorials.md';
|
|
42
|
-
|
|
43
|
-
export default [{
|
|
44
|
-
name: 'Documentation',
|
|
45
|
-
path: '/documentation',
|
|
46
|
-
data: [{
|
|
47
|
-
name: 'Overview',
|
|
48
|
-
children: [
|
|
49
|
-
{
|
|
50
|
-
name: 'Introduction',
|
|
51
|
-
markdown: mainpage
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: 'Use Cases',
|
|
55
|
-
markdown: usecases
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}, {
|
|
59
|
-
name: 'Core Library',
|
|
60
|
-
children: [
|
|
61
|
-
{
|
|
62
|
-
name: 'Overview',
|
|
63
|
-
markdown: overview
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
name: 'Coordinate Systems',
|
|
67
|
-
markdown: coordsystems
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: 'Unix-Style Filters',
|
|
71
|
-
markdown: filters
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'H3 Index Representations',
|
|
75
|
-
markdown: h3Indexing
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: 'Walkthrough of geoToH3',
|
|
79
|
-
markdown: geoToH3desc
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: 'Walkthrough of h3ToGeoBoundary',
|
|
83
|
-
markdown: h3ToGeoBoundaryDesc
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'Walkthrough of h3ToGeo',
|
|
87
|
-
markdown: h3ToGeoDesc
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: 'Using H3',
|
|
91
|
-
markdown: usage
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: 'Resolution Table',
|
|
95
|
-
markdown: restable
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}, {
|
|
99
|
-
name: 'API Reference',
|
|
100
|
-
children: [
|
|
101
|
-
{
|
|
102
|
-
name: 'Indexing',
|
|
103
|
-
markdown: api_indexing
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'Inspection',
|
|
107
|
-
markdown: api_inspection
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'Traversal',
|
|
111
|
-
markdown: api_traversal
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: 'Hierarchy',
|
|
115
|
-
markdown: api_hierarchy
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: 'Regions',
|
|
119
|
-
markdown: api_regions
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'Unidirectional Edges',
|
|
123
|
-
markdown: api_uniedge
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: 'Miscellaneous',
|
|
127
|
-
markdown: api_misc
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
}, {
|
|
131
|
-
name: 'Community',
|
|
132
|
-
children: [
|
|
133
|
-
{
|
|
134
|
-
name: 'Bindings',
|
|
135
|
-
markdown: community_bindings
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: 'Libraries Using H3',
|
|
139
|
-
markdown: community_libraries
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: 'Applications Using H3',
|
|
143
|
-
markdown: community_applications
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: 'Tutorials',
|
|
147
|
-
markdown: community_tutorials
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
}]
|
|
151
|
-
}];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
$primary: #00ADE6;
|
|
2
|
-
$secondary: #05E3D5;
|
|
3
|
-
$black: #041725;
|
|
4
|
-
$black-20: #213746;
|
|
5
|
-
$black-40: #5A666D;
|
|
6
|
-
$white: #EDEDED;
|
|
7
|
-
$white-40: #8D9BA3;
|
|
8
|
-
$font-family: 'Source Sans Pro';
|
|
9
|
-
$footer-height: 13rem;
|
|
10
|
-
$topbar-height: 4rem;
|
|
11
|
-
$topbar-maxheight: 8rem;
|
|
12
|
-
$toc-width: 17rem;
|
|
13
|
-
$mobile: 576px;
|
|
14
|
-
|
|
15
|
-
$gradient-1: linear-gradient(to right, $primary 0%, $secondary 100%);
|
|
16
|
-
$gradient-2: linear-gradient(to bottom, $primary 0%, $secondary 100%);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>H3: A Hexagonal Hierarchical Geospatial Indexing System</title>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<meta name="description" content="H3 is a worldwide hexagonal hierarchical grid.">
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
|
-
<link rel="icon" type="img/ico" href="favicon.ico">
|
|
9
|
-
<link rel="stylesheet" id="font-link" href="https://d1a3f4spazzrp4.cloudfront.net/uber-fonts/3.1.0/refresh.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<div id="app-content"></div>
|
|
13
|
-
<script type="text/javascript" src="bundle.js"></script>
|
|
14
|
-
</body>
|
|
15
|
-
</html>
|