autodesk-forgeautodesk-realitycapture

Autodesk Forge ../photo-to-3d/v1/file Error Code 14


Good Evening,

im geting the following error

   {
  "Usage": "0.55849504470825",
  "Resource": "/file",
  "Error": {
    "code": "14",
    "msg": "Specified values are invalid"
  }
}

im trying to post a survey file to to the photo scene - following this documentation the file i have given the extension type .gcp and formatted it as a xml as shown on the example

<?xml version="1.0" encoding="UTF-8"?>
<surveydata coordinatesystem="LL84" description="Local coordinatesystem; meters" epsgcode="27700">
 <markers>
   <marker id="1" name="C2">
     <images>
       <image name="I100_0413_0027.jpg" xpixel="452" ypixel="401"/>
       <image name="I100_0413_0028.jpg" xpixel="454" ypixel="1105"/>
       <image name="I100_0413_0029.jpg" xpixel="464" ypixel="1840"/>
       <image name="I100_0413_0030.jpg" xpixel="455" ypixel="2564"/>
       </images>
     <gcp x="539840.423" y="263277.897" z="16.097" checkpoint="false"/>
   </marker>
   <marker id="2" name="C3">
     <images>
       <image name="I100_0413_0009.jpg" xpixel="1887" ypixel="488"/>
       <image name="I100_0413_0010.jpg" xpixel="1877" ypixel="1236"/>
       <image name="I100_0413_0011.jpg" xpixel="1868" ypixel="1958"/>
       <image name="I100_0413_0012.jpg" xpixel="1860" ypixel="2681"/>
       <image name="I100_0413_0013.jpg" xpixel="1850" ypixel="3400"/>
       </images>
     <gcp x="539783" y="263219.485" z="16.511" checkpoint="false"/>
   </marker>
      <marker id="3" name="C4">
     <images>
       <image name="I100_0413_0036.jpg" xpixel="4255" ypixel="348"/>
       <image name="I100_0413_0037.jpg" xpixel="4211" ypixel="1049"/>
       <image name="I100_0413_0038.jpg" xpixel="4167" ypixel="1758"/>
       <image name="I100_0413_0039.jpg" xpixel="4125" ypixel="2460"/>
        <image name="I100_0413_0040.jpg" xpixel="4063" ypixel="3168"/>
     </images>
     <gcp x="539845.368" y="263230.711" z="15.852" checkpoint="false"/>
   </marker>
 </markers>
</surveydata>

on the creation of the scene i have set format=rcs-scenetype=aerial

this is the first time i have tried a survey file and i'm unsure what 'values' are invalid, could anyone help?


Solution

  • According to Survey File Example in documentation, when you specify coordinate system as "LL84":

    <surveydata coordinatesystem="LL84" ...
    

    it expects in gcp the long, lat and alt:

    <gcp long="38.014125" lat="-122.540530" alt="2010.200000" checkpoint="false"/>
    

    In your case, you specify the gcp as x,y,z:

    <gcp x="539840.423" y="263277.897" z="16.097" checkpoint="false"/>
    

    Thus, try to change the coordinate system as "XYZ":

    <surveydata coordinatesystem=“XYZ” ...
    

    Although documentation states that "only LL84 is supported for now.", this should do the trick.