from Find Features Within a Distance sample. i want draw circle/Rectangle... and get data in circle/Rectangle... same
Execute a Spatial Query ?? Please i want use present demo receive project gisMap
thank you
from Find Features Within a Distance sample. i want draw circle/Rectangle... and get data in circle/Rectangle... same
Execute a Spatial Query ?? Please i want use present demo receive project gisMap
thank you
Hi Dacha,
I think this is what you want, please replace the attached file with your sample file.
Regards,
Edgar
FindFeaturesWithinDistance.aspx.txt (5.04 KB)
hi
i copy attached file to sample file have error
remark error :
double yInDegree = DecimalDegreesHelper.GetLatitudeDifferenceFromDistance(distance, DistanceUnit.Kilometer);
message Error : No overload for method 'GetLatitudeDifferenceFromDistance' takes 2 arguments
Regards,
dacha
Please use the latest version of MapSuiteCore or change it to double yInDegree = DecimalDegreesHelper.GetLatitudeDifferenceFromDistance(distance, DistanceUnit.Kilometer, pointShape.Y);
thank you.
and get data in area show same ExecuteASqlQuery ?? (show data in area on gridview)
Sorry I don’t understand “and get data in area show same ExecuteASqlQuery”, do you mean you want to get the area of a feature? if so, you can use the following code:
foreach (var item in selectedFeatureLayer.InternalFeatures)
{
AreaBaseShape shape = item.GetShape() as AreaBaseShape;
shape.GetArea(yourMapUnit, AreaUnit.SquareMeters);
}
Hope it helps,
Edgar
i want show data from select in
Collection<Feature> selectedFeatures = worldLayer.QueryTools.GetFeaturesWithin(rect, ReturningColumnsType.NoColumns); (support sharpfile) and gridview support view datatable from query
thankyou
dacha
You can refer to the Samples->QueryingFeatureLayers->GetAllFeatures, this sample shows how to bind features to a grid view.
Regards,
Edgar