initial commit

This commit is contained in:
2026-06-13 13:18:32 +07:00
commit 5d20c793eb
59 changed files with 6179 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
include 'koneksi.php';
header('Content-Type: application/json; charset=utf-8');
$result = $conn->query("SELECT * FROM tanah");
$data = [];
while($row = $result->fetch_assoc()){
// log a short preview of geom for debugging
@file_put_contents('/tmp/webgis_debug.log', date('c') . " get_tanah id=".$row['id']." geom_preview=".substr($row['geom'],0,400)."\n", FILE_APPEND);
$data[] = $row;
}
echo json_encode($data);
?>