Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
leger
rv
Commits
186bad4c
Commit
186bad4c
authored
Jul 10, 2014
by
Jean-Benoist Leger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
frontend update
parent
efba60ef
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
Makefile.am
Makefile.am
+1
-1
configure.ac
configure.ac
+2
-1
herve/js/herve.js
herve/js/herve.js
+4
-4
herve/js/images
herve/js/images
+0
-1
herve/py/send.py
herve/py/send.py
+1
-1
route/database.h
route/database.h
+2
-2
No files found.
Makefile.am
View file @
186bad4c
AUTOMAKE_OPTIONS
=
foreign
SUBDIRS
=
route height sql doc utils
SUBDIRS
=
route height sql doc utils
herve
configure.ac
View file @
186bad4c
...
...
@@ -35,4 +35,5 @@ AC_OUTPUT([Makefile
route/Makefile
sql/Makefile
doc/Makefile
utils/Makefile])
utils/Makefile
herve/Makefile])
herve/js/herve.js
View file @
186bad4c
...
...
@@ -38,7 +38,7 @@ function load_map() {
var
osmfrUrl
=
'
http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png
'
;
var
osmfr
=
new
L
.
TileLayer
(
osmfrUrl
,
{
maxZoom
:
18
,
attribution
:
osmAttribution
});
herve
.
map
.
setView
(
new
L
.
LatLng
(
4
0.845165
,
-
77.483849
),
8
);
herve
.
map
.
setView
(
new
L
.
LatLng
(
4
7
,
3
),
6
);
var
baseLayers
=
{
"
OpenStreetMap
"
:
osm
,
...
...
@@ -513,9 +513,9 @@ function showLinks()
function
showGpx
()
{
txt
=
'
<ul>
'
+
'
<li><a href="
/
py/getGPX.py?jid=
'
+
herve
.
jid
+
'
&minimal=0&step=0&nptsmax=0">GPX avec tous les pts</a></li>
'
+
'
<li><a href="
/
py/getGPX.py?jid=
'
+
herve
.
jid
+
'
&minimal=1&step=0&nptsmax=0">GPX avec uniquement les pts d
\'
itersection</a></li>
'
+
'
<li><a href="
/
py/getGPX.py?jid=
'
+
herve
.
jid
+
'
&minimal=0&step=200&nptsmax=50">GPX pour Garmin (50 pt max)</a></li>
'
+
'
<li><a href="py/getGPX.py?jid=
'
+
herve
.
jid
+
'
&minimal=0&step=0&nptsmax=0">GPX avec tous les pts</a></li>
'
+
'
<li><a href="py/getGPX.py?jid=
'
+
herve
.
jid
+
'
&minimal=1&step=0&nptsmax=0">GPX avec uniquement les pts d
\'
itersection</a></li>
'
+
'
<li><a href="py/getGPX.py?jid=
'
+
herve
.
jid
+
'
&minimal=0&step=200&nptsmax=50">GPX pour Garmin (50 pt max)</a></li>
'
+
'
</ul>
'
+
'
<p><a href="#" onclick="showLinks(); return false;">Retour</a></p>
'
+
'
<hr />
'
;
...
...
herve/js/images
deleted
120000 → 0
View file @
efba60ef
../images
\ No newline at end of file
herve/py/send.py
View file @
186bad4c
...
...
@@ -111,7 +111,7 @@ print json.dumps({'jid':jid})
sys
.
stdout
.
flush
()
subprocess
.
Popen
([
"/sbin/start-stop-daemon"
,
'-S'
,
'-b'
,
'-p'
,
'/tmp/does-not-exists'
,
'--exec'
,
"/home/rv/rv/route/rv_route"
,
'--'
,
dbstr
,
(
"
%
d"
%
jid
)])
subprocess
.
Popen
([
"/sbin/start-stop-daemon"
,
'-S'
,
'-b'
,
'-p'
,
'/tmp/does-not-exists'
,
'--exec'
,
rv_route
,
'--'
,
dbstr
,
(
"
%
d"
%
jid
)])
route/database.h
View file @
186bad4c
...
...
@@ -27,8 +27,8 @@ class database
pqxx
::
connection
dbw
;
database
(
const
std
::
string
&
s_filename
,
unsigned
int
jid_i
)
:
db
(
s_filename
),
txn
(
db
),
dbw
(
s_filename
),
jid
(
jid_i
)
{
db
.
prepare
(
"get_node"
,
"SELECT ST_X(geom),ST_Y(geom),height FROM rv_nodes WHERE id=$1;"
);
db
.
prepare
(
"get_adj"
,
"SELECT to_id FROM rv_edges WHERE from_id=$1;"
);
db
.
prepare
(
"get_node"
,
"SELECT ST_X(geom),ST_Y(geom),height FROM rv_nodes WHERE id=$1;"
)
(
"bigint"
)
;
db
.
prepare
(
"get_adj"
,
"SELECT to_id FROM rv_edges WHERE from_id=$1;"
)
(
"bigint"
)
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment