Polygon Datasource error

stathis30_2000
12-24-2007, 11:48 AM
Hi all,

I started using mapPoint web service recently so I am facing some problems.
I created a polygon datasource and I uploaded it successfully to mapPoint server. <customerpolygonentity>
The datasource contains 34 polygons.
The problem is that when I request the map (with the datasource painted on it), only 25 polygons are painted instead of 34. Even If I put more polygons in the datasource only 25 are painted!
I use the staging enviroment of the web service. Is this problem some kind of limitation ?
My vb code looks like this :

Dim findSpec As New FindByIDSpecification
findSpec.DataSourceName = mydatasource
findSpec.EntityIDs = myIDs

Dim ff As New FindFilter
ff.EntityTypeName = "poly"
findSpec.Filter = ff

Dim foundResults As New FindResults
foundResults = findService.FindByID(findSpec)

The property foundResults.Results.Length is always 25.
I verified through the customer service site that there are 34 records in the datasource.

Please help
ST</customerpolygonentity>

stathis30_2000
12-29-2007, 07:49 AM
I finally found out the solution ! In case somebody has the same problem, I added the following code :

Dim fo As New FindOptions
Dim fr As New FindRange

fr.Count = number_of_polygons
fo.Range = fr
findSpec.Options = fo ' findspec as FindByIDSpecification

ST.

Eric Frost
12-29-2007, 08:54 AM
Cool, thanks for following up!

Eric

 
Web mp2kmag.com
mapforums.com