Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetSpatialContexts does not work

1 REPLY 1
Reply
Message 1 of 2
glangen
346 Views, 1 Reply

GetSpatialContexts does not work

Does anybody know why the last line in this code snippet does not work?

$featureService = $siteConnection->CreateService(MgServiceType::FeatureService);
$featureSource = $layer->GetFeatureSourceId();
$theSC = $featureService->GetSpatialContexts($featureSource, true);

Thanks,
Gido
1 REPLY 1
Message 2 of 2
dswilson
in reply to: glangen

What is your featureSource type in this case? It may be it's failing for a specific type.

Dave

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report