B4A Library Spatialite

PABLO2013

Well-Known Member
Licensed User
Longtime User
I think the error occurred when moving from version 3.8 to 3.82 B4A, not know really, but now it works ...tks
 

warwound

Expert
Licensed User
Longtime User
@PABLO2013

Remember that i sent you a version of the JTS library a few months back?
I bet you still had that version - i've updated the library since i first sent you a copy.
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
my sincere thanks for it, yes now work fine...
I'm trying to compare polygons with polygons, polygons with lines, etc ....
but I see that GeometryFactory1.CreatePoint create point ... as I can do to create a polygon or a line or multiline ... tks
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
I'm trying to compare polygons with polygons, polygons with lines, etc ....
but I see that GeometryFactory1.CreatePoint create point ... as I can do to create a polygon or a line or multiline ... tks
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
tks martin
GeometryFactory1 create poligon , line , multiline... and if it is not much hassle , some help for used it
tks
 

vfafou

Well-Known Member
Licensed User
Longtime User
Hi!
I'm very new to Geospatial data. I have read many docs about SpatiaLite but I've not found any way to insert polygons from a file with simple X;Y coordinate points.
Is there any way or any suggestion to do this?
Thank you in advance!
 

vfafou

Well-Known Member
Licensed User
Longtime User
It's OK! I formatted the data with the help of Excel and got the work done!
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
tks martin
GeometryFactory1 create poligon , line , multiline... and if it is not much hassle , some help for used it
tks
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
tks martin
GeometryFactory1 create poligon , line , multiline... and if it is not much hassle , some help for used it
tks
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
tks martin
I need JTS , GeometryFactory1 create poligon , line , multiline... and if it is not much hassle , some help for used it.
Or say me how i make it
tks
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
greetings martin, i was watching your library JTS , a while back I ask to help me with other classes ... I know you're busy ... the original library has with many classes ... as could make for efficient transfer of all the library to operate in B4A,...... see that you use: AbsObjectWrapper, this will be the only way or is there another more efficient for both the jar to the xml in this particular case , could you tell me , thanks.
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
greetings martin, i was watching your library JTS , a while back I ask to help me with other classes ... I know you're busy ... the original library has with many classes ... as could make for efficient transfer of all the library to operate in B4A,...... see that you use: AbsObjectWrapper, this will be the only way or is there another more efficient for both the jar to the xml in this particular case , could you tell me , thanks.
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
greetings martin

Apology , you could implement LinesString creating geometryfactory , thanks
 

mkvidyashankar

Active Member
Licensed User
Longtime User
hi

I have spatialite database having data of road network, I want to display graphically(Like map) the nearest road polyline withrespect to GPS coordinates. I am searching for the method, I didnot find any, Please help
 

mkvidyashankar

Active Member
Licensed User
Longtime User
how to update a field( that is string) in spatilite database?
 
Last edited:

gvoulg

Member
Licensed User
Longtime User
Hi Martin
Is it possible to use spatialite library with b4j?
Tried and get this error log in b4j project

Waiting for debugger to connect...
Program started.
https://www.google.com/maps/place/ΠΕΙΣΙΣΤΡΑΤΟΥ+38+ΠΑΛΛΗΝΗ
Unable to load sqlite_jni: java.lang.UnsatisfiedLinkError: no jsqlite in java.library.path
java.lang.UnsatisfiedLinkError: jsqlite.Database.internal_init()V
at jsqlite.Database.internal_init(Native Method)
at jsqlite.Database.<clinit>(Database.java:1025)
at uk.co.martinpearman.b4a.spatialite.Database.Initialize(Database.java:76)
at b4j.wmsKthmatologio.main._initialize(main.java:318)
at b4j.wmsKthmatologio.main._appstart(main.java:279)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:612)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:229)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:90)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.wmsKthmatologio.main.start(main.java:38)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$149(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: jsqlite.Database.internal_init()V
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:90)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.wmsKthmatologio.main.start(main.java:38)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$149(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.UnsatisfiedLinkError: jsqlite.Database.internal_init()V
at jsqlite.Database.internal_init(Native Method)
at jsqlite.Database.<clinit>(Database.java:1025)
at uk.co.martinpearman.b4a.spatialite.Database.Initialize(Database.java:76)
at b4j.wmsKthmatologio.main._initialize(main.java:318)
at b4j.wmsKthmatologio.main._appstart(main.java:279)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:612)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:229)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
... 12 more

Regards
George
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…