Code Monkey home page Code Monkey logo

Comments (5)

giswqs avatar giswqs commented on June 2, 2024 2

You can also add it to https://qms.nextgis.com, and then use xyzservices.TileProvider.from_qms("service_name") to load tiles. #63

from xyzservices.

giswqs avatar giswqs commented on June 2, 2024

See https://xyzservices.readthedocs.io/en/latest/contributing.html#providers

from xyzservices.

martinfleis avatar martinfleis commented on June 2, 2024

@ahuang11 If you can get XYZ URL for NowCoast services, the best option is to follow contributing guide linked by @giswqs and add the metadata to xyzservices-providers.JSON. That way it is easier to find than having it only remotely on QMS (you need to know it is there).

That said, having it in both is the optimal solution for a wider community.

from xyzservices.

ahuang11 avatar ahuang11 commented on June 2, 2024

Before I find a programmatic way to fill out the json with all the services, does this look right? (from https://new.nowcoast.noaa.gov/help/#!section=rest-layer-ids)
image

I am not sure what {s} stands for in the example, and whether {xmin},{ymin}, etc are accepted (since the example only shows {X},{Y},{Z}.
image

Example full URL https://new.nowcoast.noaa.gov/arcgis/rest/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/export?transparent=true&format=png8&layers=show:3&bbox=-15578640.92640406,2182661.2789739748,-6557848.596303097,7299661.700495453&bboxSR=3857&imageSR=3857&size=922,523&f=image

{
  "analysis_meteohydro_sfc_qpe_time": {
      "1_hr_quantitative_precipitation_accumulation": {
            "url": "https://new.nowcoast.noaa.gov/arcgis/rest/services/nowcoast/analysis_meteohydro_sfc_qpe_time/MapServer/export?transparent=true&format=png8&layers=show:3&bbox={xmin},{ymin},{xmax},{ymax}&bboxSR=3857&imageSR=3857&size=256,256&f=image",
            "max_zoom": 19,
            "attribution": "(C) nowCOAST™",
            "html_attribution": "&copy; <a href=\"https://new.nowcoast.noaa.gov/help/#!section=abstract\">OpenStreetMap</a> contributors",
            "name": "NOAA Quantitative Precipitation Estimates (Time Enabled) 1-Hr Quantitative Precipitation Accumulation (inches)"
      },
      "3_hr_quantitative_precipitation_accumulation": {
            "url": "https://new.nowcoast.noaa.gov/arcgis/rest/services/nowcoast/analysis_meteohydro_sfc_qpe_time/MapServer/export?transparent=true&format=png8&layers=show:7&bbox={xmin},{ymin},{xmax},{ymax}&bboxSR=3857&imageSR=3857&size=256,256&f=image",
            "max_zoom": 19,
            "attribution": "(C) nowCOAST™",
            "html_attribution": "&copy; <a href=\"https://new.nowcoast.noaa.gov/help/#!section=abstract\">OpenStreetMap</a> contributors",
            "name": "NOAA Quantitative Precipitation Estimates (Time Enabled) 3-Hr Quantitative Precipitation Accumulation (inches)"
      },
   },
}

from xyzservices.

martinfleis avatar martinfleis commented on June 2, 2024

@ahuang11 this is a WMS data source, not XYZ, that is why the placeholders are different. We currently don't support those but as said in #49 (comment) we could, in theory, do that. It would need some thinking though to ensure we don't mix XYZ and WMS (and potentially other types) together in a confusing way.

from xyzservices.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.