Issue #2250 fix in JUtil if JTS is not in classloader
Change-Id: I6001fd2883fe7961f006d46a2b09e09cbc98d203 Former-commit-id:2340e5ba29
[formerly2340e5ba29
[formerly 3d79c064719714505c346d536b016d66a595bfad]] Former-commit-id:484a575596
Former-commit-id:280204d839
This commit is contained in:
parent
5035305a90
commit
4949811442
1 changed files with 1 additions and 2 deletions
|
@ -31,9 +31,7 @@ from shapely import wkt
|
|||
|
||||
import jep
|
||||
import datetime
|
||||
from com.vividsolutions.jts.io import WKTReader
|
||||
from com.raytheon.uf.common.python import PyJavaUtil
|
||||
from org.apache.commons.lang import ArrayUtils
|
||||
|
||||
#
|
||||
# Provides convenience methods for Java-Python bridging
|
||||
|
@ -141,6 +139,7 @@ def pyValToJavaObj(val):
|
|||
elif issubclass(valtype, JavaWrapperClass):
|
||||
retObj = val.toJavaObj()
|
||||
elif issubclass(valtype, BaseGeometry):
|
||||
from com.vividsolutions.jts.io import WKTReader
|
||||
reader = WKTReader()
|
||||
retObj = reader.read(val.to_wkt())
|
||||
return retObj
|
||||
|
|
Loading…
Add table
Reference in a new issue