Is com.vividsolutions.jts.geom.Geometry directly transportable using requestfactory?

StackOverflow https://stackoverflow.com/questions/17403509

  •  02-06-2022
  •  | 
  •  

سؤال

Is com.vividsolutions.jts.geom.Geometry directly transportable using requestfactory or do i have to use a value proxy with my entityproxy?

هل كانت مفيدة؟

المحلول

Per http://www.gwtproject.org/doc/latest/DevGuideRequestFactory.html#transportable, you'd have to use a ValueProxy.

But it doesn't seem possible to roundtrip the geometry as there are less setters than getters (i.e. the geometry cannot be re-constructed from an empty object just by calling setters); so you'd probably have to transport the textual representation of the geometry instead or use wrappers/builders.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top