Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] LineString data query problem

Does geomesa automatically coerce the WKT string into a proper geometry?

Emilio Lahr-Vivaz <elahrvivaz@xxxxxxxx> writes:

> Hello,
>
> I don't see anything obviously wrong with your code snippets, it looks
> like it should work. Do you see data in the underlying HBase tables
> after doing your insert? If so, you should check the logs for errors,
> and also try enabling explain logging to see what is actually being
> executed by your query:
>
> https://www.geomesa.org/documentation/user/datastores/query_planning.html#explaining-query-plans
>
> Thanks,
>
> Emilio
>
> On 10/15/2018 07:07 AM, su sheldon wrote:
>> Hi,team.
>>
>> I am using geomesa with HBase to do some testing. In the process I
>> found that I can't use bbox to query data when I use XZ index.
>>
>> This is the code I declare schema:
>>
>> ``
>>
>> attributes.append("taxiId:String,");attributes.append("*geom:LineString:srid=4326");
>> sft = SimpleFeatureTypes./createType/(getTypeName(),
>> attributes.toString());
>>
>> ``
>>
>> This is the code I am storing data for:
>>
>> ``
>>
>> builder.set("taxiId", key); StringBuilder pointStringBuilder =
>> lineById.get(key);builder.set("geom", "LINESTRING (116.36919
>> 39.90568,116.32919,39.91568
>> ,116.33919,39.92568)");builder.featureUserData(Hints./USE_PROVIDED_FID/, Boolean./TRUE/); features.add(builder.buildFeature(key));
>>
>> ``
>>
>> This is the code I am querying for data:
>>
>> ``
>>
>> String bbox = "bbox(geom,115, 35, 120, 45)";queries.add(new
>> Query(getTypeName(), ECQL./toFilter/(bbox)));
>>
>> ``
>>
>> The result obtained after running the query statement is empty. What
>> is wrong with it? Is there any relevant information to check?
>>
>>
>>
>> _______________________________________________
>> geomesa-users mailing list
>> geomesa-users@xxxxxxxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>> https://dev.locationtech.org/mailman/listinfo/geomesa-users
>
> _______________________________________________
> geomesa-users mailing list
> geomesa-users@xxxxxxxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.locationtech.org/mailman/listinfo/geomesa-users


Back to the top