BUFFERIMAGE AND VECTOR DATA FILE DRAWING PROBLEM

THERE IS A VECTOR DATA FILE OF A COUNTRY/REGION OF CERTAIN PORTION. THAT IS FILE CONTAINS ONLY DATA IN (X,Y,Z) FORMAT OR ITS COLOR CODING OR WHAT TYPE OF SHAPE IT IS GIVEN BELOW
shape: Line, Color: red
no of vertices: 3
(234,543,45)
(34,567,345)
(76,234,345)
like above. a vector file exists. file is very heavy with lot of information. one needs to read the file and draw in java.
My problem is: i am reading the file properly, in paint function i have created BufferedImgae, createGraphics all necessary actions. i have also used rubber binding. using rubber binding when i select few portion of the map i found it is taking
lots of time to draw. once it is drawn when next time i am using RUBBER BAND SELECTION EXCEPTION occurs saying HEAP OUT OF MEMORY like.
one more thing if i used affinetransform it is simply zooming completely distorting my map defeating entire purpose.
how i can solve above problem using bufferedimage such that i can draw vector data file which should be faster when redrawing also using rubber band as well.
thanks in Advance
Roy

I have completely no idea what you mean by rubber banding. But you shouldn't be creating a BufferedImage and parsing a file inside of a gui component's paint function.
one more thing if i used affinetransform it is simply zooming completely distorting my map defeating entire purpose.AffineTransform is a transformation from one 2D coordinate system to another. It probably wont be as useful in a 3D environment such as your vector data file.

Similar Messages

  • What is the best software programs that I can use to read, write and modify data / files on external HD (NTFS format i.e.  Windows) ?

    Hi guys,
    I’m new to Mac and have a MacBook Pro Lion OS (10.6.8 I think !!!) with Parallels 7 (Windows 7) installed. Can someone please tell me what is the best software program that I can use to read, write and modify data / files on external HD (NTFS format) from the Mac OS ? I heard of Paragon and Tuxera NTFS. Are they free ? Are they good ? Are there any other software programs out there ? I heard that some people have issues with Paragon.
    Thanks.

    Your best bet would be to take the drive to the oldest/compatible with that drive Windows PC and grab the files off, right click and format it exFAT (XP users can download exFAT from Microsoft) and then put the files back on.
    Mac's can read and write all Windows files formats except write to NTFS (and in some cases not read) so if you can change the format of the drive to exFAT (all data has to be remove first) then you will have a drive that doesn't require paid third party NTFS software (a license fee goes to Microsoft) for updates.
    Also it's one less hassle to deal with too.
    .Drives, partitions, formatting w/Mac's + PC's

  • Forms pulling Multiple Records from an XML Schema and XML data files - Adobe LiveCycle Designer

    I built a form in Adobe LiveCycle with an xml schema and data file.  The problem is with how the form renders the xml data file.
    I have a statement element that consists of about 6 fields (statementID, statementName, statementAddress, statementCountry, statementZip, statementDate, etc) of data in the schema that allows for multiple iterations - so one xml data file can contain multiple statements. These fields allow for null values.
    But here's the problem:  When any of the statements - say statement 2 of 6 - has a null value in one of the fields, if the xml data file doesn't have a placeholder
    (example of placeholder:  <statementName type="String"/>   )in the xml for that field, my form pulls the field value from the NEXT statement.
    This corrupts all the rest of the statement records, as this field is shifted up for all the rest.
    I know that in the past I haven't needed a placeholder when a field was null. But I'm wondering if when the data allows for multiple records the xml data file needs to generate the placeholder.  And where is the problem? In the Schema? The xml data file? My form?  And the 64-thousand-dollar question:  How to fix it?

    If your <statement> element is the one that repeats, it should be bound to a subform with the binding string of something like $.statement[*]. Then in that subform should be your fields and they should have bindings of $.statementID, $.statementName, $.statementAddress, etc.
    Kyle

  • Error 36 and External Drive File Copy Problem & USB Connections

    In attempting to copy a folder with some 200G+ of files from my iMAC, with OSX 10.6.7, to an external portable WD 1Tb HD, newly formatted to HFS+ (journaled), and connected to the iMAC via a USB cable to the USB port on the iMAC keyboard, I kept getting an error message that Finder could not complete the operation as some data couild not be read or written and transfered, and gave the "Error Code -36". After some searching ont he internet for this error code I came across a host forums discussiong the error code BUT all referred to it being the result of MAC OS hidden "dot-underscore" companioned files being created when the MAC OS X file system copies or moves files to a FAT16 or FAT32 volume. This was not the situaion in my case a both drives were OS X formatted HFS+. Eventually I came across a very vague reference to the error also occuring when the cable connection with the external HD was not solid. I reconnected my external HD and attempted the file transfer again - with the same result. Eventually I decided to plug the external HD into a USB pot on the back of the iMA itself, rather than the keyboard set. Sure enough the error issue disappeared - the transfer successfully completed.
    So my question relates to the "usb connection" challenge with iMAC. the iMAC has only 4 USB ports on the back directly. I did have two desktop external HDs plugged into 2 of these USB ports at the back of the iMAC, as well as a WACOM pad device into the 3rd, and an EPSON 3880 printer into the 4th, and so was forced to employ the ports ont he keyboard for portable HD. So - what's the answer in a situation where the 4 are insufficient and it would appear that the keyboard ports seemed to be unpowered?? Any suggestions?

    It's actually a Time Machine backup drive which is formatted in Mac OS Extended (Journaled). I wish I'd copied the exact error message.
    I believe it was something to the effect of "Error 36: The file could not be copied because some of the date could be be read/written" or something along those lines. Next time it comes up I'll copy it. I have Drive Genius running with DrivePulse, but it doesn't ever seem to start.
    My biggest concern is that this is a sign that the drive is failing. When backing up, it also slows, or stops midway through and just hangs there. Though I haven't done a lot of extensive testing on that because if the drive is failing, I don't want to speed that process up any more.
    To add to the complication, there is a second external drive which Time Machine is also backing up for me. There is one particular file, the Virtual Machine file, I was trying to get off the other external drive and it produced the same problem. That's when I went into Time Machine to try and retrieve the file that way and it did the same thing. The other external drive is making some sounds, but it doesn't sound like a distinct clicking, more like a more pronounced version of the normal constipated hard-drive sound. The Time Machine drive, isn't making any obviously strange sounds at all.
    So, I can't tell whether the drives are failing or if it could actually be that particular file itself causing some strange problems.

  • Iphoto and aperture library file folder problem

    Hi all,
    I have a problem.
    I want to have aperture and iphoto folders organized as itunes files fiolder. is possible?
    I see in my aperure library that master folder (I have selected the option copy files in library) there are many and many date folder (many of them are empty) and I don't like this method of organization.
    if I don't  check the option to copy files and keep my database with only thumb, I have the problem that if I modify or delete a photo the original remain untouched.
    please there are solutions?
    davide

    "(where?)"
    Where you specify.  Please see section 6 on this page (the User Manual is slightly out-of-date -- substitute "Original" for "Master"):
    Choose a location for the imported files by doing one of the following:
    To store imported masters in the Aperture library: Choose “In the Aperture Library” from the Store Files pop-up menu.
    To store imported masters as referenced image files, audio files, or video files in their current location: Choose “In their current location” from the Store Files pop-up menu.
    To store imported masters as referenced image files, audio files, or video files in the Pictures folder on your hard disk: Choose Pictures from the Store Files pop-up menu, and then choose whether you want the files moved or copied to the Pictures folder by clicking the “Move files” or “Copy files” button.
    To store imported masters as referenced image files, audio files, or video files in a location other than the Pictures folder: Choose “Choose” from the Store Files pop-up menu and select a folder. In the dialog that appears, choose a location to store the imported masters, then click Open. Choose Project Name from the Subfolders pop-up menu to specify that the files be stored in a folder with the same name as the project. Choose whether you want the image files moved or copied to the new location by clicking the “Move files” or “Copy files” button.
    " (are you sure? I don't find this option)"
    I'm pretty sure.  From
    Deleting Images from the Browser
    If you delete the last version in a version stack, Aperture asks whether you want to delete the master. If you confirm that you want to delete the master, the master is moved to the Aperture Trash.
    When an image is represented in the Browser by a single version, you can select the version and delete it, and the corresponding master is deleted as well.
    When you empty the Aperture Trash you should get a dialog box similar to this one.  Note the field with the check box:
    (Screenshot)

  • SSIS and XML Data Files

    Hello, everyone. As a SSIS newbie, I have a simple question about load XML data files with SSIS. Currently I have multiple XML files in a specified folder (C:\XMLData) using one XSD file. Since SSIS does not support expression language for XML Source component (unlike flat file connnection), do you know how to loop through all XML data files to load them into a table in a database? I guess I may need to do some programming in VBScript. Any help is greatly thankful
    Thank you very much.

    Since SSIS does not support expression language for XML Source component (unlike flat file connnection),
    Are you sure about that? If you flip back to the control-flow and view the properties of the dataflow in question then you should be able to put an expression on the [XML Source].[XMLData] property.
    Background reading:
    Dataflow expressions
    (http://consultingblogs.emc.com/jamiethomson/archive/2007/10/09/SSIS_3A00_-Dataflow-expressions.aspx )
    http://sqlblog.com/blogs/jamie_thomson/ | http://jamiethomson.spaces.live.com/ | @jamiet

  • Erasing a config and vlan.dat file in Catalyst 4507R Switch

    Hi,
    I am unable to erase the configuration from Catalyst 4507R Switch.When i do "write erase" and reload the switch,the configuration still remains on the switch.
    Switch1#write erase
    Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
    [OK]
    Erase of nvram: complete
    mp024-dc-nr00#sh start
    startup-config is not present
    After this i did reload and configuration still didn't get removed.
    I  tried
    erase /all nvram:
    reload
    This also didn't help.
    I also tried:
    erase /all non-default
    reload
    This also didn't help.
    Can anyone suggest how to erase the config on Catalyst 4507R Switch.
    Thanks,

    Hi Saroj,
    do you see the below symtoms:
    Cat4500# write erase
    Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK]
    Erase of nvram: complete
    Cat4500# reload
    System configuration has been modified. Save? [yes/no]: n   
    !--- Do not save the configuration at this prompt. Otherwise, the switch
    !--- reloads with the current running configuration and does not reset to default.
    Proceed with reload? [confirm]y                             
    2w0d: %SYS-5-RELOAD: Reload requested
    To erase the vlan.dat file on the 6500/6000 switches, issue the erase const_nvram: command. On the 4500/4000 switches, issue the erase cat4000_flash: command. On the fixed configuration switches, issue the delete flash:vlan.dat command.
    HTH
    Regards
    Inayath

  • CS1 and CS2 InDesign file type problems and Tiger

    Dual 2.7GHrz G5, 2GB RAM, OSX 10.4.5
    Previously, InDesign 3 (CS1 version) was installed on this Mac. I needed to install the full CS2 package. Everything installed just fine. The problem I am having is the file type associations. The Mac now sees CS1 InDesign files as Indesign CS2 files. I got info on a file I knew to have been created and saved in InDesign CS1. I changed the "open with:" to InDesign CS and it worked until I hit "Change all". It then reverts back to a CS2 file type. On other sites I found some different things to try like rebuilding or deleting the LaunchServices pref files, checking to see if their was a CFBundleIdentifier, etc. Anyway, what I seem to have found is that Tiger gets confused when the Type and Creator are the same in the info.plist files. Panther, however, does not seem to have this same problem. We have 10+ other G5's of similar hardware specs as the one listed above, running Panther 10.3.9, have CS1 and CS2 installed, and we are not having the same file type problems.
    As a test, I modified the CFBundleIdentifier to be different than the one found in the CS1 info.plist, and it let me "change all" the CS1 files to CS1. Of course, CS2 files could not be associated with CS2 now.
    Is there a fix for this? Or, is there a patch being worked on that will fix this problem? We really need to keep both versions of the software installed, and I don't want to have to rely on users making the decision about what version they are working in.
    Tom

    If Get Info shows both app versions (& it should) as "Open with:" choices, you can at least still set individual docs to open with the preferred version. Instead of having to open Get Info windows, you can do the same thing a bit more easily with the contextual menu that pops up when you right (or CMD) click & hold on a Finder document icon.
    Normally, the "Open with >" choice in this menu is a one time thing, but if you hold down the option key, it changes to "Always Open With >" & makes the new app choice permanent as it opens the doc, all in one step.

  • Can you perform "ymodem" and "kermit" data file transfers from within Labview ?

    If third party software vendors can do this, does anyone know who they may be ? In my application, the final product which I must communicate with is a finished commercial product which uses picodos as the operating system and accepts commands and transfers data over an RF Freewave modem, downloading and uploading files using both "ymodem" in procomm and "kermit"(old program) for large data files. I've got around most of the picodos stuff but I'm left with these two items which do not seem to be handled by National.
    Help !!!!
    Bryce Davis
    email: [email protected]
    902-426-3100 ext 284

    I have searched through our database and the web, and I cannot find any information about these modem protocols. I cannot even find a standard so that you could implement the code yourself. You might consider contacting our aliance members--it appears that some of them had modem toolkits in the past. The aliance list can be found at http://exchange.ni.com/servlet/Redirect?id=6361480
    Jeremy Braden
    National Instruments

  • Address Book and iCal Data Files

    In the standard Snow Leopard installation, what are the names of the data files for Address Book and iCal, and where are they stored? I have so much data in these two files that I want to be sure they're closely backed up.

    you should back up your whole system not just those two files. then you'll never miss anything. what's your backup setup?
    the address book data is stored in home directory/library/application support/address book and the ical data in home directory/library/calendars.

  • Lockbox Transmission Formats and Sample Data File

    Hi All,
    We are going to implement. For that we are going to use one of the standard transmission formats.
    As per the oracle manuals we can use Convert (arconv.ctl) tranmission format for transferring payment information from other systems.However it does not containt the lockbox name and many other fields.
    Please tell me whats the best standard format I can use and give me any sample data file formats if you have.
    Regards,
    MPH

    Hi Thanks a lot for your reply,
    Can you tell me if you have any data files created based on the BAI transmission format.
    Thanks and Regards,
    MPH

  • Adobe CMM and Photoshop CS4 File Info problems

    I installed the Adobe Color Management Module several days ago.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=3618
    Today when I opened the File Info dialog in Photoshop CS4,I got a blank black window. Same went for the Kuler window and other extensions under the Window menu. Other panels such as the palettes and toolbox were fine.
    I went through reset prefs,reinstalled PS,and reinstalled my video driver.
    Same problems.
    Uninstalled the Adobe CMM and the panels returned to normal.
    I don't know exactly what happened,but something this forum should know about.

    Chris,I downloaded and reinstalled the CMM and the problem repeated.
    File Info: blank, as well as the Kuler, and Connect extensions under the Windows menu. Additionally,any custom panels installed via Configurator also went blank.(although I had uninstalled those on my first round of troubleshooting)
    Again as soon as I uninstalled the CMM,I got the File Info, Kuler, and Connect windows back.
    This is on a Toshiba A205-S5843 running Vista SP1
    I also tried the CMM on a Toshiba A75 (Windows XP)with a trial of CS4 Extended. There were no problems on that configuration with the CMM installed.
    I don't know what it is,but thought it should be passed along.

  • Jquery.js and other .js file includes problem

    Hello!
    I have a problem with external .js files.
    If I link them in the <head> field at the page properties section, nothing happens.
    I saw that Muse put it's .js files at the end of the <body> tag. If I open the html file, with notepad, and put my includes manually right after the Muse's <!-- JS Includes --> section my codes are working, but there are error messages in the browser.
    So if my code is above the generated JS Includes they won't work, but after them they are working, but with error message. And If I change something on the site, I have to manually put them there again. That wouldn't be nice.
    How can I Include jquery to make my other .js files, and .css work?
    Hope somebody can help.
    Regards,
    Tom

    Just figured out.
    When activated, the hidden feature inserts into web.config the following:
      <location path="_layouts">
        <system.web>
          <authorization>
            <deny users="?" />
          </authorization>
        </system.web>
      </location>
    The fix:
    Keep the tag inserted, then, add the following
    <location path="_layouts/1046/core.js">
        <system.web>
          <authorization>
                    <allow users="?" />
          </authorization>
        </system.web>
      </location>
    <location path="_layouts/1046/search.js">
        <system.web>
          <authorization>
                    <allow users="?" />
          </authorization>
        </system.web>
      </location>
    <location path="_layouts/1046/NON_IE.JS">
        <system.web>
          <authorization>
                    <allow users="?" />
          </authorization>
        </system.web>
      </location>
    <location path="_layouts/1046/init.js">
        <system.web>
          <authorization>
                    <allow users="?" />
          </authorization>
        </system.web>
      </location>
    Remember to change de "1046" to your specific language.
    Hope it helps you as much as it helped me

  • KMZ and 3d Google file import problems (Photoshop CS3 Extended)

    I'm new to the forum, so, I hope I didn't miss any answers about this in the FAQs, etc.--I did look.
    I have PSCS3 Extended and have downloaded and installed the Google 3D Warehouse plugin. I can access the plugin which takes me to the Google 3D website and I can navigate to and download 3D models. However, when the model is actually brought into Photoshop, it looks very strange. The model is only visible in fixed shape area that appears to be the shape of the initial 3d model. But when I rotate and move the model, it simply slides the view of the image inside the fixed shape area. Very strange. I've tried this with about 8 different downloaded KMZ (Google Earth 4) models and they all do this same strange behavior. Additionally, I downloaded Google's free SketchUp program. The models load and appear fine in that program. I've exported from that program, but the files still have the same problem when loaded up into Photoshop.
    I'm really baffled by this. Any guidance would be much appreciated.

    Problem solved!
    Prior to my posting here, I had checked Dell's Customer Care driver download site for the latest video card driver and had downloaded the most recent one they had posted for my video card. I also had let Windows Vista "check for updated driver" for the video card and it reported that I had the most recent video driver.
    WRONG!
    Instead of relying on Dell's Customer Care driver download web site or Windows Vista's updated driver button, I decided in one last desperate attempt to go directly to nVidia's web site to check for the most recent driver (I know, I should have done this to begin with, but if Dell and Windows offer driver updating ease, I had the silly idea that it would actually work correctly!). The nVidia site had a driver that was one month newer. I downloaded it and installed it and now the KMZ file is appearing correctly in PSCS3, and, so are all the other 3d file formats (3DS, DAE, etc.)!
    Hope this information helps anyone else out there who might be having this problem. And, the problem was NOT PhotoShop or Google or the plug-in, the problem was Dell and Microsoft's driver support not updating driver support in a timely manner.

  • Getting vector data in tokenizer problem...

    the data is something like this
    6045992222 black Brown James 0.0 0
    6045992100 blue Taylor Elizabeth 3.99 1 1001
    6042981234 red Pitt Brad 9.98 0 0
    6044956859 dog Spears Brittany 0.0 0
    what if the last piece of data is change into vector??like...
    6045992222 black Brown James 0.0 [0]
    6045992100 blue Taylor Elizabeth 3.99 1 [1001]
    6042981234 red Pitt Brad 9.98 0 [1003,1004]
    6044956859 dog Spears Brittany 0.0 [0]
    how do I write my tokenizer so I can get the vector and save it into a
    vector....
    for now.. I have something like this...
    public Customer(String allData)throws NotFoundException{
      rentals = new Vector(5);
      StringTokenizer tokenizer = new StringTokenizer(allData);
      String token;
      if(tokenizer.hasMoreTokens()){
       phone = tokenizer.nextToken();
       password = tokenizer.nextToken();
       lastName = tokenizer.nextToken();
       firstName = tokenizer.nextToken();
       token = tokenizer.nextToken();
       balance = Double.parseDouble(token);
       token = tokenizer.nextToken();
       numVideos = Integer.parseInt(token);
       if(tokenizer.hasMoreTokens()){
        inputString = tokenizer.nextToken();
        temp = Integer.parseInt(inputString);
        rentals.addElement(new Integer(temp));

    You can pass StringTokenizer the characters to use during tokenization. You can include left and right square brackets in that list. Also you can make StringTokenizer send the separators back as part of the token list, if that helps your parsing.
    Or, you could use the same tokenizer, so that the final tokens could look like "[0]". Then you could use a second tokenizer to tokenize that token.

Maybe you are looking for

  • Opportunity Products report - Unspecified rows

    Hi All, I tried to create a report that shows all product lines per opportunity. However the report allways shows an unspecified at the Product Name Columns, even if there are products specified in the opportunity it adds an extra row with 'unspecifi

  • Can't see my 6602 or 6014 in MAX DAQmx devices.

    Hi I have a 6602 Counter Timer and a 6014 in my computer and I have recently installed version 8.5 of NIDAQmx together with version 4.2 of MAX.  Now I can't see either device in MAX.  I am correct in thinking these devices are not supported by NIDAQm

  • Count the number of seeds using labview - new to labview

    hello, I am new to labview and need to create a VI to count the number of seeds being dropped. I understand you can do this using labview. please can someone direct me to a tutorial or an example to do this? I use a camera - how do you connect up the

  • Fortefy Meeting Announcement

    For immediate release The officers of the Forté East Coast User Group, FortéFy, have announced finalization of plans for the next meeting. The meeting will be held in at the Harborside Hyatt Conference Center & Hotel in Boston Massachusetts on Monday

  • 5s,tpm,six sigm aprocess  in sap

    how to do 5s ,tpm like tagging and six sigma like DOE CAN WE DO IN SAP i hav etkaen some intiative to mould these things to sap but waitinf for some other experience or else i npost my one