Knowledge Base Search for: Recently modified first: KB10576 - Protect against showing the layer properties dialog box. Using Delphi: Assign an empty body handler to the OnShowDialog procedure. Using VB6: Private Sub XGISControlLegend1_OnShowDialog(translated As Boolean, ByVal Layer As Object) ;translated = True End Sub Using VB.NET: Private Sub XGIS_ControlLegend1_OnShowDialog(ByVal sender As Object, ByVal e As AxTatukGIS_DK.IXGIS_ControlLegendEvents_OnShowDialogEvent) Handles ControlLegend.OnShowDialog ;e.translated = True End Sub Modified: September 10, 2015 KB10574 - Programmatically control the z-order of layers, to move layer up or down on TGIS_ControlL... Use either the Layer.Move or the Layer.Zorder function. Modified: September 10, 2015 KB10569 - Limit user access to a subset of the entire map extent. The DK GIS.RestrictedExtent function can be used to limit the extent of the map area that each user is allowed to view based on user password, etc. While this feature might be useful to control a work process, it is not every effective to protect data distributed with a DK application. A user could still use another GIS program or application to access the entire map area (the distributed dataset). But, this technique could be effective with a web based GIS solution, such as developed from the TatukGI ... Modified: September 10, 2015 KB10561 - Set the highlighted appearance of selected vectors. The presentation of DK selected vectors (how these vectors are are highlighted on the map) is controlled using: GIS.SelectionColor to set the selection color, as long as the selection color is not white. (If white, then use instead GIS.SelectionPattern). GIS.SelectionPattern to set a bitmap fill for the selection. (Use only if GIS.SelectionColor = clWhite). GIS.SelectionTransparency to set the transparency level of the selection fill. GIS.SelectionWidth to set the width of the fill overlap gap (w ... Modified: September 10, 2015 KB10559 - Vector files load slowly. If R-tree indexing is turned on, the TatukGIS software must build the R-tree the first time a vector file is opened. If this is the explanation, it will not be an issue the second time the same file is opened. Another option is to turn off the R-tree index feature in the dialog box found under the Options/Map menu. If the CashedPaint mode is turned on, try turning it off. Though will not make the vector file open faster, it makes it possible to see the progress as the file is drawn. Modified: September 10, 2015 KB10558 - TIFF files exported slowly. The tradeoff is TatukGIS software exports full sized TIFF images, i.e., with no size reduction and no quality loss from the source imagery. The Editor can export even HUGE (such as 2 GB) TIFF files. Other software programs may export TIFF's more quickly but with substantially reduced size and degraded resolution. Modified: September 10, 2015 KB10552 - Access DXF AutoCAD layer in the DK. Use: layer_name := shp.GetField( 'DXF_LAYER' ) ; Modified: September 10, 2015 KB10546 - Problem with the GIS.Zoom (pixels verus twips). Question from a DK customer: In my project file I have: [TatukGIS Layer1] Path=layer.shp Name=cities Visible = false [TatukGIS Layer1 1] MinZoom=340 Visible=true The Layer becomes visible even if GIS.Zoom reports only 27. What's wrong? Specify instead: MinZoom=-3000 Negative values correspond to PIXEL related calculations (such as GIS.Zoom). Positive values correspond to TWIPS related calculations (such as GIS.ZoomEx). Modified: September 10, 2015 KB10543 - Documentation for CGM symbol ASCII text file format. Documentation for the ASCII text file format can be found under different names from these sources: 1) NIMA: MIL-STD-2301A www.nima.mil 2) ISO: INCITS/ISO/IEC 8632-4-199 http://webstore.ansi.org/default.aspx 3) Download from: http://www.directory.net/Science/Reference/Standards/ Modified: September 10, 2015 KB10533 - How to check if two shapes are duplicated, i.e., have the same geometry. Use: Shape1.Relate( shape2, RELATE_EQUALITY ) ; Modified: September 10, 2015 KB10534 - Label width problem when printing. Probably you have a project/ini file in the which width was specified in pixels and this width was recalculated to 75pt but is still stored as pixels. Try "touching" the value (change the size up and down) in the properties dialog box and click Apply button to reset the properties. Modified: September 10, 2015 KB10532 - Present legend in reverse order, with max value at top and min value at bottom. Suppose that you had entered: Minimum Value = 1000 Maximum Value = 5000 Instead, just reverse the values: Minimum Value = 5000 Maximum Value = 1000 Modified: September 10, 2015 KB10638 - Customize DK map zooming behavior. Properly handle the MouseDown & MouseUp events - on MouseDown store VisibleExtent and on MouseUp verify that VisibleExtent is the same. If the extent is the same, then zooming did not occur. The following example makes zooming in a by factor of 2 when user clicks on the map. procedure TfrmMain.GISMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if GIS.IsEmpty then exit ; if GIS.Mode = gisZoom then begin oldExtent := GIS.VisibleExtent ; ex ... Modified: September 10, 2015 KB10599 - List all field names from a joined dataset. This can be done as follows: if Assigned( oLayer.JoinDB ) then begin for i:=0 to oLayer.JoinDB.FieldCount-1 do begin name := oLayer.JoinDB.Fields[i].DisplayName ; .... end ; end ; if Assigned( oLayer.JoinADO ) then begin for i:=0 to oLayer.JoinADO.Fields.Count-1 do begin name := oLayer.JoinADO.Fields.Item[i].Name ; ... end ; end ; Modified: September 10, 2015 KB10584 - Present label for only a single object in a layer. Make the shape/object editable, as follows: shp = shp.MakeEditable shp.Param.Label.Value = 'label' Modified: September 10, 2015 KB10536 - Develop plain C++ application using XDK with Visual Studio. Here is a simple console application using the TatukGIS DK-ActiveX (XDK): #include "stdafx.h" #import "msado15.dll" #import "Stdole2.tlb" rename_namespace("TatukGIS_DK") // patch for VS6 bug #import "TatukGIS_DK.ocx" #include "stdio.h" int main(int argc, char* argv[]) { CoInitialize( NULL ) ; TatukGIS_DK::IXGIS_UtilsPtr utils ; TatukGIS_DK::IXGIS_PointPtr ptg ; utils.CreateInstance( "TatukGIS_DK.XGIS_Utils" ) ; ptg = utils->GisPoint( 12, 34 ) ; printf( "x = %f, y=%f", ptg->X, p ... Modified: September 10, 2015 KB10530 - Determine if layer is vector without using the InheritsFrom() function. You can try to test inheritance using a procedure like the following: function IsInherited(const _object: TObject; const _name: WideString): Boolen; var obj: TObject; ref: TClass; txt: string; begin Result := False; if not Assigned(_object) then exit; ref := obj.ClassType; while (ref <> nil) and (not Result) do begin Result := ref.ClassNameIs(txt); ref := ref.ClassParent; end; end; And test inheritance from TGIS_LayerVector using IsInerited( my_object, "TGIS_Lay ... Modified: September 10, 2015 KB10357 - Size of a PixelStore export relative to TIFF format source image(s). This depends on i) whether the source images are 24 bit with unlimited colors or 2, 4, or 8 bit with limited colors ii) the PixelStore internal format used (8 or 24 bit JPEG or 1, 4, 8, or 24 bit PNG) and iii) the PixelStore compression level setting. For example, export of 24 bit TIFF aerial photos to a PixelStore 24 bit JPEG layer with the default JPEG compression setting would likely result in a PixelStore layer that is much smaller than the source data. (The size reduction, along with some quality ... Modified: September 10, 2015 KB10352 - Exported TIFF image larger than TIFF source data. There is no inherent reason why the file size of an exported TIFF image must be larger than the size of the corresponding source TIFF data. A size increase could be explained by one of the following: The source image(s) are somehow compressed or less than 24 bit color, whereas the TIFF export was generated without compression or (unnecessarily) to full 24 bits. TatukGIS software supports TIFF export with LZW compression and export to 2, 4, or 8 bits, so consider these image export options. The sour ... Modified: September 10, 2015 KB10351 - Export limited color (less than 24 bit) TIFF aerial image to PixelStore of minimum size. Select the same number of bits for the internal format of the PixelStore export as your source image(s). The TatukGIS PixelStore format internally supports 8 and 24 bit JPEG and 1, 4, 8, and 24 bit PNG. This will prevent the exported PixelStore image from being larger than necessary. Modified: September 10, 2015 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 Tech Support Q&A Knowledge Base Common Questions