(isRawSqlMode: boolean)
| 70 | * Gets helper text for the current mode |
| 71 | */ |
| 72 | export function getGeometryHelperText(isRawSqlMode: boolean): string { |
| 73 | if (isRawSqlMode) { |
| 74 | return "Inserisci una funzione SQL completa (es: ST_GeomFromText('POINT(30 40)', 4326))"; |
| 75 | } |
| 76 | return "Inserisci formato WKT (es: POINT(30 40))"; |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Validates if a string looks like valid WKT format |