Exemplo n.º 1
0
        public override void SetConfig(Config config)
        {
            m_strategy       = SpatialDocMaker.GetSpatialStrategy(config.RoundNumber);
            m_shapeConverter = SpatialDocMaker.MakeShapeConverter(m_strategy, config, "query.spatial.");

            m_distErrPct = config.Get("query.spatial.distErrPct", double.NaN);
            m_operation  = SpatialOperation.Get(config.Get("query.spatial.predicate", "Intersects"));
            m_score      = config.Get("query.spatial.score", false);

            base.SetConfig(config);//call last, will call prepareQueries()
        }
Exemplo n.º 2
0
 public override void SetConfig(Config config, ContentSource source)
 {
     base.SetConfig(config, source);
     if (!spatialStrategyCache.TryGetValue(config.RoundNumber, out SpatialStrategy existing) || existing == null)
     {
         //new round; we need to re-initialize
         strategy = MakeSpatialStrategy(config);
         spatialStrategyCache[config.RoundNumber] = strategy;
         //TODO remove previous round config?
         shapeConverter = MakeShapeConverter(strategy, config, "doc.spatial.");
         Console.WriteLine("Spatial Strategy: " + strategy);
     }
 }
		public Spatial4nWriter(IShapeConverter shapeConverter)
		{
			_shapeConverter = shapeConverter;
			_wktWriter = new WktWriter(shapeConverter);
		}
Exemplo n.º 4
0
 public WktReader(IShapeConverter shapeConverter)
 {
     _shapeConverter = shapeConverter;
 }
 public GeoJsonReader(IShapeConverter shapeConverter)
 {
     _shapeConverter = shapeConverter;
 }
		public WktReader(IShapeConverter shapeConverter)
		{
			_shapeConverter = shapeConverter;
		}
 public Spatial4nWriter(IShapeConverter shapeConverter)
 {
     _shapeConverter = shapeConverter;
     _wktWriter      = new WktWriter(shapeConverter);
 }
Exemplo n.º 8
0
 public WktWriter(IShapeConverter shapeConverter)
 {
     _shapeConverter = shapeConverter;
     _settings       = new WktWriterSettings();
 }
 public GeoJsonReader(IShapeConverter shapeConverter) : base(shapeConverter)
 {
 }
		public Spatial4nReader(IShapeConverter shapeConverter)
		{
			_shapeConverter = shapeConverter;
			_wktReader = new WktReader(shapeConverter);
		}
		public GeoJsonWriter(IShapeConverter shapeConverter) : base(shapeConverter)
		{
			_shapeConverter = shapeConverter;
		}
 public GeoJsonWriter(IShapeConverter shapeConverter)
 {
     _shapeConverter = shapeConverter;
 }
Exemplo n.º 13
0
		public WktWriter(IShapeConverter shapeConverter)
		{
			_shapeConverter = shapeConverter;
			_settings = new WktWriterSettings();
		}
 public GeoJsonReader(IShapeConverter shapeConverter)
 {
     _shapeConverter = shapeConverter;
 }
 public Spatial4nReader(IShapeConverter shapeConverter)
 {
     _shapeConverter = shapeConverter;
     _wktReader      = new WktReader(shapeConverter);
 }
		public GeoJsonReader(IShapeConverter shapeConverter) : base(shapeConverter)
		{
		}