Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
isochrone
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
Commits
148de59c
Unverified
Commit
148de59c
authored
7 years ago
by
User expired
Browse files
Options
Downloads
Patches
Plain Diff
fixed problem with mineT and its index operation ~ when using geography datasets
parent
aa9d814e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/main/java/it/unibz/inf/isochrone/db/DbQueryPostgres.java
+2
-1
2 additions, 1 deletion
src/main/java/it/unibz/inf/isochrone/db/DbQueryPostgres.java
with
3 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
148de59c
Upcoming version:
Upcoming version:
-----------------
-----------------
-
fixed problem with mineT and its index operation ~ when using geography datasets (Nikolaus Krismer)
-
finishing open todo task (Nikolaus Krismer)
-
finishing open todo task (Nikolaus Krismer)
-
moved some packages (Nikolaus Krismer)
-
moved some packages (Nikolaus Krismer)
-
fixed invalid config for vienna (Nikolaus Krismer)
-
fixed invalid config for vienna (Nikolaus Krismer)
...
...
This diff is collapsed.
Click to expand it.
src/main/java/it/unibz/inf/isochrone/db/DbQueryPostgres.java
+
2
−
1
View file @
148de59c
...
@@ -23,6 +23,7 @@ class DbQueryPostgres extends AbstractDbQuery {
...
@@ -23,6 +23,7 @@ class DbQueryPostgres extends AbstractDbQuery {
final
String
configNodeTileInformation
=
config
.
getTableNodesTileInformation
();
final
String
configNodeTileInformation
=
config
.
getTableNodesTileInformation
();
final
String
joinedNetwork
=
getJoinedNetwork
(
config
,
isIncoming
);
final
String
joinedNetwork
=
getJoinedNetwork
(
config
,
isIncoming
);
final
boolean
usesGeographyType
=
config
.
hasGeoTypeGeography
();
final
boolean
usesGeographyType
=
config
.
hasGeoTypeGeography
();
final
String
tileIndexOperation
=
usesGeographyType
?
"&&"
:
"~"
;
final
int
serverSRID
=
config
.
getServerSRID
();
final
int
serverSRID
=
config
.
getServerSRID
();
final
String
allEdges
=
"SELECT source, target, source_outdegree AS outdegree, target_indegree AS indegree"
final
String
allEdges
=
"SELECT source, target, source_outdegree AS outdegree, target_indegree AS indegree"
...
@@ -84,7 +85,7 @@ class DbQueryPostgres extends AbstractDbQuery {
...
@@ -84,7 +85,7 @@ class DbQueryPostgres extends AbstractDbQuery {
+
" SELECT "
+
DbUtils
.
getGeometry
(
"getTileEnvelope(geo, ?)"
,
DbUtils
.
SRID_BBOX_MINET
,
serverSRID
)
+
" AS bbox"
+
" SELECT "
+
DbUtils
.
getGeometry
(
"getTileEnvelope(geo, ?)"
,
DbUtils
.
SRID_BBOX_MINET
,
serverSRID
)
+
" AS bbox"
+
" FROM "
+
configNode
+
" WHERE id = ?"
+
" FROM "
+
configNode
+
" WHERE id = ?"
+
" ) AS tile, "
+
joinedNetwork
+
" ) AS tile, "
+
joinedNetwork
+
" WHERE tile.bbox
~
"
+
(
config
.
hasNetwork
()
?
"node_"
:
"n."
)
+
"geo"
;
+
" WHERE tile.bbox
"
+
tileIndexOperation
+
"
"
+
(
config
.
hasNetwork
()
?
"node_"
:
"n."
)
+
"geo"
;
// note that when using edgesInTileInformation a joinedNetwork (usually a materialized view) will not be used
// note that when using edgesInTileInformation a joinedNetwork (usually a materialized view) will not be used
final
String
edgesInTileInformation
=
edgeAttributeSelection
final
String
edgesInTileInformation
=
edgeAttributeSelection
...
...
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