Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use this tag when asking questions related to where features overlap.
4
votes
2
answers
3k
views
GDAL/OGR ogr.Layer.Intersection fails when producing mixed geometry results
feat1.SetGeometry(geom1)
geom2 = ogr.CreateGeometryFromWkt(line2)
feat2 = ogr.Feature(layer2.GetLayerDefn())
feat2.SetGeometry(geom2)
layer1.CreateFeature(feat1)
layer2.CreateFeature(feat2)
layer1.Intersection … I do not want the non-matching geometries, and believe the Intersection method should have an option to drop them if the layer has been specified as a particular type. …