1

Re: GetSpeciesDensityData vertex problem

Below is the code i am using in a request via 'SoapUI', i am getting the error:

<faultstring>The specified polygon could not be assigned a to either the BNG or ING as it is not native to either</faultstring>

Each vertex is WGS84/EPSG_4326 and is defined in the code as explained in the documentation, the error message seems to imply that the documentation is wrong and the query must use BNG/ING vertex?

Am i doing something else wrong in my query or mis-understanding the documentation and will i need to convert these before plugging them in?

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tax="http://www.nbnws.net/Taxon" xmlns:spat="http://www.nbnws.net/Spatial" xmlns:sit="http://www.nbnws.net/SiteBoundary" xmlns:map="http://www.nbnws.net/Map" xmlns:dat="http://www.nbnws.net/Dataset" xmlns:tax1="http://www.nbnws.net/TaxonReportingCategory">
   <soapenv:Header/>
   <soapenv:Body>
      <tax:SpeciesDensityDataRequest registrationKey="###">
         <spat:GeographicalFilter>
            <spat:Polygon srs="EPSG_4326">
               <spat:Boundary>
                  <spat:Ring>
<!--User defined GoogleMap polygon -->
<spat:v srs="EPSG_4326" x="53.409760" y="-2.876912"/>
<spat:v srs="EPSG_4326" x="53.401676" y="-2.885939"/>
<spat:v srs="EPSG_4326" x="53.398963" y="-2.865239"/>
        </spat:Ring>
               </spat:Boundary>
            </spat:Polygon>      
            <spat:MinimumResolution>_2km</spat:MinimumResolution>
         </spat:GeographicalFilter>
             <dat:DatasetList>
            <dat:DatasetKey>GA000979</dat:DatasetKey>
            <dat:DatasetKey>GA000977</dat:DatasetKey>
         </dat:DatasetList>
         <tax:TaxonVersionKeys>NBNSYS0000003191</tax:TaxonVersionKeys>
      </tax:SpeciesDensityDataRequest>
   </soapenv:Body>
</soapenv:Envelope>
Natural History & Biodiversity Data Enthusiast

2

Re: GetSpeciesDensityData vertex problem

Hello

Just tried myself using SoapUI and I also get the same error message using EPSG_4326 but it seems to be working using EPSG_27700 spatial reference system. It looks like the web service is not handling EPSG_4326 as it should according to the documentation. I shall flag this up with the NBN Gateway developers to see if they can look into it

Best wishes

Graham

3

Re: GetSpeciesDensityData vertex problem

Hi,

you've got your lat and long the wrong way round, x=long, y=lat.  It is a mistake I've made before, but it makes sense - lat is how far north it is, so it is the y axis.

All the best, Jon

This query works (registrationkey will need adding):

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tax="http://www.nbnws.net/Taxon" xmlns:spat="http://www.nbnws.net/Spatial" xmlns:sit="http://www.nbnws.net/SiteBoundary" xmlns:map="http://www.nbnws.net/Map" xmlns:dat="http://www.nbnws.net/Dataset" xmlns:tax1="http://www.nbnws.net/TaxonReportingCategory">
   <soapenv:Header/>
   <soapenv:Body>
      <tax:SpeciesDensityDataRequest registrationKey="###">
         <spat:GeographicalFilter>
            <spat:Polygon srs="EPSG_4326">
               <spat:Boundary>
                  <spat:Ring>
<!--User defined GoogleMap polygon -->
<spat:v srs="EPSG_4326" x="-2.876912" y="53.409760"/>
<spat:v srs="EPSG_4326" x="-2.885939" y="53.401676"/>
<spat:v srs="EPSG_4326" x="-2.865239" y="53.398963"/>
        </spat:Ring>
               </spat:Boundary>
            </spat:Polygon>      
            <spat:MinimumResolution>_2km</spat:MinimumResolution>
         </spat:GeographicalFilter>
             <dat:DatasetList>
            <dat:DatasetKey>GA000979</dat:DatasetKey>
            <dat:DatasetKey>GA000977</dat:DatasetKey>
         </dat:DatasetList>
         <tax:TaxonVersionKeys>NBNSYS0000003191</tax:TaxonVersionKeys>
      </tax:SpeciesDensityDataRequest>
   </soapenv:Body>
</soapenv:Envelope>

4

Re: GetSpeciesDensityData vertex problem

Cheers for looking at it Graham, i am now converting it to bng anyways.

and thanks Jon! I figured it'd be something basic, i really am a novice novice!

Natural History & Biodiversity Data Enthusiast