Convert coodinates to query_geometry for SDO_RELATE operator

Expert,
How to convert the coordinates “-109.059, 36.99241 -102.0411, 41.00295” in the following WFS request so it can be used as query_geometry to run as a raw SQL statement? Your time and expertise are greatly appreciated.
<?xml version="1.0" standalone="yes"?>
<wfs:GetFeature
service="WFS"
version="1.0.0"
xmlns:gml="http://www.opengis.net/gml"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:scottns="http://www.myserver.com/scott">
<wfs:Query typeName="scottns:UsCities">
<ogc:Filter>
<ogc:Within>
<ogc:PropertyName>scottns:LOCATION</ogc:PropertyName>
<gml:Box srsName="SDO:8307">
<gml:coordinates>
-109.059, 36.99241 -102.0411, 41.00295
</gml:coordinates>
</gml:Box>
</ogc:Within>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
SELECT u.*
from SCOTT.US_CITIES u
where SDO_RELATE(u.location,
'mask=inside+coveredby+equal') = 'TRUE'

ch****,
-- "ASSUMING coordinates in WFS were listed in Y,X order"
SELECT u.*
from SCOTT.US_CITIES u
where SDO_RELATE(
    u.location,
    SDO_GEOMETRY('POLYGON (36.99241 -109.059, 41.00295 -102.0411)', 8307)
    'mask=inside+coveredby+equal') = 'TRUE'Regards,
Noel

