Hi,
I have switched an application to the version 7.0 and I am having a big performance issue when using "MultipolygonShape unionMultipolygonShape = PolygonShape.Union(_featuresQueueB);" The shape union operator was not fast before but now it is even more slower than what it was before… Anything that I should be aware of?
This application was working just fine before.
jm.
Performance
Hi JM,
Yes, I guess the performance slow down comes from a big change
in Map Suite 7.0 that we switch the default Geometry processing engine from CLR
type (Unmanaged mode) to NTS (Managed Mode), the reason is that the CLR types requires
we do some customized setting before using it, also it has a sticker validation
for the geometries, it makes some of our customers confused, so we removed it
before releasing 7.0. Now these unmanaged geoprocessing APIs can be found in SqlTypesGeometryHelper class. More details about this change log
please reference: thinkgeo.com/forums/MapSuite...fault.aspx
in “Improved geometric
functions to increase processing speed, accuracy and reliability.”
Section.
So, now the code should be:
MultipolygonShape unionMultipolygonShape =
SqlTypesGeometryHelper. Union(PolygonShape , _featuresQueueB)
Can you have a try and let us know if the issue still
exists.
Thanks,
Johnny
Thanks a lot Johnny,
I am disappointed… does not improve at all…
sorry.
jm
Hi Johnny
A bit more information, seems to be better on small shape factor but not good on large / complex shapes.
jm
Hi JM,
Actually, we just moved these functionalities into the SqlTypesGeometryHelper class, and nothing changes else. As far as we tested, it works fine, would you please provide us your sample to test?
Waiting for your further information
Johnny
I have to upload the shapes to your web site how should I do that?
Hi JM,
Would you please send it to forumsupport@thinkgeo.com, it will be confidential.
Waiting for your further information
Summer
Hi Summer,
this is the shape file that I am using : census.gov/cgi-bin/geo/shapefiles2012/file-download.
could you try to union let say 1000 zip5 shapes together and let me know how it will take your process to generate a single
shape as a result of the union operation?
ps: this is what I do.
thanks
jm
Hi JM,
Thanks for providing the shapefile link, but I am sorry to say that the link doesn’t work now, all shown on the link is a blank page, would you please double-check it? And if the link doesn’t work on your end too, would you please send it to forumsupport@thinkgeo.com.
Waiting for your further information
Summer