generateParams($_REQUEST['value'])); } $srid = isset($gis_data['srid']) ? htmlspecialchars($gis_data['srid']) : ''; $wkt = $gis_obj->generateWkt($gis_data, 0); $format = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER <= 8) ? 'svg' : 'png'; $visualizationSettings = array('width' => 400, 'height' => 400,); $data = array($wkt); if (! $no_visual) { $visualization = PMA_GIS_visualization_results($data, $visualizationSettings, $format); } $result = "'" . $wkt . "'"; if ($srid != '') { $result .= ',' . $srid; } if(isset($_REQUEST['generate']) && $_REQUEST['generate'] == true) { $extra_data = array( 'result' => $result, 'visualization' => $visualization, ); PMA_ajaxResponse(null, true, $extra_data); } if(isset($_REQUEST['get_gis_editor']) && $_REQUEST['get_gis_editor'] == true) { ob_start(); } else { ?>

'); echo(''); echo(''); echo PMA_generate_common_hidden_inputs(); ?>
" />
'); } for ($a = 0; $a < $geom_count; $a++) { if ($geom_type == 'GEOMETRYCOLLECTION') { echo('

'); echo __("Geometry"); echo($a + 1 . ':
'); if (isset($gis_data[$a]['gis_type'])) { $type = $gis_data[$a]['gis_type']; } else { $type = $gis_types[0]; } echo(''); echo(''); } else { $type = $geom_type; } if ($type == 'POINT') { echo('
'); echo __("Point"); ?> '); for ($i = 0; $i < $no_of_points; $i++) { echo('
'); echo __("Point"); echo($i + 1 . ':'); ?> "> '); for ($i = 0; $i < $no_of_lines; $i++) { echo('
'); if ($type == 'MULTILINESTRING') { echo __("Linestring"); echo($i + 1 . ':'); } else { if ($i == 0) { echo __("Outer Ring:"); } else { echo __("Inner Ring"); echo($i . ':'); } } $no_of_points = isset($gis_data[$a][$type][$i]['no_of_points']) ? $gis_data[$a][$type][$i]['no_of_points'] : 2; if ($type == 'MULTILINESTRING' && $no_of_points < 2) { $no_of_points = 2; } if ($type == 'POLYGON' && $no_of_points < 4) { $no_of_points = 4; } if (isset($gis_data[$a][$type][$i]['add_point'])) { $no_of_points++; } echo(''); for ($j = 0; $j < $no_of_points; $j++) { echo('
'); echo __("Point"); echo($j + 1 . ':'); ?> ">
'); for ($k = 0; $k < $no_of_polygons; $k++) { echo('
'); echo __("Polygon"); echo($k + 1 . ':'); $no_of_lines = isset($gis_data[$a][$type][$k]['no_of_lines']) ? $gis_data[$a][$type][$k]['no_of_lines'] : 1; if ($no_of_lines < 1) { $no_of_lines = 1; } if (isset($gis_data[$a][$type][$k]['add_line'])) { $no_of_lines++; } echo(''); for ($i = 0; $i < $no_of_lines; $i++) { echo('

'); if ($i == 0) { echo __("Outer Ring:"); } else { echo __("Inner Ring"); echo($i . ':'); } $no_of_points = isset($gis_data[$a][$type][$k][$i]['no_of_points']) ? $gis_data[$a][$type][$k][$i]['no_of_points'] : 4; if ($no_of_points < 4) { $no_of_points = 4; } if (isset($gis_data[$a][$type][$k][$i]['add_point'])) { $no_of_points++; } echo(''); for ($j = 0; $j < $no_of_points; $j++) { echo('
'); echo __("Point"); echo($j + 1 . ':'); ?> " value="" /> " value="" /> " class="add" value="">
" class= "add" value="">

" class= "add" value="">

" />