Similar Messages

  • InDesign "Save As" dialog box for every operation in INDB book file; updating page numbers, etc.

    So I haven't used INDB files in awhile in InDesign, and today was the first time I attempted to adjust an old INDB (created originally with CS5).  For every operation of adjusting the book file, such as updating page/section number or adding/removing an INDD file I get a Save As dialog box for each constiuent INDD file.  This is quite annoying since the book has lots of INDDs, and I have to click through the tedious save as with each.  I previously worked with INDBs in CS5, and never encountered this, there was no need to save each INDD in the book just to update the page numbers.  I tried creating a new INDB in CS5.5 thinking that maybe it was because I was working from a file created with an older version of InDesign.  Does anyone know if there is a way to suppress the Save As dialog?  Another thing I noticed that is supremely frustrating is that this new build of InDesign doesn't default to saving the file in its original location, and I have unwittingly ended up saving files in other places, only to later realize it.  I am using InDesign CS5.5 Ver. 7.5.2 on Mac OSX 10.7.3  Any help is greatly appreciated. 

    It will only happen once (and frankly, what you are doing is a very bad idea).
    When you open the old book in CS5, you are converting to the new format. All of the legacy files also need to be converted, even if added to a new book in CS5.5, hence the Save As since ID will not overwrite the old versions until you tell it to (and that's the bad idea). I strongly recommend (though it's too late for any books you've already updated and overwritten) that you either continue to edit in the old version, or that you take the time to open each file in the original version if it's older than CS5, then export to interchange format (.inx or .idml, depending on version), open those files in CS5.5, save with new names so you don't overwrite anything, then add to a new book and proceed.
    One of the reasons I recommend this seemingly time-consuming approach is that there are too many reports (another one yesterday) of some sort of problem that pops up late in the editing cycle when converting legacy files to CS5/5.5 by opening them directly and saving. This is a belt and suspenders insurance approach, and is far less labor intensive than starting over, which might end up being your other option down the road if something goes wrong.

  • Setting up use of a DLL for Multithreading operations.

    Hi all,
    I have been working the past few weeks converting a slow part of our labview code into C++ and hoping that from there I can use CUDA to further optimize and speed up the process.
    I just finished writing everything in C++, and the program works well, but it is already much slower than the old code. This is due to the fact that the old code could multithreading and use up the entire processing power of my processor, while my current code does not seem to want to do this.
    I know that there are many settings from labview to visual studios to even my code itself to allow for mutlithreaded operations, and allow them to happen safely.
    I was wondering if anyone could help me identify these settings so I can move forward with my optimization.
    I will tell you what I have looked at and done so far:
    First I made sure that my program takes all the Array Handles and Numeric values, and assigns them to local variables in my program. I believe this makes my program reentrant safe.
    Then in VC++ 2008, I added some settings to my project settings: Under C++ Optimization, I have Maximize Speed(/O2), enabled intrinsic functions, and favored fast code.
    In code generation, I have my runtime library as Multithreaded debug dll.
    Then in labview, the DLL is nested 2 SubVIs deep. The main VI has no special settings that I am aware of, but the first SubVI is set to time critical priority, and reentrant execution, while the final subVI which holds my DLL is set to subroutine, and reentrant execution.
    FInally my DLL has run in any thread selected, and debugging turned off.
    Am I doing this correctly? Are there parts missing in my program that I need to write to allow for this sort of functionality?
    Thanks!

    Deturbanator wrote:
    Thank you for your reply.
    I assign parameters to local variables for exactly the problem you described, shared resources. For example, this program in particular works on a video file, and completes a process on a frame by frame image. I assume that if I do not copy the values to a local variable, the array handle for the image will change between different instances of the program, and this might be bad if we are at first analyzing frame 3, and then suddenly, it changes to frame 5.
    Is this not something I should be concerned with, does labview take care of this already? It seems there is a lot of magic happening behind the walls and options of labview
    And I agree, Labview is quite good, and I did not expect a big boost from converting my code to C++. However I see no reason it should be any slower than the existing labview code, if most of the functionality is just rewritten in C++. The real reason for the code conversion, was to eventually write certain parts in CUDA, which I felt would be easiest once the code is in C++.
    I guess my real question is what are the "hoops and rings" i need to jump through to match the labview efficiency?
    thank again!
    It's still not clear to me what you expect by the use of local varaibles in terms of parallel execution. Or maybe you are not talking about function local variables but module local variables outside the function???? If that is the case, then you have probably totally misunderstood the fundamentals of multithreading safe code.
    When LabVIEW calls a function through the Call Library Node, it will make sure that all the parameters passed to that function stay valid for the duration of the call. Once the function returns to the LabVIEW diagram LabVIEW considers it safe to do with the buffers as it likes, including moving them in memory, resizing them, reusing them for other stuff, or simply deallocating them. So saving such a parameter to a function local variable makes no difference, since the function local variable will exist just as long as the parameter is guranteed to be valid. And saving it to a module local variable is either creating a pretty sure race condition or even crash, if you just save the reference, since the buffer the reference is pointing to will not be guranteed to stay valid after the function returns. And if you save it to a local variable by copying its contents it will be safe, but a performance problem, as you create a copy of the data.
    So what are you really doing here? Some example code could certainly help to understand what you are doing, as I have a hunch that what you call a local variable is in fact more a global variable although you may declare it as static and make it in that way local to your code module (but still global to all functions in that module).
    Generally if you want your C code to process data asynchronously however (meaning working on it after the function returns control to LabVIEW, then you can't avoid to copy the buffers.
    As to the hoops and rings to jump through there is no simple explanation. In fact there have been entire books written about multithreading, and more importantly correct multiprocessor programming.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • LAYER_GTYPE parameter in SDO_RELATE operator

    Hello, Dan :)
    In documentation about Spatial i found that the SDO_POINT member of SDO_GEOMETRY is used to optimize different geometric operations over the geometry. From other side the additional parameter LAYER_GTYPE=POINT is required in order SDO_RELATE operator works more efficiently on point data. Is it necessary to define LAYER_GTYPE=POINT inside SDO_RELATE when every geometry defined in the column has defined SDO_POINT and NULLs for SDO_ELEM_INFO_ARRAY and SDO_ORDINATES or i can ommit this parameter and still get the optimized work of SDO_RELATE ?
    I use 8.1.6 and planning to upgrade to 8.1.7 ASAP.
    Thank you.
    I middletime use SDO_RELATE without this parameter to achieve universal use of the procedure.

    Hi,
    You should use layer_gtype=point in either case, i.e. whenever the layer contains ONLY point data then layer_gtype=point will help.
    Whether the point data is stored in the elem_info_array and ordinate array or in the point_type is not important when deciding when to use layer_gtype=point.

  • External party work done for prd operation inside the company premises

    Hi,
    I have a scenario wherein, the production order has the operations 010,020 & 030.
    Now for the operation 020 , I want the work to be done by an external party, but the work has to be done inside the premises of the company.
    how to incorporate this scenario in production order?
    Best Regards
    Vijay.

    Dear Vijay,
    When you are creating a production order at any given time due to capacity constraints etc if you want to partially give some operations for external party..go to production order operation overview and change the control key to PP02 ( for external operations) for the respective operation 020, then select the operation and go to operation details and then click on external processing tab select sub contacting and give all the purchase related information like purchase org, purchage group, price etc.
    Now once you release the production order system automactically creates a purchase requsition. You can see that in operation details. Now convert this Sub contract PR to PO and issue materials against the PO and do GR against the PO. So that PO will have ur production order number as reference.
    Just try and come back.
    Please dont raise multiple threads on same topic.
    Ramagiri

  • IPod Classic 80GB - "iTunes library cannot be saved you do not have enough access privileges for this operation" It says it has synced but it hasn't. Help please I am not very tech minded

    iPod Classic 80GB. Message reads ' iTunes library cannot be saved you do not have enough access privileges for this operation'.  It says it has synced but it hasn't. Please help, I am not very tech minded.

    See this article about troubleshooting the error message regarding access privelages.  It may be preventing your iTunes library from being able to save/retain music you have recently imported to it, which may explain why no new content is being added to your device.
    Trouble adding music to iTunes library or importing audio CD
    B-rock

  • What does this message mean, "The iPad cannot be synced.  You do not have enough access privileges for this operation?"

    I need some help syncing my iPad.  I get a message about not having enough privileges for this operation.  Any help would be appreciated.
    Thanks,

    It means you are using windows and the user agent stuff is messed up.
    Try looking at permissions on the drive iTunes library is on.

  • Problem in Wfetch client for Update operations

    Hi,
    I am using the Wfetch client for the 'Update' operation of an RFC Gateway consumption model . But it seems to always give this error : 'HTTP/1.0 400 Bad Request\r\n'
    I have passed only those fields that have been exposed in the GW Data model. Is there anything else that needs to be taken care of ?
    The read and query operations are executed successfully though.
    Thanks,
    Shubhada

    Hi Shubhada,
    Just recheck two things in Wfetch with below details.
    1. Check the path. It should be below formate for update operation
    Verb : Put
    Path:  /sap/opu/sdata/sap/<CONSUM_MODEL>/<data_model>Collection(value='  ',scheme_id='<DATA_MODEL>',scheme_agency_id='  ')?sap-client=< >&$format=xml
    Above formate you can take from Read operation which you already executed successfully.
    2. Check the XML formate on right handside in Wfetch it should be header & body with below details.
    Xml Formate:
    x-requested-with: XMLHttpRequest\r\n
    \r\n
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>\r\n
      <entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">\r\n
          <content type="application/xml">\r\n
            <m:properties>\r\n
       <d:value> </d:value> \r\n
      <d:scheme_id> </d:scheme_id> \r\n
      <d:scheme_agency_id> </d:scheme_agency_id> \r\n
    Just copy from read operation Read operation which you already executed successfully. And update the fields what you required.
    </m:properties>\r\n
          </content>\r\n
    </entry>\r\n
    Hope you this will help above information.
    Thanks & Regards,
    Mahesh Devershetty

  • HT1386 I get an error message when I try to sync my iPod touch - "you do not have enough access privileges for this operation"

    I recently installed a new hard drive on my PC, downloaded iTunes, updated the software on my iPod touch and now I get this error message when I try to sync:  "you do not have enough access privileges for this operation."  It never did this before, whether it's the upgrade in software or something in iTunes, but it's very frustrating, since I'd like to add more things to my iPod.

    See:
    iPhone - not enough access privileges: Apple Support Communities

  • How do i resolve my itunes from saying " The itunes application could not be opened. You do not have enough access privileges for this operation."

    Everytime i click to go to my itunes, the message "The Itunes application could not be opened. You do not have enough access privileges for this operation." pops up. I have tried my best to fix it by adding another account to my computer and setting that one as the administator and mine as the regular user. When i did that the itunes worked on both, but when i changed my account back to administator and the other account to the regular user my account didnt work but the other one did. I also tried to uninstall and reinstall itunes. This message popped up when i tried to update the itunes to the newest one. And still it wont go away. Can someone help me please. Thanks!

    Are you logged in with administrative rights? Did you check your security software settings? Troubleshooting security software issues

  • Single concurrent program for multiple operating units

    HI
    I am working on XML/BI publisher to generate AR invoice reports.
    We have single rdf report using which rtf templates are generated.
    There are 10 operating units (10 ORG_ID's) and 10 rtf templates, one for each operating unit. There are 4 different responsibilities for each ORG_ID
    Eg: ORG_ID's = 11, 12, 13, 14..........etc
    Eg: Responsibility = xx, yy, zz...........etc
    I want to register a single concurrent program. When a user submits a request from "XX" responsibility, then the template associated with that org_id should be generated. Whichever responsibility the user is accessing from, that particular template must be shown as output.
    How can i register one concurrent program for multiple operating units.
    Thanks!
    Edited by: 994628 on Mar 18, 2013 4:39 PM
    Edited by: 994628 on Mar 18, 2013 4:42 PM

    >
    There are 10 operating units (10 ORG_ID's) and 10 rtf templates, one for each operating unit. There are 4 different responsibilities for each ORG_ID
    Eg: ORG_ID's = 11, 12, 13, 14..........etc
    Eg: Responsibility = xx, yy, zz...........etc
    I want to register a single concurrent program. When a user submits a request from "XX" responsibility, then the template associated with that org_id should be generated. Whichever responsibility the user is accessing from, that particular template must be shown as output.
    >
    interesting case for 10 OE set 10 template
    what is purpose? for each OE different requirements for layout?
    BTW
    if each Responsibility associated with one org_id then
    - you can get current org_id when you run concurrent program
    - create main template (will be #11) with condition like
    <?choose:?>
    <?when: ORG_ID=11?>
    <?import:xdo://FND.XX11_SUB.en.00/?>
    <?call:TEMPLATE11?>
    <?end when?>
    <?when: ORG_ID=12?>
    <?import:xdo://FND.XX12_SUB.en.00/?>
    <?call:TEMPLATE12?>
    <?end when?>
    <?otherwise:?>
    <?import:xdo://FND.XX21_SUB.en.00/?>
    <?call:TEMPLATE21?>
    <?end otherwise?>
    <?end choose?>so based on org_id will be import of needed subtemplate
    - re-register your "10 rtf templates" as subtemplates
    another way is substitution of template for concurrent then it running
    in before_report trigger set needed template
    l_conc_request_id := fnd_global.conc_request_id;
        if ORG_ID = 11 then
          UPDATE fnd_conc_pp_actions t
             SET t.argument2 = 'XX11'
           where t.concurrent_request_id = l_conc_request_id
             and t.action_type = 6;
      if ORG_ID = 21 then
          UPDATE fnd_conc_pp_actions t
             SET t.argument2 = 'XX21'
           where t.concurrent_request_id = l_conc_request_id
             and t.action_type = 6;

  • I can't synchronize my iPod's with my iTunes software (Windows Vista Home Premium) due to problems with the access authorization / rights for this operation

    Hi there,
    I'd like to ask you something:
    I'm trying to synchronize all my iPod's (I have as many as 4 iPods: 2 iPod touch a 8 GB each and 2 iPod classic a 160 GB each) with my iTunes software (Version 11.3.1 which is installed on a Windows PC (Windows Vista Home Premium)). Unfortunately, the iTunes software refuses to run the command "synchronize with the iPod connected" regarding each and every iPod I have. iTunes just declares:
    Synchronizing is impossible because I wouldn't hold the access authorization / rights for this operation.
    I uploaded the songs at issue to my iTunes folder from CD's (all songs are in AAC format now).
    What is this access authorization, why was something like that invented and what can I do to get it?
    How do I have to proceed in detail?
    What would it cost?
    I am brand new here and have never ever made a post in any support community anywhere in the world in my life. Well, and I am not excessively knowledgeable about the particular computer or mac language but I know the very basics or can find out about them.
    Anyways - can you help me please?
    If you can't help me, who can do so?
    It would be nice if you could answer me as soon as possible!
    Thank you guys
    Prying Pedro

    Yes, others have experienced the problem, a simple search of the forums would have revealed that and the simple solution.
    Termporarily disable any security software on the computer.

  • I have a new PC and I am getting the message "The iTunes Library File cannot be saved.  You do not have enough access privileges for this operation."  I am the only one using this PC and I have Windows 7 Pro and have an administrator account.  Help

    Can anyone help me with this problem.  ITunes message," The iTunes library file cannot be saved.  You do not have enough access privileges for this operation."   I have administrator account and transferred files from old PC.  I downloaded new iTunes program on new PC.  I synced my iPhone to new PC, no problem.  I deleted old account after indicating shared files to new admin account.  Can anyone help?

    A belated reply, as the problems itunes has have discouraged me from using it much. If you uncheck the "read only" box, it doesn't stay that way! Next time you use it, the box comes up checked.
    I'm still having that problem, even when I open iTunes as administrator.
    I've yet to see the answer to this problem. I use itunes mostly to download audiobooks, and I'm ready to download more, and want to save them!

  • I keep getting dialog box saying " The itunes Library file cannot be saved. You do not have enough access privileges for this operation"  I am the only user on this computer and only one library! how do i change access privileges please?

    hi I keep getting the dialog box " The iTunes Library file cannot be saved. You do not have enough access privileges for this operation"
    How do i  amend this  as i only have one account and one library. I cannot save new work or delete duplicate files

    A belated reply, as the problems itunes has have discouraged me from using it much. If you uncheck the "read only" box, it doesn't stay that way! Next time you use it, the box comes up checked.
    I'm still having that problem, even when I open iTunes as administrator.
    I've yet to see the answer to this problem. I use itunes mostly to download audiobooks, and I'm ready to download more, and want to save them!

  • I have 13 dollars left on an apple store gift card, how can I convert this into money for my iTunes account?

    I have 13 dollars left on an apple store gift card, how can I convert this into money for my iTunes account?

    You can't.

Maybe you are looking for