Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: Problem Shapes with Images (GPX base map) no databases in Delphi XE3 version 4.9.3.1

Hi, you are right about the hangings on WinXP after all. I tested gpx format on VM and it hangs indeed. I already committed a fix. We shall release a new installer with the fix soon. Thanks for reporting this.

Regarding the code, I see a problem in this line:
sf.ShapeCategory[sf.NumShapes] := Elem['ID_']-1;  //Fails. Assign -1
The last shape in shapefile always has an index sf.NumShapes -1, since the the indices are 0-based. You can also use index variable from sf.EditInsertShape(shape, index) call. It's passed by reference and will hold the correct index for the inserted shape.

Regards,
Sergei

Viewing all articles
Browse latest Browse all 2341

Trending Articles