WMS Openlayers filter for date Unicorn Meta Zoo #1: Why another podcast? ...

Is a self contained air-bullet cartridge feasible?

Is it OK if I do not take the receipt in Germany?

Raising a bilingual kid. When should we introduce the majority language?

Where/What are Arya's scars from?

Did war bonds have better investment alternatives during WWII?

What is the definining line between a helicopter and a drone a person can ride in?

Married in secret, can marital status in passport be changed at a later date?

What is a 'Key' in computer science?

RIP Packet Format

Does a Draconic Bloodline sorcerer's doubled proficiency bonus for Charisma checks against dragons apply to all dragon types or only the chosen one?

Suing a Police Officer Instead of the Police Department

When speaking, how do you change your mind mid-sentence?

Getting AggregateResult variables from Execute Anonymous Window

Where can I find how to tex symbols for different fonts?

Israeli soda type drink

What's called a person who works as someone who puts products on shelves in stores?

What is the numbering system used for the DSN dishes?

What's the difference between using dependency injection with a container and using a service locator?

Like totally amazing interchangeable sister outfit accessory swapping or whatever

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

Is there a verb for listening stealthily?

Could a cockatrice have parasitic embryos?

How do I deal with an erroneously large refund?

How did Elite on the NES work?



WMS Openlayers filter for date



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraQuery WMS for available layers using OpenlayersCQL Filter on WMSSharpMap WMS - How to add labels to a map containing a VectorLayerZooming to WMS layer after CQL filter in OpenLayers?OpenLayers 3 for consuming an INSPIRE WMSOpenlayers 3 connecting to a wms feed with a different projectionMultiband WMS request returns incorrect image depending on bbox, width, height paramsGeoserver WMS image points drift to inaccurate position as I zoom outopenlayers - filter mapserver WMS with runtime substitutionBounding box coordinates and strange WMS behavior





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I need to filter the WMS layer included in my map for a date field. Basically I only want to show what has happened after a certain date:



I tried the following, but no luck



createMap = () => {

addCommonProjections();
const vectorSource = new VectorSource();


const vectorLayer = new VectorLayer({
source: vectorSource
});


const baseLayer = new TileLayer({
source: new OSM()
});

this.wms_source = new ImageWMS({
url: environment.live_lightning_data,
projection: 'EPSG:4326',
styles: 'default',
params: {
layers: '0'
},
});

const lightning_layer = new ImageLayer({});
this.map = new Map({
layers: [baseLayer, lightning_layer],
target: document.getElementById('lightning'),
view: new View({
center: fromLonLat([175.79, -37.79]),
zoom: 7,
projection: 'EPSG:3857'
})
});

lightning_layer.filter.greaterThan('data_date_time', '2019/03/02');
lightning_layer.setSource(this.wms_source);


I know, a little chaotic, but the map map itself displays the data correctly, but it is unhappy with however I try to add the filer.



The way I added it now,results in '... is not a function'



Anyone any suggestions?










share|improve this question





























    0















    I need to filter the WMS layer included in my map for a date field. Basically I only want to show what has happened after a certain date:



    I tried the following, but no luck



    createMap = () => {

    addCommonProjections();
    const vectorSource = new VectorSource();


    const vectorLayer = new VectorLayer({
    source: vectorSource
    });


    const baseLayer = new TileLayer({
    source: new OSM()
    });

    this.wms_source = new ImageWMS({
    url: environment.live_lightning_data,
    projection: 'EPSG:4326',
    styles: 'default',
    params: {
    layers: '0'
    },
    });

    const lightning_layer = new ImageLayer({});
    this.map = new Map({
    layers: [baseLayer, lightning_layer],
    target: document.getElementById('lightning'),
    view: new View({
    center: fromLonLat([175.79, -37.79]),
    zoom: 7,
    projection: 'EPSG:3857'
    })
    });

    lightning_layer.filter.greaterThan('data_date_time', '2019/03/02');
    lightning_layer.setSource(this.wms_source);


    I know, a little chaotic, but the map map itself displays the data correctly, but it is unhappy with however I try to add the filer.



    The way I added it now,results in '... is not a function'



    Anyone any suggestions?










    share|improve this question

























      0












      0








      0








      I need to filter the WMS layer included in my map for a date field. Basically I only want to show what has happened after a certain date:



      I tried the following, but no luck



      createMap = () => {

      addCommonProjections();
      const vectorSource = new VectorSource();


      const vectorLayer = new VectorLayer({
      source: vectorSource
      });


      const baseLayer = new TileLayer({
      source: new OSM()
      });

      this.wms_source = new ImageWMS({
      url: environment.live_lightning_data,
      projection: 'EPSG:4326',
      styles: 'default',
      params: {
      layers: '0'
      },
      });

      const lightning_layer = new ImageLayer({});
      this.map = new Map({
      layers: [baseLayer, lightning_layer],
      target: document.getElementById('lightning'),
      view: new View({
      center: fromLonLat([175.79, -37.79]),
      zoom: 7,
      projection: 'EPSG:3857'
      })
      });

      lightning_layer.filter.greaterThan('data_date_time', '2019/03/02');
      lightning_layer.setSource(this.wms_source);


      I know, a little chaotic, but the map map itself displays the data correctly, but it is unhappy with however I try to add the filer.



      The way I added it now,results in '... is not a function'



      Anyone any suggestions?










      share|improve this question














      I need to filter the WMS layer included in my map for a date field. Basically I only want to show what has happened after a certain date:



      I tried the following, but no luck



      createMap = () => {

      addCommonProjections();
      const vectorSource = new VectorSource();


      const vectorLayer = new VectorLayer({
      source: vectorSource
      });


      const baseLayer = new TileLayer({
      source: new OSM()
      });

      this.wms_source = new ImageWMS({
      url: environment.live_lightning_data,
      projection: 'EPSG:4326',
      styles: 'default',
      params: {
      layers: '0'
      },
      });

      const lightning_layer = new ImageLayer({});
      this.map = new Map({
      layers: [baseLayer, lightning_layer],
      target: document.getElementById('lightning'),
      view: new View({
      center: fromLonLat([175.79, -37.79]),
      zoom: 7,
      projection: 'EPSG:3857'
      })
      });

      lightning_layer.filter.greaterThan('data_date_time', '2019/03/02');
      lightning_layer.setSource(this.wms_source);


      I know, a little chaotic, but the map map itself displays the data correctly, but it is unhappy with however I try to add the filer.



      The way I added it now,results in '... is not a function'



      Anyone any suggestions?







      wms






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 33 mins ago









      UweUwe

      65




      65






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f320657%2fwms-openlayers-filter-for-date%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f320657%2fwms-openlayers-filter-for-date%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

          Meter-Bus Содержание Параметры шины | Стандартизация |...