I've attached the myvect and myvect_smooth files. Thanks for the help!!
On Dec 14, 2007 4:53 PM, Moritz Lennert <[EMAIL PROTECTED]> wrote: > On 14/12/07 15:37, Andre Hauptfleisch wrote: > > I'll try to upload the vector layer I used to an ftp site. What would > > the best output format be? DXF? > > You can just use the output of v.out.ascii. If the file is not too > large, you can zip the output and send it to me directly. > > Moritz > > > > > > > On Dec 14, 2007 4:13 PM, Moritz Lennert < [EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > On 14/12/07 14:48, Andre Hauptfleisch wrote: > > > Good day guys, > > > > > > I came across a problem in the v.generalize module. I do the > > following: > > > v.generalize [EMAIL PROTECTED] output=myvect_smooth type=line > > > method=hermite threshold=10 > > > > > > I then do a v.out.svg and noticed the following line in the svg > file: > > > <path gg:cat="31" d="M 111.500000 -80.500000 l 8.734748 4.771559 > > > 9.907176 6.337565 nan nan nan nan nan nan nan nan nan nan" /> > > > > > > Any idea how I can get rid of those nan's? They cause stuff such > as > > > v.to.rast to hang. > > > > I cannot reproduce this with the speafish60 dataset: > > > > v.out.svg [EMAIL PROTECTED] output=roads type=line precision=6 > > layer=1 > > > > and > > > > v.generalize [EMAIL PROTECTED] output=roads_smooth type=line > > method=hermite threshold=10 look_ahead=7 reduction=50 slide=0.5 > > angle_thresh=3 degree_thresh=0 closeness_thresh=0 > betweeness_thresh=0 > > alpha=1.0 beta=1.0 iterations=1 layer=1 > > > > v.out.svg [EMAIL PROTECTED] output=roads_smooth type=line > > precision=6 layer=1 > > > > Both give me svg files without nan's. > > > > Can you reproduce this with spearfish data ? Can you look at the > line > > with cat=31 in your grass vector (maybe in v.digit) and see if there > is > > anything abnormal about it ? > > > > Moritz > > > > > > > > > > -- > > Groete, > > Andre Hauptfleisch > > > > M: 082 5722 469 > > F: 086 687 1106 > > E: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > -- Groete, Andre Hauptfleisch M: 082 5722 469 F: 086 687 1106 E: [EMAIL PROTECTED]
ORGANIZATION: DIGIT DATE: DIGIT NAME: andreh MAP NAME: MAP DATE: Fri Dec 14 17:35:29 2007 MAP SCALE: 1 OTHER INFO: ZONE: 0 MAP THRESH: 0.000000 VERTI: L 3 118.5 462.5 88.5 500.5 68.5 486.5 L 2 2.5 410.5 50.5 506.5 L 3 507.5 410.5 500.5 474.5 488.5 499.5 L 6 291.5 209.5 215.5 234.5 135.5 268.5 113.5 272.5 64.5 297.5 11.5 312.5 L 4 291.5 209.5 301.5 225.5 236.5 478.5 228.5 494.5 L 2 305.5 200.5 291.5 209.5 L 8 332.5 192.5 344.5 202.5 369.5 202.5 397.5 209.5 418.5 220.5 435.5 221.5 471.5 234.5 497.5 239.5 L 2 84.5 103.5 100.5 132.5 L 3 49.5 93.5 67.5 106.5 84.5 103.5 L 2 111.5 80.5 84.5 103.5 L 3 194.5 55.5 169.5 67.5 131.5 67.5 L 5 143.5 4.5 123.5 9.5 96.5 24.5 68.5 30.5 11.5 53.5 L 1 305.5 200.5 L 3 332.5 192.5 324.5 207.5 305.5 200.5 L 1 332.5 192.5 L 2 315.5 167.5 305.5 200.5 L 1 321.5 143.5 L 2 325.5 118.5 321.5 143.5 L 2 298.5 110.5 321.5 143.5 L 3 332.5 88.5 322.5 100.5 325.5 118.5 L 1 332.5 88.5 L 1 126.5 82.5 L 2 322.5 73.5 332.5 88.5 L 2 131.5 67.5 126.5 82.5 L 1 131.5 67.5 L 2 345.5 63.5 332.5 88.5 L 2 332.5 192.5 315.5 167.5 L 2 315.5 167.5 321.5 143.5 L 3 126.5 82.5 113.5 110.5 118.5 125.5 L 2 126.5 82.5 111.5 80.5 L 4 111.5 80.5 131.5 67.5 114.5 59.5 131.5 67.5
ORGANIZATION: DIGIT DATE: DIGIT NAME: andreh MAP NAME: MAP DATE: Fri Dec 14 17:35:29 2007 MAP SCALE: 1 OTHER INFO: ZONE: 0 MAP THRESH: 0.000000 VERTI: L 7 118.5 462.5 99.874997 488.196599 92.793646 496.771372 87.253307 500.854707 77.927051 495.931645 69.840347 487.694746 68.5 486.5 L 2 2.5 410.5 50.5 506.5 L 6 507.5 410.5 500.945804 472.045309 498.600573 480.518246 493.431787 490.944621 489.00531 498.533048 488.5 499.5 L 10 291.5 209.5 215.503392 234.498717 138.823464 267.187495 131.534911 269.747829 121.958312 270.798212 113.180205 272.63316 67.31142 296.29912 60.480402 298.923757 17.112044 310.994523 11.5 312.5 L 6 291.5 209.5 299.295009 210.393423 301.438634 225.796891 236.505784 478.478683 230.416406 493.981837 228.5 494.5 L 2 305.5 200.5 291.5 209.5 L 13 332.5 192.5 339.264617 199.371909 347.808933 202.913462 369.00086 202.441312 378.05222 204.143287 389.139367 206.925455 397.903496 209.65322 416.223913 219.580102 424.791503 221.045851 435.25097 221.436049 472.814917 234.861367 494.302002 238.94636 497.5 239.5 L 2 84.5 103.5 100.5 132.5 L 5 49.5 93.5 56.704173 99.396441 65.929482 105.866585 75.772806 105.9345 84.5 103.5 L 2 111.5 80.5 84.5 103.5 L 6 194.5 55.5 176.86321 64.900317 167.985638 67.723878 157.958626 68.127745 135.066664 67.5819 131.5 67.5 L 9 143.5 4.5 134.870608 6.28345 124.038347 9.278693 97.520019 24.08005 89.362243 26.300742 79.015014 27.99853 68.633328 30.454777 12.099779 53.256843 11.5 53.5 L 1 305.5 200.5 L 5 332.5 192.5 328.729186 202.206647 322.279764 207.51962 311.418504 203.32149 305.5 200.5 L 1 332.5 192.5 L 2 315.5 167.5 305.5 200.5 L 1 321.5 143.5 L 2 325.5 118.5 321.5 143.5 L 2 298.5 110.5 321.5 143.5 L 5 332.5 88.5 325.473579 95.579677 322.460018 104.496627 324.856333 115.720431 325.5 118.5 L 1 332.5 88.5 L 1 126.5 82.5 L 2 322.5 73.5 332.5 88.5 L 2 131.5 67.5 126.5 82.5 L 1 131.5 67.5 L 2 345.5 63.5 332.5 88.5 L 2 332.5 192.5 315.5 167.5 L 2 315.5 167.5 321.5 143.5 L 5 126.5 82.5 117.217439 101.012175 113.609038 109.998243 115.90171 120.391788 118.5 125.5 L 2 126.5 82.5 111.5 80.5 L 8 111.5 80.5 120.234748 75.728441 130.141924 69.390876 nan nan nan nan nan nan nan nan 131.5 67.5
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
