I'm processing features from an ArcGIS rest service and failing to convert
the date data which arrives as a long in the json response (its epoch
milliseconds since 1-1-1970 in GMT)

Stepping though the debugger I can see it going into the
org.geotools.util.TemporalConverterFactory (and some other factories as
well) however this fails to provide a converter from Long, I could add my
own converterfacty to handle this or provide a PR to handle this, basically
that would do something like:

if(source instanceof Long && target instanceof Date)(
return new Converter() {
public Object convert(Object source, Class target) throws Exception {
return new java.util.Date(source.longValue());
}
};
)

Should I file an issue + PR?

thanx, Mark



-- 
Disclaimer;
This message is just a reflection of what I thought at the time of sending.
The message may contain information that is not intended for you or that
you don't understand.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to