buffer by Marko Sosic

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3358 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
rabla 2005-05-12 16:10:25 +00:00
parent 42fc989ec1
commit c8c2480523
7 changed files with 430 additions and 0 deletions

View File

@ -8,6 +8,10 @@
<grass name="v.overlay.not"/>
<grass name="v.overlay.xor"/>
</section>
<section label="Buffer">
<grass name="v.buffer"/>
<grass name="r.buffer"/>
</section>
<section label="Extract features from vector">
<grass name="v.select.overlap"/>
<grass name="v.extract.where"/>

View File

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docbase="/home/pinuz/gis/qgis-cvs/qgis/plugins/grass/modules"
sodipodi:docname="r.buffer.1b.svg"
inkscape:version="0.41"
sodipodi:version="0.32"
id="/hardmnt/janacek0/ssi/blazek/inst/qgis/cvs/plugins/grass/modules/r.to.vect.line.1"
height="500"
y="0"
x="0"
width="500">
<metadata
id="metadata30">
<rdf:RDF
id="RDF32">
<cc:Work
id="Work34"
rdf:about="">
<dc:format
id="format36">image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
id="type38" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs28" />
<sodipodi:namedview
inkscape:current-layer="/hardmnt/janacek0/ssi/blazek/inst/qgis/cvs/plugins/grass/modules/r.to.vect.line.1"
inkscape:window-y="26"
inkscape:window-x="0"
inkscape:zoom="0.43415836"
inkscape:cx="305.25953"
inkscape:cy="417.84947"
inkscape:window-height="539"
inkscape:window-width="640"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base" />
<rect
id="rect3"
style="stroke:rgb(0,0,0);stroke-width:0;fill:rgb(255,255,255);"
height="500"
y="0"
x="0"
width="500" />
<polygon
id="polygon7"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
points="347 143 347 75 415 75 415 143 347 143" />
<polygon
id="polygon9"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
points="347 143 347 75 415 75 415 143 347 143" />
<polygon
id="polygon11"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
points="279 212 279 143 347 143 347 212 279 212" />
<polygon
id="polygon13"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
points="279 212 279 143 347 143 347 212 279 212" />
<polygon
id="polygon15"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
points="210 280 210 212 279 212 279 280 210 280" />
<polygon
id="polygon17"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
points="210 280 210 212 279 212 279 280 210 280" />
<polygon
id="polygon19"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
points="142 348 142 280 210 280 210 348 142 348" />
<polygon
id="polygon21"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
points="142 348 142 280 210 280 210 348 142 348" />
<polygon
id="polygon23"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
points="142 348 142 416 74 416 74 348 142 348" />
<polygon
id="polygon25"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
points="142 348 142 416 74 416 74 348 142 348" />
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -0,0 +1,161 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="500"
x="0"
y="0"
height="500"
id="/hardmnt/janacek0/ssi/blazek/inst/qgis/cvs/plugins/grass/modules/r.to.vect.line.1"
sodipodi:version="0.32"
inkscape:version="0.41"
sodipodi:docname="r.buffer.2b.svg"
sodipodi:docbase="/home/pinuz/gis/qgis-cvs/qgis/plugins/grass/modules">
<metadata
id="metadata30">
<rdf:RDF
id="RDF32">
<cc:Work
rdf:about=""
id="Work34">
<dc:format
id="format36">image/svg+xml</dc:format>
<dc:type
id="type38"
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs28" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:window-width="640"
inkscape:window-height="539"
inkscape:cy="417.84947"
inkscape:cx="305.25953"
inkscape:zoom="0.43415836"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:current-layer="/hardmnt/janacek0/ssi/blazek/inst/qgis/cvs/plugins/grass/modules/r.to.vect.line.1" />
<rect
width="500"
x="0"
y="0"
height="500"
style="stroke:rgb(0,0,0);stroke-width:0;fill:rgb(255,255,255);"
id="rect3" />
<g
id="g1300">
<polygon
points="347 143 347 75 415 75 415 143 347 143"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon7" />
<polygon
points="347 143 347 75 415 75 415 143 347 143"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon9" />
<polygon
points="279 212 279 143 347 143 347 212 279 212"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon11" />
<polygon
points="279 212 279 143 347 143 347 212 279 212"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon13" />
<polygon
points="210 280 210 212 279 212 279 280 210 280"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon15" />
<polygon
points="210 280 210 212 279 212 279 280 210 280"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon17" />
<polygon
points="142 348 142 280 210 280 210 348 142 348"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon19" />
<polygon
points="142 348 142 280 210 280 210 348 142 348"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon21" />
<polygon
points="142 348 142 416 74 416 74 348 142 348"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:0.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon23" />
<polygon
points="142 348 142 416 74 416 74 348 142 348"
style="fill-opacity:1.0000000;fill:#fef400;stroke-width:1.0000000;stroke:none;stroke-opacity:1.0000000"
id="polygon25" />
</g>
<polygon
transform="translate(-69.20496,-0.923342)"
points="347.00000,143.00000 347.00000,75.000000 415.00000,75.000000 415.00000,143.00000 347.00000,143.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon1314" />
<polygon
transform="translate(-69.20496,-0.923342)"
points="279.00000,212.00000 279.00000,143.00000 347.00000,143.00000 347.00000,212.00000 279.00000,212.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon1318" />
<polygon
transform="translate(-69.20496,-0.923342)"
points="210.00000,280.00000 210.00000,212.00000 279.00000,212.00000 279.00000,280.00000 210.00000,280.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon1322" />
<polygon
transform="translate(-69.20496,-0.923342)"
points="142.00000,348.00000 142.00000,280.00000 210.00000,280.00000 210.00000,348.00000 142.00000,348.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon1326" />
<polygon
transform="translate(-69.20496,-0.923342)"
points="142.00000,348.00000 142.00000,416.00000 74.000000,416.00000 74.000000,348.00000 142.00000,348.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon1330" />
<polygon
transform="translate(68.78631,1.069204)"
points="347.00000,143.00000 347.00000,75.000000 415.00000,75.000000 415.00000,143.00000 347.00000,143.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon2102" />
<polygon
transform="translate(68.78631,1.069204)"
points="279.00000,212.00000 279.00000,143.00000 347.00000,143.00000 347.00000,212.00000 279.00000,212.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon2104" />
<polygon
transform="translate(68.78631,1.069204)"
points="210.00000,280.00000 210.00000,212.00000 279.00000,212.00000 279.00000,280.00000 210.00000,280.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon2106" />
<polygon
transform="translate(68.78631,1.069204)"
points="142.00000,348.00000 142.00000,280.00000 210.00000,280.00000 210.00000,348.00000 142.00000,348.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon2108" />
<polygon
transform="translate(68.78631,1.069204)"
points="142.00000,348.00000 142.00000,416.00000 74.000000,416.00000 74.000000,348.00000 142.00000,348.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon2110" />
<polygon
transform="translate(-0.217039,-68.74130)"
points="347.00000,143.00000 347.00000,75.000000 415.00000,75.000000 415.00000,143.00000 347.00000,143.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon2112" />
<polygon
transform="translate(-4.844750,68.33266)"
points="142.00000,348.00000 142.00000,416.00000 74.000000,416.00000 74.000000,348.00000 142.00000,348.00000 "
style="fill:#fe2600;fill-opacity:1.0000000;stroke:none;stroke-width:0.0000000;stroke-opacity:1.0000000"
id="polygon2114" />
</svg>

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">
<qgisgrassmodule label="Raster buffer" module="r.buffer">
<option key="input"/>
<option key="units"/>
<option key="distances"/>
<option key="output" />
</qgisgrassmodule>

