174175176177178179180181182183184
srcLayer.ResetReading(); while ((feature = srcLayer.GetNextFeature()) != null) { Geometry geometry = feature.GetGeometryRef(); if (geometry != null) { int geomtype = geometry.GetGeometryType() & (~ogrConstants.wkb25DBit);
425426427428429430431432433434435
lyr.SetAttributeFilter(srcWhere); } while ((feat = lyr.GetNextFeature()) != null) { Geometry srcGeom = feat.GetGeometryRef(); if (srcGeom != null) { int srcType = srcGeom.GetGeometryType() & (~ogrConstants.wkb25DBit);
10131014101510161017101810191020102110221023
if (pszWhere != null) poLyr.SetAttributeFilter(pszWhere); while ((poFeat = poLyr.GetNextFeature()) != null) { Geometry poSrcGeom = poFeat.GetGeometryRef(); if (poSrcGeom != null) { int eType = wkbFlatten(poSrcGeom.GetGeometryType()); if (poGeom == null)
15761577157815791580158115821583158415851586
} if( bPreserveFID ) poDstFeature.SetFID( poFeature.GetFID() ); Geometry poDstGeometry = poDstFeature.GetGeometryRef(); if (poDstGeometry != null) { if (nParts > 0) { /* For -explodecollections, extract the iPart(th) of the geometry */
7677787980818283848586
{ if ((i % 100000) == 0) System.out.println(i); Feature feat = new Feature(featureDefn); feat.SetGeometryDirectly(new Geometry(ogr.wkbMultiPoint)); feat.SetGeometry(null); feat.GetGeometryRef(); } // Add features for (int i = 0; i < 1000000; i++) {