I have this portion on code
The string wPolygon, breaks and won't hold the complete data. Its not much, after some point, the program adds '.....'. This is a sample
{ "name":"23_2", "geo_json":{ "type":"Feature", "properties":{ }, "geometry":{ "type":"Polygon", "coordinates":[ [ [-70.42743902653456,18.23881539301068],[-70.427609346807,18.239439200051894],[-70.4279875382781,18.239479640757814],[-70.42837444692852,18.239554790391086],[-70.42862690985203,18.239528679081516],[-70.42887233197689,18.23931915160175],[-70.42907517403364,18.23909784190743],[-70.42923543602228,18.23896027948065],[-70.42926158756018,18.23887589506777],[-70.4291033372283,18.23878705256617],[-70.42882639914751,18.238717952811335],[-70.42848777025938,18.238745656402976],[-70.42818769812584,18.238780683926322],[-70.4278963431716,18.238799471413223],[-70.42743902653456,18.23881539301......
I'd like to know if there's a limitation or something. I've read that a string can hold much than that.
B4X:
Private res As String, wPolygon As String, wComi As String = Chr(34)
Private Detalle As Cursor
Private GetAddressJob As HttpJob
Private wError As String, wPrimero As String
wPolygon = "{ " & wComi & "name" & wComi & ":" & wComi & ConfigRECORD.VENDEDORCODIGO & "_" & CURRENT_MAPA & wComi & ", " & wComi & "geo_json" & wComi & ":{ " & wComi & "type" & wComi & ":" & wComi & "Feature" & wComi & ", " & wComi & "properties" & wComi & ":{ }, " & wComi & "geometry" & wComi & ":{ " & wComi & "type" & wComi & ":" & wComi & "Polygon" & wComi & ", " & wComi & "coordinates" & wComi & ":[ [ "
f.OpenDatabasemapas
Detalle = BaseDatosMapas.ExecQuery("SELECT * FROM mapdet where id = " & CURRENT_MAPA & " Order by sec")
If Detalle.RowCount > 0 Then
For i=0 To Detalle.RowCount-1
Detalle.Position = i
If i = 0 Then
wPrimero = "[" & f.Nulo(Detalle.GetString("LONG")) & "," & f.Nulo(Detalle.GetString("LAT")) & "]"
End If
wPolygon = wPolygon & "[" & f.Nulo(Detalle.GetString("LONG")) & "," & f.Nulo(Detalle.GetString("LAT")) & "],"
Next
wPolygon = wPolygon & wPrimero & " ] ] } } }"
End If
The string wPolygon, breaks and won't hold the complete data. Its not much, after some point, the program adds '.....'. This is a sample
{ "name":"23_2", "geo_json":{ "type":"Feature", "properties":{ }, "geometry":{ "type":"Polygon", "coordinates":[ [ [-70.42743902653456,18.23881539301068],[-70.427609346807,18.239439200051894],[-70.4279875382781,18.239479640757814],[-70.42837444692852,18.239554790391086],[-70.42862690985203,18.239528679081516],[-70.42887233197689,18.23931915160175],[-70.42907517403364,18.23909784190743],[-70.42923543602228,18.23896027948065],[-70.42926158756018,18.23887589506777],[-70.4291033372283,18.23878705256617],[-70.42882639914751,18.238717952811335],[-70.42848777025938,18.238745656402976],[-70.42818769812584,18.238780683926322],[-70.4278963431716,18.238799471413223],[-70.42743902653456,18.23881539301......
I'd like to know if there's a limitation or something. I've read that a string can hold much than that.