View File

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="250"
x="0"
y="0"
height="250"
id="/hardmnt/janacek0/ssi/blazek/inst/qgis/cvs/plugins/grass/modules/v.overlay.and.2"
sodipodi:version="0.32"
inkscape:version="0.41"
sodipodi:docname="v.buffer.1.svg"
sodipodi:docbase="/home/pinuz/gis/qgis-cvs/qgis/plugins/grass/modules">
<metadata
id="metadata19">
<rdf:RDF
id="RDF21">
<cc:Work
rdf:about=""
id="Work23">
<dc:format
id="format25">image/svg+xml</dc:format>
<dc:type
id="type27"
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs17">
<clipPath
id="clip1">
<rect
width="245"
x="0"
y="0"
height="245"
id="rect8" />
</clipPath>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:window-width="640"
inkscape:window-height="539"
inkscape:cy="134.74347"
inkscape:cx="128.98520"
inkscape:zoom="0.50000000"
inkscape:window-x="26"
inkscape:window-y="58"
inkscape:current-layer="/hardmnt/janacek0/ssi/blazek/inst/qgis/cvs/plugins/grass/modules/v.overlay.and.2" />
<rect
width="250"
x="0"
y="0"
height="250"
style="stroke:rgb(0,0,0);stroke-width:0;fill:rgb(255,255,255);"
id="rect3" />
<path
sodipodi:nodetypes="ccc"
id="path2071"
d="M 51.001798,46.937285 L 124.67106,192.38686 L 200.22928,193.33134"
style="stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000;stroke-linejoin:miter;stroke-linecap:round;stroke-width:1.2500000;stroke:#e10000;fill-rule:evenodd;fill-opacity:0.75000000;fill:none" />
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docbase="/home/pinuz/gis/qgis-cvs/qgis/plugins/grass/modules"
sodipodi:docname="v.buffer.2.svg"
inkscape:version="0.41"
sodipodi:version="0.32"
id="/hardmnt/janacek0/ssi/blazek/inst/qgis/cvs/plugins/grass/modules/v.overlay.and.2"
height="250"
y="0"
x="0"
width="250">
<metadata
id="metadata19">
<rdf:RDF
id="RDF21">
<cc:Work
id="Work23"
rdf:about="">
<dc:format
id="format25">image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
id="type27" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs17">
<clipPath
id="clip1">
<rect
id="rect8"
height="245"
y="0"
x="0"
width="245" />
</clipPath>
</defs>
<sodipodi:namedview
inkscape:current-layer="/hardmnt/janacek0/ssi/blazek/inst/qgis/cvs/plugins/grass/modules/v.overlay.and.2"
inkscape:window-y="58"
inkscape:window-x="26"
inkscape:zoom="0.50000000"
inkscape:cx="128.98520"
inkscape:cy="134.74347"
inkscape:window-height="539"
inkscape:window-width="640"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base" />
<rect
id="rect3"
style="stroke:rgb(0,0,0);stroke-width:0;fill:rgb(255,255,255);"
height="250"
y="0"
x="0"
width="250" />
<path
style="stroke-opacity:1.0000000;stroke-dashoffset:0.0000000;stroke-miterlimit:4.0000000;stroke-linejoin:round;stroke-linecap:round;stroke-width:1.5056434;stroke:#4b4b4b;fill-rule:nonzero;fill-opacity:1.0000000;fill:#2be844"
d="M 53.088940,8.8702443 C 30.657390,8.8702443 12.474208,27.057687 12.474208,49.484976 C 12.474208,56.750985 14.510471,63.493418 17.856884,69.397110 L 17.329909,69.660597 L 86.551866,209.30903 L 87.154122,209.00790 C 92.932197,224.41136 107.64244,235.43194 125.05869,235.43194 C 128.15197,235.43194 131.15903,235.03359 134.05492,234.37799 L 197.10373,233.09819 C 197.37243,233.10344 197.62424,233.17347 197.89420,233.17347 C 198.30737,233.17347 198.68851,233.07281 199.09871,233.06055 L 206.13759,232.90999 L 206.09995,232.34537 C 224.59419,228.54107 238.50893,212.13238 238.50893,192.52110 C 238.50893,171.81141 222.94063,154.89447 202.90046,152.39571 L 202.86282,151.64288 L 149.26191,152.73447 L 91.068798,35.407210 C 85.320560,19.945615 70.546901,8.8702433 53.088940,8.8702443 z "
id="path1296" />
<path
style="stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000;stroke-linejoin:miter;stroke-linecap:round;stroke-width:1.2500000;stroke:#e10000;fill-rule:evenodd;fill-opacity:0.75000000;fill:none"
d="M 51.001798,46.937285 L 124.67106,192.38686 L 200.22928,193.33134"
id="path2071"
sodipodi:nodetypes="ccc" />
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">
<qgisgrassmodule label="Vector buffer" module="v.buffer">
<option key="input" typeoption="type" layeroption="layer" />
<option key="buffer"/>
<option key="output" />
</qgisgrassmodule>