Retrieve themes present in a map request or frame

Hi all,
I wanted to know if its possible to retrieve a list of the manually added jdbc themes that are present in a certain map request or map frame? If possible how do we achieve this.
Thanks in advance,
Avinash

Hi Avinash,
MapViewer configuration file (mapViewerConfig.xml located at MapViewer's WEB-INF/conf directory) has a section to set the logging level. Setting it to finest, you can get additional information in the log file. Look for this piece in the configuration file, uncomment it and set log_level to "finest".
    <logging log_level="finest" log_thread_name="false"
             log_time="true">
       <log_output name="System.err" />
       <log_output name="../log/mapviewer.log" />
    </logging>Save the file and start MapViewer again. Run your request, and get from the log file the information generated. You should have the map request and information about the processing of the request themes. Post this information.
I just executed a quick test, using the MVDEMO data, and I did get the correct result for a point theme. You can try it, if you have the MVDEMO data set installed. In this code you should get null for array of theme names. If you increase the size (for example 4.0 to 15.0, you may start to get THEME_DEMO_BIGCITIES in the response themes).
    mapViewer.setMapTitle("Test java");
    mapViewer.deleteAllThemes();
    mapViewer.setCenterAndSize(-98.159,35.936,4.0);
    mapViewer.addPredefinedTheme("THEME_DEMO_BIGCITIES");
    boolean response = mapViewer.run();
    String []respthemes = mapViewer.getMapResponseThemeNames();
    ...Joao

Similar Messages

  • Retrieve which themes present in map request

    Hi all,
    I wanted to know if its possible to retrieve a list of the manually added jdbc themes that are present in a certain map request or map frame? If possible how do we achieve this.
    Thanks in advance,
    Avinash

    Wonderful question. Best asked in the Spatial or Mapviewer forums.
    Spatial forum is one of the Database category (under More...) MapViewer forum is one of the Application Server category (under More...)
    Oracle forum categories are accessible from http://forums.oracle.com

  • I'm having some difficulty with Time Machine.  It appears to be deleting backups from random dates on my external hard drive.  I am not deleting them.  Are they hidden and how do I prevent this from happening?  Can I retrieve them?

    I'm having some difficulty with Time Machine.  It appears to be deleting backups from random dates on my external hard drive.  I am not deleting them.  Are they hidden and how do I prevent this from happening?  Can I retrieve them?

    ... I didn't know that Time Machine was more a last resort back up instead of main back up.
    Don't rely upon Time Machine to the exclusion of all else. I compliment Time Machine with a periodic "clone". TM is much better than nothing, but it's a safety net, not a hammock
    Here is my understanding of Time Machine's file deletion algorithm, distilled from Pondini's FAQ, Apple's KB articles, and my own observations.
    Time Machine deletes ("thins") files from the backup disk as follows:
    Hourly backups over 24 hours old, except the first backup of the day
    Daily backups over 30 days old, except the first backup of the week
    Older backups get deleted when Time Machine requires space and you deleted them from the source disk.
    Therefore, assuming TM has been performing at least one backup per day, backup files will remain available:
    at least thirty days, if they existed on your Mac for at least a day
    until you run out of space, if they existed on your Mac for at least a week
    In addition to the above, Time Machine always keeps one complete copy of your source disk so that the entire volume could be restored if necessary. Any files that remain on your source volume will be present on the TM backup, no matter how old they are.
    If you are using 250 GB of space on your source disk, its Time Machine backups are likely to require at least twice that much. A good estimate of the minimum required backup volume size would be about three times the size of your source disk - 1.5 TB in your case.
    A more thorough explanation would require Pondini since he has plumbed Time Machine's mysteries far more than I have.
    http://support.apple.com/kb/HT1427

  • Need an app or a script to find a list of files and retrieve them

    A few years ago at an old job I used an application that could search a hard drive for a list of images all in one shot. The names of the images were typed into a txt file. the text file was used as the search list and the application would report back if the images were found and it would retrieve them. Where can I get my hands on something like This or can it be built in Automator?

    'I used an application that could search a hard drive for a list of images all in one shot ... and it would retrieve them.' - desired result is too vague.
    'Where can I get my hands on something like this ... - perform a 'Google' or equivalent search.
    "... or can it be built in Automator?' - possibly yes.
    On your behalf the above request is re-written below.
    Can someone assist me in AppleScript scripting. I am trying to open a '.txt' file which lists on each line a file to search for, and if found - to open its containing folder. Is such a process also possible with 'Automator'? Thank you for any assistance.
    One possible AppleScript solution:
    -- Code starts here --
    set tFile to read (choose file) -- One was to obtain the file, to open.
    set tPars to paragraphs of tFile -- create a list of paragraphs of selected file.
    repeat with i in tPars -- Cycle through the list of paragraphs.
    with timeout of 0 seconds -- Prevent AppleScript timeout error.
    set tItems to paragraphs of (do shell script ("locate " & (quoted form of i))) -- Obtain list of found filename files.
    end timeout
    repeat with j in tItems -- Cycle through the list of found file.
    try
    set {oAStid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "/"} -- Extract container of file.
    set fPath to text items 1 through -2 of j
    set AppleScript's text item delimiters to "/"
    set fPath to fPath as string
    set AppleScript's text item delimiters to oAStid
    do shell script ("open " & fPath) -- Open container of file.
    end try
    end repeat
    end repeat
    -- Code ends here --
    If the above sample code is not exactly what you seek - then edit the code accordingly; and / or post requests with specific details.
    'Is such an action also possible with 'Automator'?' - please post an properly constructed request to the 'Tiger - Automator'
    forum.

  • HT5312 HOW CAN I SWITCH TO IRELAND STORE FROM U.S STORE? plus i forgot my security questions?how can i retrieve them?

    HOW CAN I SWITCH TO IRELAND STORE FROM U.S STORE? plus i forgot my security questions?how can i retrieve them?
    my temporary pin is 2791

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.
    Change iTunes Store Country on an iDevice
    1. Tap Settings;
    2. Tap iTunes & App Stores;
    3. Tap View Apple ID;
    4. Enter your user name and password;
    5. Tap Country/Region;
    6. Tap Change Country/Region;
    7. Select the region where you will be located;
    8. Tap Done.
    Also, see How to Change Your iTunes Store Account Location | eHow.com.

  • XML MAP REQUEST

    hi, I'm using map request on mapviewer this is my XML:
    <map_request
    title="CALI"
    basemap="BASE_CALI"
    datasource = "GEODBSID"
    width="640"
    height="480"
    bgcolor="#a6cae0"
    antialiase="true"
    format="PNG_STREAM">
    <center size="0.15">
    <geoFeature render_style="THEME_DEMO_STATES_LINE"
    radius="1600,4800"
    label="CENTRO"
    text_style="THEME_PRUEBA" >
    <geometricProperty typeName="center">
    <Point>
    <coordinates>-115.156486623806, 41.0518463048808</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    When i do click on submit I can see the center point, background (blue) and the tittle but no more, I want to know if I show with a simple XML one table anybody help me ?
    Message was edited by:
    karo

    Hi, its works whit this code
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title="MAPA CALI"
    datasource = "GEODBSID"
    width="504"
    height="594"
    bgcolor="#a6cae0"
    antialiase="false"
    format="PNG_STREAM">
    <themes>
    <theme name="TEMA_VIAL_CALI">
    <jdbc_query
    datasource="GEODBSID"
    jdbc_srid="8307"
    spatial_column="geom"
    render_style="MDSYS:C.RED"
    SELECT geom, CALI_ID from CALI</jdbc_query></theme>
    </themes>
    </map_request>
    be careful whit jdbc_srid, width and height
    Message was edited by:
    karo

  • Passing Parameters and Retrieving them

    Hi,
    I am trying to learn the JSC2 IDE.Would like to pass a parameter from all my JSP pages.I will have to retrieve this parameter and use it for further processing.I have two things here.
    1.How to pass parameters from say from a hyperlink.
    2.How to retrieve them and use it fro further processing.
    Hope to hear from you.
    Thanks.
    ramdsp.

    Hi,
    Go through the tutorials "Sharing Data Between Two
    Pages" and "Understanding Scope and Managed Beans".
    These are available at:
    http://developers.sun.com/prodtech/javatools/jscreator
    /learning/tutorials/index.jsp
    These should be of help to you
    Cheers
    GirishI do understand how to share data between two pages!
    I just don�t know (the best way) to keep request variables between multiple requests (without using session variables).
    Question: What would happen if I had one button on the last page of the tutorial "Sharing Data between Two Pages". I mean, that button would make a post on the same page and would try to get data from the request bean (which does not exist anymore).
    Best regards,
    Nuno Ferreira

  • I added an e-mail account to my iphone using microsoft exchange; all went fine. I then deleted a number of contracts from my phone that I did not want there and find they are now gone from my e-mail account on my computer.  Can I retrieve them?

    I added an e-mail account to my iphone using microsoft exchange; all went fine. I then deleted a number of contacts from my iphone that I did not want on my phone. when I went into my e-mail account on my computer the contacts were deleted from there also.  Will I be able to retrieve them?  If so, how?  Thank you.

    In the device sync pages select Photos on the top at the right.
    Un tick Sync Photos
    Apply

  • I recently uploaded 10.8, but I have a number of VALUABLE old files which I can no longer read because "power PC applications are no longer supported.  How can I retrieve them?

    I recently uploaded 10.8, but I have a number of VALUABLE old files which I can no longer read because "power PC applications are no longer supported.  How can I retrieve them"?

    Here is a post I assembled for another with a similar problem:
    Unfortunately you got caught up in the minor miracle of Rosetta.  Originally licensed by Apple when it migrated from the PowerPC CPU platform that it had used from the mid-1990's until the Intel CPU platform in 2006, Rosetta allowed Mac users to continue to use their library of PPC software transparently in emulation.
    However, Apple's license to continue to use this technology expired with new releases of OS X commencing with Lion (and now Mountain Lion).  While educational efforts have been made over the last 6 years, the fact is that Rosetta was SO successful that many users were caught unaware UNTIL they upgraded to Lion or Mountain Lion.
    Workarounds:
    1. If your Mac will support it, restore OS X Snow Leopard;
    2.  If your Mac will support it, partition your hard drive or add an external hard drive and install Snow Leopard into it and use the "dual-boot" method to choose between your PPC software or Lion/Mt. Lion;
    3. Upgrade to an Intel compatible versions of your software, or find alternatives that will open your data files;
    3.  Install Snow Leopard (with Rosetta) into Parallels:
                                  [click on image to enlarge]
    Full Snow Leopard installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439
    NOTE: STEP ONE of the instructions must currently be completed on a Snow Leopard or Lion Mac and the resulting modified Snow Leopard.cdr install file can then be moved over to your Mountain Lion Mac for completion of the remaining steps.
    NOTE 2:  Computer games with complex, 3D or fast motion graphics make not work well or at all in virtualization.

  • Problem in Legend Map Request

    Hi All,
    I am generating a map request to get a legend in PDF format as follows.
    <?xml version="1.0" standalone="yes"?><map_request
    datasource="MYDATASOURCE" format="PDF_STREAM" width="1188" height="840"
    antialiase="true" srid="8292"><legend bgstyle="fill:#FFFFE8;stroke:#708090;"
    position="SOUTH_EAST" profile="SMALL">
    <column>
    <entry text="LEGEND WITH PROBLEM" is_title="true" />
    <entry style="" text="up to 444.306.878" />
    <entry style="" text="204.299.813 a 444.306.878" />
    <entry style="" text="138.180.596 a 204.299.813" />
    <entry style="" text="118.706.493 a 138.180.596" />
    <entry style="" text="100.910.715 a 118.706.493" />
    <entry style="" text="74.385.591 a 100.910.715" />
    <entry style="" text="38.539.881 a 74.385.591" />
    <entry style="" text="down to 38.539.881" />
    </column>
    </legend>
    </map_request>
    The problem is that the large numbers exceeds the legend size. This just happens with the PDF format.
    I dont want to use the LARGE profile because gets too big.
    Is there any workaround to this problem?
    Thanks.
    Cleber

    Hi Cleber,
    which MapViewer version are you using? This may be related with the PDF graphics library version. This library has been modified to better handle the legend texts. I tested your request and it appears to be OK with the current library. You can send me (by email) a picture of your legend, and I will confirm if this has been fixed.
    Joao

  • My all voice memos are deleted,how to retrieve them

    my all voice memos are deleted after syncing it with itunes...how to retrieve them ??

    Thanks Bro. I have backup. and I did the same thing twice but only 26 contacts appear on the device. Now again yesterday after your suggestion again I restored the device but the result was same. Then I thought a new thing. I restored the device one more time but after restoring I didn't configure the icloud account. Surprisingly all my old contacts are there in the device but those 26 contacts are not there. Now I will tell you how this must have happened? I had 3gs earlier. that was stolen 3 months ago. I put the device in lost mode. I purchased new iphone4. I restored with itune. All my data came back. After that I saved these 26 new contacts to my device which also saved in icloud but when I tried to backup on my pc it was not happening. the messege coming device disconnected. 2 days back my stolen device came online. Lost mode was activated by icloud. But what I think in between that time the other fellow must have deleted the phone contacts. And as per icloud also deleted the same. Only the 26 contacts which I saved in these 3 months remained in icloud. Now bro can u help me out? What I should do? I have 26 contacts in icloud and < 500 in my device. I don't understand when all other Co's mobile you can import contacts from any backup file iphone can not. This is the DRAWBACK OF IPHONE.

  • IPad 2 deleted all of my contacts, when I run the Dr. Fone software it shows they are still on my iPad 2 but it costs 60-70 dollars. Is there another way to retrieve them? They were not backed up on Itunes like I thought they were. Please help!!

    When I run the Dr. Fone software it shows they are still on my iPad 2 but it costs 60-70 dollars. Is there another way to retrieve them? They were not backed up on Itunes like I thought they were. Please help!!

    Recover software as you have described is pretty much your only option - keep in mind that if wait, some of the currently recoverable data may well be over-written and lost.

  • I had upgraded to firefox 3.0 years ago and lost my firefox 2.0 bookmarks. How do I retrieve them? I keep getting only one bookmark from the html file.

    Years back I had installed Firefox 3.0 (at launch, so not beta) into a separate program folder. After installation, I expected to have my bookmarks saved. Recently I found out my bookmarks were in application data and I found out I had one profile. That meant that my firefox 2.0 bookmarks were replaced.
    I read up on the FAQs and it stated that bookmark backups only save the previous 5 days or so, so I don't think they are usable though I have them saved. The bookmarks.html file in my profile shows only one bookmark after importing it into firefox 3.5 and firefox 2.0 (downgraded back to check it out), google chrome, and internet explorer. I still have the bookmarks.bak and bookmarks.html.bak files as well.
    A little backstory before I got up to this point because it's a bit convoluted because I thought I could retrieve them like IE favorites which were easy:
    1) Switched to Firefox 2.0 from Internet Explorer and got several hundred bookmarks.
    2) Got HyperBookmarks add-on which bugged up and replaced my previous bookmarks folder though it stated in FAQs that my original Firefox 2.0 bookmarks were in a separate folder so I didn't worry about it.
    3) Upgraded to Firefox 3.0 and it replaced all my bookmarks with nothing in bookmarks list. I thought it was saved because I installed Firefox 3.0 in a separate folder.
    4) Retrieved 3.0 Bookmarks and Archived them, but wasn't able to find Firefox 2.0 Bookmarks (original) nor the HyperBK version, except in HyperBk Backups folder.

    In the "Edit this Bookmark" window, use the 2nd drop-down button, that is to the right of the "Folder", to open a larger window that will allow more folder to appear. See the sloppy red arrow on the screenshot below.

  • After upgrading to iOS 5, I lost my contacts, calendar entries, and Notes on my iPhone 3GS (3 years old). How do I retrieve them? My last backup/sync to iTunes acct was Sept 18 but yesterday's backup bombed due to lack of space on my C: drive.

    Yikes! After upgrading my iPhone 3GS to iOS 5, I lost my Contacts, calendar entries, and Notes (100+) on my iPhone (3 years old). How do I retrieve them? My last backup/sync to iTunes acct was Sept 18 but yesterday's backup bombed due to lack of space on my C: drive.

    This happened to me too but it was really all there.  Go to your calendar, click on calendar in the upper left hand corner, click on show all calendars, click done in the right upper corner.  Everything should show up!!!
    I was super thrilled.  Hope this works for you!!

  • I just got the iPhone 5 and took it on a trip and took a bunch of photos on it. I just came home and hooked it up to my Mac for the first time and hit restore. All of my trip pictures disappeared. Is there any way I can retrieve them?

    I just got the iPhone 5 and took it on a trip and took a bunch of photos on it. I just came home and hooked it up to my Mac for the first time and hit restore. All of my trip pictures disappeared. Is there any way I can retrieve them?

    Did you by chance have photo stream turned on? If so then they might be there. When you restored your phone it deleted everything and they will be unretreivable from your computer.

Maybe you are looking for

  • How to manually force sync messages after an iTunes restore?

    I backed up my iPhone 4 before getting rid of the phone in anticipation of the iPhone 5. (circumstances prevented me from keeping the iPhone 4 until after I got the 5). In the meantime, used iMessage on an older iPod Touch (upgraded to iOS 6) and my

  • Getting wrong information when trying to access one particular websitewebsite access

    I have a problem when carrying out a search on ONE particular website. I have contacted the company (John Lewis plc) who inform me that they do not have any roblems with their site . This problem started a month ago when I kept getting a message sayi

  • Need a procedure to check reserve words are in uppercase or not?

    Hi All, i am using oracle 11g, my question is  i wanted to create procudure and i  am passing a sql query as input parameter  and there i am using lots of oracle reserve keywords. but i need to check if  those reserve keywords are  not in uppercase i

  • Bt on demand

    I keep on recieving the error message v04 when trying to watch bt on demand , at the moment following test i have just done the signal seems ok.

  • Skype and Blue Yeti

    I'm trying to help a friend record Skype calls using a Blue Yeti mic. Windows 7 and Adobe Audition 5.5. He wants to record both the mic signal and the Skype audio at the same time. I tried selecting 'stereo mix' as the input device, but audition keep