26.04.2014, 19:00
Small update in zone editor - plain text export format removed.
Added customizable template - now user defines, how result should look like.
Example (exporting to something like SQL query):
(I pressed Enter in the end, and added line break. Now all templates will have their own line in result)
Result:
Now only have to add few lines, and query is done:
All available variables (such as <(Name)>, <(ColorHex)>...) are listed in export menu.
Hope this thing will help anyone a bit.
Added customizable template - now user defines, how result should look like.
Example (exporting to something like SQL query):
PHP Code:
('<(MinX)>', '<(MaxX)>', '<(MinY)>', '<(MaxY)>', '<(ColorHex)>'),
Result:
PHP Code:
('-1291.01', '-791.01', '1960.32', '2460.32', 'ffffff'),
('-830.69', '-330.69', '1050.26', '1550.26', 'ffffff'),
('-2407.41', '-1907.41', '1246.03', '1746.03', 'ffffff'),
('555.56', '1055.56', '1785.71', '2285.71', 'ffffff'),
PHP Code:
INSERT INTO `my_table` (`min_x`, `max_x`, `min_y`, `max_y`, `color`) VALUES
('-1291.01', '-791.01', '1960.32', '2460.32', 'ffffff'),
('-830.69', '-330.69', '1050.26', '1550.26', 'ffffff'),
('-2407.41', '-1907.41', '1246.03', '1746.03', 'ffffff'),
('555.56', '1055.56', '1785.71', '2285.71', 'ffffff');
Hope this thing will help anyone a bit.