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++) {
195196197198199200201202203204205
int geomIndex = 0; int geomCount = geometry.GetGeometryCount(); for (geomIndex = 0; geomIndex < geomCount; geomIndex++) { ProcessGeometry(geometry.GetGeometryRef(geomIndex), clipSrc, burnFieldIndex, burnValue, X, Y, Z); } } else {
447448449450451452453454455456457
int geomIndex = 0; int geomCount = srcGeom.GetGeometryCount(); for (geomIndex = 0; geomIndex < geomCount; geomIndex++) { geom.AddGeometry(srcGeom.GetGeometryRef(geomIndex)); } } else { System.err
10301031103210331034103510361037103810391040
int iGeom; int nGeomCount = poSrcGeom.GetGeometryCount(); for( iGeom = 0; iGeom < nGeomCount; iGeom++ ) { poGeom.AddGeometry(poSrcGeom.GetGeometryRef(iGeom) ); } } else { System.err.print("ERROR: Geometry not of polygon type.\n" );