nakijun / fdotoolbox

Automatically exported from code.google.com/p/fdotoolbox
0 stars 0 forks source link

Bulk Copy: Better handling of spatial contexts when creating geometry properties on-the-fly #338

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If creating a geometry property on-the-fly via the bulk copy. Use the following 
rules to determine what spatial context to use:

 * If the target supports multiple spatial contexts and there is no spatial contexts of the specified (source) name. Create a copy of the source spatial context.
 * If the target supports multiple spatial contexts and there is a spatial context of the same name, using the same WKT. Do nothing
 * If the target supports multiple spatial contexts and there is a spatial context of the same name, but using a different WKT. Create a new spatial context using the source WKT, but use a different name.
 * If the target only supports one spatial context and there is no spatial context already. Create a copy of the source spatial context.
 * If the target only supports one spatial context and there is a spatial context of the same WKT. Change the association to match the name of this spatial context.
 * If the target only supports one spatial context and there is a spatial context not using the source WKT. Change the association to match the name of this spatial context. This may not be ideal, but there is no other option at this point.

Apply these rules for each copied geometry property that will be created.

Original issue reported on code.google.com by jumpinja...@gmail.com on 14 Dec 2010 at 7:44

GoogleCodeExporter commented 9 years ago
Fixed in r1218

Original comment by jumpinja...@gmail.com on 14 Dec 2010 at 11:01