Exemplo n.º 1
0
        internal static IEnumerable <AbstractField> CreateSpatialField(SpatialField spatialField, double?lat, double?lng)
        {
            if (lng == null || double.IsNaN(lng.Value))
            {
                return(Enumerable.Empty <AbstractField>());
            }
            if (lat == null || double.IsNaN(lat.Value))
            {
                return(Enumerable.Empty <AbstractField>());
            }

            Shape shape = spatialField.GetContext().MakePoint(lng.Value, lat.Value);

            return(spatialField.CreateIndexableFields(shape));
        }
Exemplo n.º 2
0
 internal static IEnumerable <AbstractField> CreateSpatialField(SpatialField spatialField, object shapeWKT)
 {
     return(spatialField.CreateIndexableFields(shapeWKT));
 }