Spectrum Spatial (SSA/LIM)

 View Only
  • 1.  SOAP/REST Functionality (Image File Creation URL)

    Posted 06-03-2019 01:08

    Hi guys,

    I was wondering what the SOAP or REST URL syntax would be to add a picture (png, jpg, etc..)  of the selected Polygon into the info panel, so when a user selects the object zoomed in, they can see the boundaries as part of the information without zooming out.  (Hyperlink creation as an image file, so I can include in the info template)

    I was reading some web mapping services documents within Spectrum but am a bit unsure of the correct syntax.

    Hope someone could help me please, I think it would look a bit neater to the end user.

    Thank you in advance.

    Tim Warfe




    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------


  • 2.  RE: SOAP/REST Functionality (Image File Creation URL)

    Posted 06-03-2019 18:24
    Edited by Tim Warfe 06-03-2019 20:31
      |   view attached
    Update:-    

    I managed to find the settings for WMS Capabilities.  Check out https://<your SSA Server>:8080/dcg/#spatial

    This data is being displayed from a SQL View live from MSSQL.    I have created an ImageURL field using the following SQL.

    'http://????????:8080/rest/Spatial/WMS?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:28355&BBOX=' + CONVERT(Varchar(10), CONVERT(int,SP_GEOMETRY.STEnvelope().STPointN(1 ).STX - 300)) + ',' +
    CONVERT(Varchar(10), CONVERT(Int, SP_GEOMETRY.STEnvelope().STPointN(1 ).STY - 300))+ ',' +
    CONVERT(Varchar(10), CONVERT(Int, SP_GEOMETRY.STEnvelope().STPointN(3 ).STX + 300)) + ',' +
    CONVERT(Varchar(10), CONVERT(Int, SP_GEOMETRY.STEnvelope().STPointN(3 ).STY + 300))
    + '&WIDTH=600&HEIGHT=500&Layers=Animals%20By%20Locality&Styles=&FORMAT=image/png' AS ImgURL

    I've attached the result I've achieved so far.

    Tim

    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------



  • 3.  RE: SOAP/REST Functionality (Image File Creation URL)

    Posted 06-04-2019 20:57
    Nice work Tim

    I hadn't thought of doing this, you have got me thinking now.

    Duri

    ------------------------------
    Duri Bradshaw
    Spatial IT Consultant
    Insight GIS
    ------------------------------



  • 4.  RE: SOAP/REST Functionality (Image File Creation URL)

    Posted 06-04-2019 21:53
    Thank you, Duri!! :)

    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------



  • 5.  RE: SOAP/REST Functionality (Image File Creation URL)

    Posted 06-17-2019 18:26
      |   view attached
    For those of you using Nearmap photography, I've managed to use a similar concept to bring an aerial image of the selected property back within the Info Pane.

    No reason you couldn't do this with other WMS APIs also.  Vicmap, Google, Etc.

    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------



  • 6.  RE: SOAP/REST Functionality (Image File Creation URL)

    Posted 06-19-2019 02:44
    This looks really interesting!

    Thanks for sharing!

    ------------------------------
    Rebecca Marks
    GIS & Environment Officer
    Greater Hume Council
    NSW Australia
    ------------------------------



  • 7.  RE: SOAP/REST Functionality (Image File Creation URL)

    Posted 06-19-2019 18:19
    Thank you @Rebecca Marks.   Please share any ideas you may come up with. 

    Regards​

    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------