Version 1 (modified by 14 years ago) ( diff ) | ,
---|
Microsoft Visual Studio visualizers
Geometry implementations are not viewable directly in the debug window of MS Visual Studio.
To view quickly geometries in the debug window, edit the file located at
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\autoexp.dat
and put this code somewhere :
;------------------------------------------------------------- ; Geos Point ; geos::geom::Point { preview ( #( (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).x, (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).y ) ) children ( #( x: (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).x, y: (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).y, z: (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).z, SRID:(*(geos::geom::Geometry*)(&($e))).SRID, geometry: (*(geos::geom::Geometry*)(&($e))) ) ) }
Note:
See TracWiki
for help on using the wiki.