Hexagon Geospatial
MENU

ERDAS APOLLO & ECW/JP2

Wondering how others have configured their ERDAS APOLLO server or what data they are crawling? The ERDAS APOLLO Discussion board is a place to find information, share ideas and more. Join the community, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Occasional Contributor
Posts: 11
Registered: ‎07-07-2016
Accepted Solution

Apollo 2016.3: Crawling image file using REST API

[ Edited ]

Hello,

I’m crawling an image file using the REST API of Apollo 2016.3 to this URL
http://<server>/erdas-apollo/crawl
with this content:
{
 "crawlType": {
  "files": {
   "replicateDirectory": false,
   "files": ["C:\\TESTDATEN\\50K-Topos_Haiti\\5370-1.tif"]
  }
 },
 "crawlProperties": {
  "parentId": "14b5ee185f24f8a5015f2504fc66014c",
  "footprintAsExtent": false,
  "scheduleSettings": {
   "recurringJob": {
    "startDateTime": null,
    "occurence": 0
   },
   "immediate": true
  },
  "generatePyramids": "dataset",
  "generateThumbnails": "datasets",
  "viewServices": {
   "aggregate": {
    "wmsEnabled": true,
    "wmtsEnabled": false
   },
   "dataset": {
    "wmsEnabled": true,
    "wmtsEnabled": false,
    "geoservicesEnabled": false,
    "ecwpEnabled": true,
    "jpipEnabled": false
   }
  },
  "downloadServices": {
   "aggregate": {
    "czsEnabled": true,
    "wcsEnabled": true
   },
   "dataset": {
    "czsEnabled": true,
    "wcsEnabled": true
   }
  },
  "metadataParsers": {
   "parsers": [],
   "executionStrategy": "executeAll"
  },
  "securitySettings": [{
    "principalName": "esp_administrator",
    "permissions": {
     "read": true,
     "update": true,
     "delete": true,
     "manage": true,
     "execute": true
    }
   }, {
    "principalName": "esp_data_manager",
    "permissions": {
     "read": true,
     "update": true,
     "delete": true,
     "manage": true,
     "execute": true
    }
   }
  ]
 }
}

Currently the file is added into the catalog, but with wrong size and size depending information and no pyramids.
Is there anything wrong with my request?


In the attachment there are some screenshots from the job details of crawling jobs using the DataManager and REST API and dataset details of the crawled files.

 

Technical Evangelist
Posts: 796
Registered: ‎07-30-2015

Re: Apollo 2016.3: Crawling image file using REST API

Typo?

 

   "generatePyramids": "dataset",

 

 should be

  

  "generatePyramids": "datasets",

 

Also you can try

 

  "footprintAsExtent": true,

 

 

hope it helps.

haiyan

Occasional Contributor
Posts: 11
Registered: ‎07-07-2016

Re: Apollo 2016.3: Crawling image file using REST API

Hello Haiyan,
 
changing the parameter value to "datasets" makes no difference.
Using footprintAsExtent = true helps me. Now I have pyramids, a correct spatial extent and acquisition.
Thanks for your help.
 
Best regards
Markus

Staff
Posts: 807
Registered: ‎10-18-2015

Re: Apollo 2016.3: Crawling image file using REST API

Hi Markus,

 

I'm trying to crawl data and getting 401 authorization issue. I'm able to make the crawl happen using api doc (swagger) logging in as admin.

If I try to do the same in an Ajax call I get error 401. I've tried to use basic authentication in several ways with no success. I don't see a specific endpoint to get a token.

 

How do you issue your request? Should I be authenticated beforehands?

 

thanks,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Occasional Contributor
Posts: 11
Registered: ‎07-07-2016

Re: Apollo 2016.3: Crawling image file using REST API

Hi Stephano,

 

I use SoapUi, Postman or my own development in C# to send CrawlRequests to Apollo.

In SoapUi I have to set an option for the pre-emtive auth to Authenticate pre-emptively. Maybe there is something similar to set in Ajax.

 

SoapUiAuthorization.PNG

 

Regards

Markus

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.