I have 668 linked jpeg2000 images. I need to modify the CenterLat and FalseNorthing and Name values for each 668 corresponding [mfd_meta] tables. Issue : the linked jpeg2000 images have a CoordSystem definition Manifold does not cope with due to a CenterLat = 90 value. In order to get the right CoordSystem the values of the CenterLat and FalseNorthing need to be changed imperatively. In order to avoid confusion I also modify the value of "Name". The one thing that changes (668 times) is the corresponding source linkname Source linknames are e.g. [OMWRGB24VL_K291n] , [OMWRGB24VL_K291z] or [OMWRGB24VL_K308n] ... I have already this sql code written for 1 source (it is working well) > [OMWRGB24VL_K291n]::[mfd_meta]. -- SQL code UPDATE [OMWRGB24VL_K291n]::[mfd_meta] SET value = stringReplace(value,'"CenterLat": 90,','"CenterLat": 50.79936,') WHERE PROPERTY = 'FieldCoordSystem.BGR' UPDATE [OMWRGB24VL_K291n]::[mfd_meta] SET value = stringReplace(value,'"FalseNorthing": 5400088.438,','"FalseNorthing": 165372.956,') WHERE PROPERTY = 'FieldCoordSystem.BGR' UPDATE [OMWRGB24VL_K291n]::[mfd_meta] SET value = stringReplace(value,'"Name": "Belge 1972 \/ Belgian Lambert 72 (EPSG:31370)"', '"Name": "Belge 1972 \/ Belgian Lambert 72 ALTERNATE (EPSG:31370)",') WHERE PROPERTY = 'FieldCoordSystem.BGR' -- end code I need to do this 668 times, and would like to avoid doing so manually. What is the best flexible approach ? Each linked jpeg2000 image is approx. 264 MB. a) merge all jpeg2000 images to 1 image, then consequently apply the changes needed . How can I merge all linked jpeg2000 images ? b) keep the 668 jpeg2000 images separate and modify each corresponding [mfd_meta] table separately, by sql or script ? Any ideas or coding is welcome !
|