Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
isochrone-vm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institut für Informatik
dbis
dbis-isochrone
isochrone-vm
Commits
6be1bb72
There was a problem fetching the pipeline summary.
Commit
6be1bb72
authored
8 years ago
by
User expired
Browse files
Options
Downloads
Patches
Plain Diff
adding MineT(X) functions for geography datatype
parent
9e1ae090
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
conf/pg_procedures_minet.sql
+17
-0
17 additions, 0 deletions
conf/pg_procedures_minet.sql
with
18 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
6be1bb72
Upcoming version:
Upcoming version:
-----------------
-----------------
-
adding MineT(X) functions for geography datatype (Nikolaus Krismer)
-
moved berlin dataset to only be deployed on dbis-isochrone (Nikolaus Krismer)
-
moved berlin dataset to only be deployed on dbis-isochrone (Nikolaus Krismer)
-
added functions for MineT(X) algorithm to postgis/postgresql DB (Nikolaus Krismer)
-
added functions for MineT(X) algorithm to postgis/postgresql DB (Nikolaus Krismer)
-
updated gradle to version 3.0 (Nikolaus Krismer)
-
updated gradle to version 3.0 (Nikolaus Krismer)
...
...
This diff is collapsed.
Click to expand it.
conf/pg_procedures_minet.sql
+
17
−
0
View file @
6be1bb72
...
@@ -55,3 +55,20 @@ BEGIN
...
@@ -55,3 +55,20 @@ BEGIN
END
;
END
;
$
BODY
$
$
BODY
$
LANGUAGE
plpgsql
IMMUTABLE
;
LANGUAGE
plpgsql
IMMUTABLE
;
CREATE
OR
REPLACE
FUNCTION
getTileEnvelope
(
geog
geography
,
zoom
integer
)
RETURNS
geography
AS
$
BODY
$
DECLARE
_result
geography
;
BEGIN
SELECT
ST_MakeEnvelope
(
bbox
.
xmin
,
bbox
.
ymin
,
bbox
.
xmax
,
bbox
.
ymax
,
4326
)::
geography
INTO
_result
FROM
(
SELECT
tile2lon
(
tile
.
x
,
zoom
)
AS
xmin
,
tile2lat
(
y
,
zoom
)
AS
ymin
,
tile2lon
(
tile
.
x
+
1
,
zoom
)
AS
xmax
,
tile2lat
(
y
+
1
,
zoom
)
AS
ymax
FROM
(
SELECT
lon2tile
(
ST_X
(
geog
::
geometry
),
zoom
)
AS
x
,
lat2tile
(
ST_Y
(
geog
::
geometry
),
zoom
)
AS
y
)
AS
tile
)
AS
bbox
;
RETURN
_result
;
END
;
$
BODY
$
LANGUAGE
plpgsql
IMMUTABLE
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment