Products
  
  
  Crash Magic Online
  
  Intersection Magic
  
  Map Magic
  
  Knowledge Base
  
  
  
  Contact Us
  
  Meeting
  
  Shop
  
  Login
  

 

Knowledge Base Article:IMW53 


Registration keys moved to client area: Select login on the left menu bar.

Knowldegebase:
Search home page  

How to view scanned images for crash records

Article created: Jan 21 2001, updated: Feb 11 2005

Background:  Scanned images for crash records may be stored in a centralized location or on a web server and accessed when viewing a crash record in Intersection Magic.
Beginning with v6.611, users may use the filter mechanism to specify the a web address or path, filename and even the extension of the image to load.
This article describes some ways of using this powerful feature.

Status:  Info - "how to" article
Keywords:  scanned,image,tiff,raster,crash,record,web, address
Categories:   *Reports* *Networking*

Explanation:

When viewing a crash record in the click-on dialog box, (single accident report) there is a button labeled simply "i" for image. Clicking on this button can provide you with a scanned image, web page, or for that matter, any other information related to the current crash record. But first, you have to configure the program to know where to look for your image files.

Select utilities / configuration / default settings / sys settings. Here you have access to a dialog that contains, among other things, a field called App, and a field called File. Both are in the click-on area.

There are three ways to specify the image file to display:

  1. Launch the file itself, and let Windows figure out the application to launch automatically.
    In this case, you will fill in the the "app" field with information to specify the filename to load. The "file" field should simply have ("") in it.
  2. Launch the application, and then specify the file to load.
    In this case, you will fill in the "app" field with the full path to the program you wish to run. You then fill in the file field with the information that specifies the file.
  3. Launch a web address that specifies the image file, windows will then launch the default web browser.
    In this case, fill in the "app" field with the web address of the image or file you would like to view.  
Since both the "app" and the "file" field are parsed as expressions by the program, they must follow the same rules as the filter mechanism in the program. They must evaluate to a string specifying the application, or more often, the file name to be loaded.

Using this method to access the scanned images, means that you should be able to access images in just about any directory, managed by almost any program, using almost any consistant logic.
This routine works very much like selecting Start / Run from the Windows menu and putting in the program and / or file name. If you just put in a file name, that is just like putting a file name in the "app" field. If you put in an application name, followed by a space, followed by some parameters, thats like using the "app" field for the application name, and the "file" field for the parameters.
The "solution" section below gives some examples.

Solution:
Simple local case: GIF images stored in \DATA\RECIMAGES directory. Image file names are simply the caseid number with .gif added to the end.
App: ("\data\recimages\" + CASE_ID + ".GIF")
File: ("")
Simple network case: GIF images stored in "n:\crash data\images" directory. Image file names are simply the caseid number with .gif added to the end.
App: ("n:\crash data\images\" + CASE_ID + ".GIF")
File: ("")
Specific application used to access images: A proprietary reader exists which is located in "r:\apps\imgreader.exe". Proprietary IMG images stored in "n:\crash data\images" directory. Image file names are simply the caseid number with .img added to the end.
App: ("r:\apps\imgreader.exe")
File: ("n:\crash data\images\" + CASE_ID + ".GIF")
Complex network case: TIF images stored in "\\pubworks\crashdata\images\ccyy" directory. Here, ccyy is replaced with the year that the crash record is coded to. In addition, the first two characters of the CASE_ID number are removed, since the image files are already stored in a year-based direcory.
App: ("\\pubworks\crashdata\images\" + @copy( @datestr(date), 7,4 ) + "\" + @trim(@copy( case_id, 3,20 )) + ".tif")
File: ("")
Proprietary reader, no image files: A proprietary reader exists called "p:\apps\intimgreader.exe" which expects a date, time and case_id number to be passed to it.
App: ("p:\apps\intimgreader.exe")
File:(DATE + " " + TIME + " " + CASE_ID) 

Web address, with CGI variable: A web address exits that uses a CGI variable called incident to specifiy the image or web page to load based on the case_id number.

App: ("http://www.pdmagic.com/?incident=" + case_id )
or, a more specific example:
App:("http://NCHEDMSWEB/EDMS/docpop/docpophitlist.asp?doctype=ACC
                          &NPD%2DIR+Number%5F0KWOp=0
                          &keywordIndexNPD%2DIR+Number%5F0=" + Case_Id )

As a small aid in debugging, the program will present you with the app and file name that you attempted to launch, in the event that the launch fails.
In the event that the program can not even parse the expression that you entered, it will let you know the approximate position of the error, and attempt to give you some idea as to its nature


July 19, 2018 11:02PM

© 1999-2018 Pd' Programming, Inc - Lafayette, CO USA