Skip to main content

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

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?

 

 

 


Back to the top