Hi Ron, If there is a simple way to do this I can't figure it out either.
What you really need is a group-by option on the 2DGridReplacer. If you like I can file this as an enhancement request - I think that since 'group-by' already exists in the BoundingBoxFactory then it is just a case of exposing that functionality within the transformer. However, we're in the middle of testing for FME2005 so even if this is a simple enhancement it's unlikely to happen any time soon. But I can try if you like. Let me know what you think. Regards, Mark Mark Ireland, Product Support Engineer Safe Software Inc. Surrey, BC, CANADA [EMAIL PROTECTED] http://www.safe.com Solutions for Spatial Data Translation, Distribution and Access -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Cook Sent: April 19, 2005 9:49 PM To: [email protected] Cc: [EMAIL PROTECTED] Subject: RE: [fme] Splitting Polygons Hans, I have multiple adjacent polygons. It seems that the 2DGridReplacer looks at the bounding box of all the input polygons instead of each individual polygon and creates grids for the whole extent. I am trying to subdivide each individual input polygon into 12 new polygons (3 rows by 4 columns. As in the screen shot of the results of workbench. This is very much like trying to create a section grid from a township polygon dataset. It must be simple to do I just can't figure it out Ron Cook -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Hans van der Maarel Sent: Monday, April 18, 2005 1:28 PM To: [email protected] Cc: [EMAIL PROTECTED] Subject: Re: [fme] Splitting Polygons Ron, > I have a dataset of polygons in shape file format that need to be > split into smaller polygons comprising of 3 rows of 4 columns. I have > been trying to do this using Workbench with not very much luck. > > > > The outcome that I am trying to achieve looks something like this. > > > > 12 11 10 9 > > 5 6 7 8 > > 4 3 2 1 > > > > Has anyone been able to do this it might also be a great Idea for a > function of factory to split polygons by setting the number of rows > and columns?? > > > > Your thoughts would be appreciated I am running out of hair to pull. If your polygons are irregular in shape, you're going to have a hard time getting it to split up to regular bits. If irregular bits are okay, as long as the total number is there, then there is a way to do it, albeit not a very easy one. Attached is a screenshot of the output. The trick is to place as many points inside the polygon as the number of parts you want to get out of it. The points need to be spaced apart. If you can get them there in a sort of regular way, your result is going to look better. Use a VoronoiDiagrammer to form areas and then a Clipper, with the original polygon as clipping feature, to cut them out. This may not work if you have multiple polygons that are directly adjacent. Hope this helps. -- Hans van der Maarel Red Geographics www.redgeographics.com / [EMAIL PROTECTED] Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team. Visit www.safe.com/services for details. Yahoo! Groups Links Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team. Visit www.safe.com/services for details. Yahoo! Groups Links Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team. Visit www.safe.com/services for details. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
