AGSGeometryEngine *engine=[AGSGeometryEngine defaultGeometryEngine]; AGSMutablePolyline *line=[[AGSMutablePolyline alloc]init]; // path 1 [line addPathToPolyline]; // point 1 [line addPointToPath:[AGSPoint pointWithX:0 y:0 spatialReference:nil]]; // point 2 [line addPointToPath:[AGSPoint pointWithX:100 y:100 spatialReference:nil]]; // path 2 [line addPathToPolyline]; // point 3 [line addPointToPath:[AGSPoint pointWithX:0 y:100 spatialReference:nil]]; // point 4 [line addPointToPath:[AGSPoint pointWithX:100 y:0 spatialReference:nil]]; AGSMutablePolyline *x=(AGSMutablePolyline*)[engine simplifyGeometry:line];
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.