[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [geomesa-users] Questions regarding ingestion in geomesa
|
Hi Vaibhav,
In general, GeoMesa allows you to leave most attributes blank (however you must always include the default geometry). I don't think that the exception you're getting is coming from GeoMesa - I did a quick search for that message and don't see it anywhere. Can you provide more of a stack trace, or the code you're using?
One thing that might be affecting you is how you create the simple feature type. In order to use hints like 'index=full', you need to use one of the GeoMesa simple feature type helpers - either SimpleFeatureTypes.createType, the SftBuilder or a typesafe config file. If not, then the index hints you are setting will probably get dropped. In addition, simple feature types have 'nullable' hints on each attribute descriptor. In GeoMesa, we allow anything to be null (except the primary geometry), so we ignore those settings. However, if you're using GeoTools classes it may be trying to validate your attribute values at some point.
Thanks,
Emilio
On Fri, 2016-04-01 at 17:40 +0530, vaibhav.thapliyal wrote:
Dear all,
I have a few questions regarding ingestion using the java API:
I have created an attributes list as follows:
attributeList = Lists.newArrayList("id:String",
"code:String:index=full",
"name:String",
"address:String",
"location:Point:srid=4326",
"pincode:String",
"email:String",
"url:String",
"dt_stamp:Date",
);
But in my data, there are records that do not have values for email
field and url. Hence I don't set url and email value using the
simpleFeature.setAttribute() function. When I try and insert this
feature in geomesa, I get the following error:
Could not create ExampleFeature out of provided feature
Is there a way to do this kind of ingestion where values of some
attributes of a feature might be null?
Thanks
Vaibhav
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.locationtech.org/mailman/listinfo/geomesa-users