[mapguide-users] FeatureReader

ary sucaya ary.sucaya at yahoo.com
Wed Dec 12 00:19:02 EST 2007


Thank for replying,

There is no exception. Here is my code:

try 
{ 
MgInitializeWebTier ($configFilePath); 
$userInfo = new MgUserInformation($sessionId); 
$siteConnection = new MgSiteConnection(); 
$siteConnection->Open($userInfo); 

$resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); 
$map = new MgMap($siteConnection);
$map->Open($mapName);

$featureService = $siteConnection->CreateService(MgServiceType::FeatureService); 

$queryOptions = new MgFeatureQueryOptions(); 
$queryOptions->SetFilter("FeatId > 0"); 
$layer = $map->GetLayers()->GetItem("District");
$featureResId = new MgResourceIdentifier($layer->GetFeatureSourceId());

$featureReader = $featureService->SelectFeatures($featureResId, $layer->GetFeatureClassName(), $queryOptions);

while ($featureReader->ReadNext()) 
{ 
    echo $featureReader->GetInt32('DistrictID') . "<br />";        
} 
$featureReader->Close(); 

} 
catch (MgException $e) 
{ 
  echo $e->GetMessage(); 
  echo $e->GetDetails(); 
}

I have more than 300 record in layer District, but I can only see 100 record out of 300. I don't know what wrong..


Thanx,


Ary Sucaya

----- Original Message ----
From: Bruce Dechant <bruce.dechant at autodesk.com>
To: MapGuide Users Mail List <mapguide-users at lists.osgeo.org>
Sent: Tuesday, December 11, 2007 8:30:29 PM
Subject: RE: [mapguide-users] FeatureReader





 
 


<!--
 _filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
a:link, span.MsoHyperlink
	{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;text-decoration:underline;}
span.EmailStyle17
	{font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
	{font-size:10.0pt;}
 _filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{}
-->






There is no limit. Is an exception being thrown? If so that
would give you a clue as to why it is not working as expected.
 

  
 

Thanks,
 

Bruce
 

  
 

  
 





From:
mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org]
On Behalf Of ary sucaya

Sent: Monday, December 10, 2007 9:20 AM

To: Mapguide User

Subject: [mapguide-users] FeatureReader
 







  
 





Hii
group,
 






 
 






I
have a problem with feature reader. I have a sdf layer joined with external
table and i can't make a looping for all of this records. It's always jump out
the loop after 100 records. I tried the same code with different sdf layer
without join to external layer, it's work well. 
 






Is
there any limitation of joined layer in MapGuide 1.2?  Anyone can help me?
 






 
 






 
 






regards,
 






 
 






Ary
Sucaya
 







  
 








Looking for last minute shopping deals? Find
them fast with Yahoo! Search.
 










      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20071211/30b8cc0a/attachment.html


More information about the mapguide-users mailing list