[GRASS-SVN] r43855 -
grass/branches/releasebranch_6_4/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 11 09:10:04 EDT 2010
Author: mmetz
Date: 2010-10-11 06:10:04 -0700 (Mon, 11 Oct 2010)
New Revision: 43855
Modified:
grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c
Log:
disable dglib cache
Modified: grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c 2010-10-11 06:55:03 UTC (rev 43854)
+++ grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c 2010-10-11 13:10:04 UTC (rev 43855)
@@ -486,22 +486,22 @@
pclip = NULL;
if (List != NULL) {
+ /* nRet =
+ dglShortestPath(&(Map->graph), &pSPReport, (dglInt32_t) from,
+ (dglInt32_t) to, clipper, pclip, &(Map->spCache)); */
+ /* comment out belwo and uncomment above to debug dglib cache */
nRet =
dglShortestPath(&(Map->graph), &pSPReport, (dglInt32_t) from,
- (dglInt32_t) to, clipper, pclip, &(Map->spCache));
- /* comment out above and uncomment below to debug dglib cache */
- /* nRet =
- dglShortestPath(&(Map->graph), &pSPReport, (dglInt32_t) from,
- (dglInt32_t) to, clipper, pclip, NULL); */
+ (dglInt32_t) to, clipper, pclip, NULL);
}
else {
+ /* nRet =
+ dglShortestDistance(&(Map->graph), &nDistance, (dglInt32_t) from,
+ (dglInt32_t) to, clipper, pclip, &(Map->spCache)); */
+ /* comment out belwo and uncomment above to debug dglib cache */
nRet =
dglShortestDistance(&(Map->graph), &nDistance, (dglInt32_t) from,
- (dglInt32_t) to, clipper, pclip, &(Map->spCache));
- /* comment out above and uncomment below to debug dglib cache */
- /* nRet =
- dglShortestDistance(&(Map->graph), &nDistance, (dglInt32_t) from,
- (dglInt32_t) to, clipper, pclip, NULL); */
+ (dglInt32_t) to, clipper, pclip, NULL);
}
if (nRet == 0) {
More information about the grass-commit
mailing list