Spectrum Spatial (SSA/LIM)

get a png from multiple layers

  • 1.  get a png from multiple layers

    Posted 07-04-2019 06:50
    Hello,
    I try to use the mapping Service to get a map from multiple layers. But when I send the params, I have an 415 error : media type unsupported. I have written:
    "url": "http://51.255.83.163:8080/rest/Spatial/MappingService/maps/image.png;w=400;h=400;c=6.274963083566945,43.188293825704136,epsg%3A4326;s=8500000",
                "method": RequestMethod.Post,
                "params": {

                    "url": "results.json",
                    "Content-type": "application/json",
                    "postData": {
                        "Input": {
                        'layers':[
                            {
                            'type':'NamedLayer',
                            'name':'/Tables/Dept_Var/Grandes_Surfaces_Alimentaires_..._Communes Carte_Layers/Etablissements_Scolaires'
                            }
                        ]
                    }
                    }

                }
    or more simply :
                "url": "http://51.255.83.163:8080/rest/Spatial/MappingService/maps/image.png;w=400;h=400;c=6.274963083566945,43.188293825704136,epsg%3A4326;s=8500000",
                "method": RequestMethod.Post,
                "params": {
                    
                    "url": "results.json",
                    "Content-type": "application/json",
                    'layers':[
                    {
                    'type':'NamedLayer',
                    'name':'/Tables/Dept_Var/Grandes_Surfaces_Alimentaires_..._Communes Carte_Layers/Etablissements_Scolaires'
                    }
                ]
                }

    Does anybody have an idea about that?
    Thanks you very much,
    Augustin


    ------------------------------
    Augustin Boyer
    GEO RM
    Jaunay-Marigny
    ------------------------------