Coord system MDSYS user-defined. SDO_CS. TURN the wrong values
I defined a local coordinate system:
insert into mdsys.cs_srs
(CS_NAME,
SRID, AUTH_SRID,
AUTH_NAME,
WKTEXT,
CS_BOUNDS
)
values(
'Austria GK MGI, M34 NOE4',
1413414, 1413414,
'ÖBB-TKOM-Services + TU-Wien',
'PROJCS["Austria GK MGI, M34",GEOGCS ["AustriaBEV", ' ||
'DATUM ["Austria BEV", ' ||
'SPHEROID["Bessel 1841", 6377397.155, 299.1528128], 578.3441, -89.1541, 475.5800, 0.30334, 1.56720, 8.53018, 6.2090],PRIMEM["Greenwich",0], UNIT["Decimal Degree", 0.01745329251994328]], ' ||
'PROJECTION["Transverse Mercator"],PARAMETER["Central_Meridian",16.33333333333333],' ||
'PARAMETER["Scale_Factor",1],PARAMETER["False_Easting",0],' ||
'PARAMETER["Latitude_Of_Origin",0],PARAMETER["False_Northing",-5000000],UNIT["Meter",1]]'
,null
);
but when I user MDSYS. SDO_CS. I TURN the bad values becam:SQL > select MDSYS. SDO_CS. TRANSFORM (SDO_GEOMETRY (2003, 1413414, NULL,))
2 MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,3),
3 MDSYS. (SDO_ORDINATE_ARRAY (16000,380250, 16250, 380500)), 8307) twice;
MDSYS. SDO_CS. TRANSFORM (SDO_GEOMETRY (2003,1413414, NULL, MDSYS.) () SDO_ELEM_INFO_ARRAY
--------------------------------------------------------------------------------
SQL > select MDSYS. SDO_CS. TRANSFORM (SDO_GEOMETRY (2003, 1413414, NULL,))
2 MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,1),
3 MDSYS. (SDO_ORDINATE_ARRAY (16000,380250, 16250, 380500)), 8307) twice;
MDSYS. SDO_CS. TRANSFORM (SDO_GEOMETRY (2003,1413414, NULL, MDSYS.) () SDO_ELEM_INFO_ARRAY
--------------------------------------------------------------------------------
SDO_GEOMETRY (2003, 8307, NULL, SDO_ELEM_INFO_ARRAY (1, 1003, 1), SDO_ORDINATE_ARR)
AY (48,5601784, 16,552269, 16,5488726, 48,5624203))
SQL > select MDSYS. SDO_CS. TRANSFORM (SDO_GEOMETRY (2003, 8307, NULL,))
2 MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,3),
3 MDSYS. (SDO_ORDINATE_ARRAY (16.5488725791096,48.5601784367264, 16.5522690379415, 48.5624202807292)), 1413414) twice;
MDSYS. SDO_CS. TRANSFORM (SDO_GEOMETRY (2003,8307, NULL, MDSYS.) SDO_ELEM_INFO_ARRAY (1,1
--------------------------------------------------------------------------------
SDO_GEOMETRY (2003, 1413414, NULL, SDO_ELEM_INFO_ARRAY (1, 1003, 1), SDO_ORDINATE_)
TABLE (15999,9816, 380250,009, 16 066 364, 380250,194, 16132,7464, 380250,38, 1619
9,1289, 380250,567, 16250,6874, 380250,713, 16250,4043, 380350,719, 16250,1211.
380450,724, 16249,9816, 380500,009, 16183,6021, 380499,821, 16117,2226, 380499,6
34, 16050,8431, 380499,448, 15999,2869, 380499,305, 15999,5656, 380399,299, 1599
9,8443, 380299,293, 15999,9816, 380250,009))
We use Oracle 11.0.7
Best regards
NAO
On my 11.1.0.6, this should work fine with your query. In 11.2, original definition works you, as well.
How it works for you?
Tags: Database
Similar Questions
-
User-defined function removes the expression hooks
Trying to convert this column in a user function expression, however when I apply the function to the user hooks literally disappear.
1 REGEXP_REPLACE (SRC_IO_PHONES_A.PHONE, ' ({: digit:{3})\.(:digit:{3})\.(:digit:{4})' 1 (\1)-\2-\3'),)
2 REGEXP_REPLACE (SRC_IO_PHONES_A.PHONE, ' ([[: digit:]] {3})------.) () [[: digit:]] {3}). ([[: digit:]] {4})' 1 (\1)-\2-\3')
These lines come from the same mapping. One implements the user-defined function and the second line is with I plug the code into the target Expression field.
Any thoughts on why this is?
Thank you
So I thought to it thanks to a post of @oraclebase. Another friend of mine has indicated that user in ODI functions develops a sort of pseudo-code and it is not really passing commands to the database. Anyway, my research turned to substitute for the construction of all [: digit:]. This resulted in me find the above post where \d = [0-9]. By replacing all the scoring by \d hooks, the function worked.
-
User Defined functions in the Mapper
I have user-defined functions that work in BPEL but I can't make them work in the Mapper. They appear when expected for jDeveloper but throw "function not found" errors
Can someone look at my config files and see if the error comes out? Thank you bunches!
BPEL file:
" < soa-xpath-functions xmlns =" http://xmlns.Oracle.com/SOA/config/XPath "" "
' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "
version = "11.1.1.
resourceBundle = "oracle.tip.tools.ide.common.resource.IDEMessageBundle"
>
< name of the function = "f17:editCaseNumber" >
com.F17.CustomFunction.editCaseNumber < className > < / className >
< return type = "tree" / >
< params >
< param name = "stringToFormat" type = "string" / >
< param name = "order" type = "string" / >
< / params >
number of valid cases and formats < desc > < / desc >
< detail >
<! [CDATA [this is a custom function.] If you use it, you must include the
Following namespace declaration in your BPEL file.
< br / > < br / >
' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "
< br / > < br / >
USE: f17:editCaseNumber(string,string) < br / >
Channel 1 is the data < br / >
Channel 2 is the command. Valid commands are: < br / >
1 = number of control check and come back as nnnnnnnnnn < br / >
2 = number of control check and come back as nnn-nnnnnnn < br / >
3 = Append check digit and return under nnnnnnnnnn < br / >
4 = Append check digit and return under nnn-nnnnnnn
< br / > < br / >
Returns XML document fragment: < br / >
Import of f17userDefinedFusnctions.xsd space variable prototype. < br / >
See documentation for more details.]] >
< / details >
< / feature >
< name of the function = "f17:compressFile" >
com.F17.CustomFunction.compressFile < className > < / className >
< return type = "tree" / >
< params >
< param name = "stringToFormat" type = "string" / >
< / params >
< desc > compress long strings by DB storage < / desc >
< detail >
<! [CDATA [this is a custom function.] If you use it, you must include the
Following namespace declaration in your BPEL file.
< br / > < br / >
' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "
< br / > < br / >
USE: f17:compresFile (string)
< br / > < br / >
Returns XML document fragment: < br / >
See documentation for more details.]] >
< / details >
< / feature >
< name of the function = "f17:sortList" >
com.F17.CustomFunction.sortList < className > < / className >
< return type = "tree" / >
< params >
< param name = "listIn" type = "string" / >
< / params >
lists of kinds of < desc > < / desc >
< detail >
<! [CDATA [this is a custom function.] If you use it, you must include the
Following namespace declaration in your BPEL file.
< br / > < br / >
' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "
< br / > < br / >
USE: f17:sortList (String) < br / >
Build the string as: & lt; list & gt; & lt; point & gt; [data] & lt; / point & gt;... & lt; / list & gt; < br / >
Returns XML document fragment: < br / >
Import of f17userDefinedFusnctions.xsd space variable prototype. < br / >
See documentation for more details.]] >
< / details >
< / feature >
< name of the function = "f17:replaceString" >
com.F17.CustomFunction.replaceString < className > < / className >
< return type = "string" / >
< params >
< param name = "StringToFix" type = "string" / >
< param name = "RegX" type = "string" / >
< param name = "replaceString" type = "string" / >
< param name = "mode" type = "string" / >
< / params >
Sets < desc > replaceFirst and replaceAll functions java < / desc >
< detail >
<! [CDATA [this is a custom function.] If you use it, you must include the
Following namespace declaration in your BPEL file.
< br / > < br / >
' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "
< br / > < br / >
USE: f17:replaceString(String,String,String,String) < br / >
Chain change, regular expression, mode [optional] replace the string - 1 = all, 2 = first by default all the < br / >
See documentation for more details.]] >
< / details >
< / feature >
< / soa-xpath-functions >
file Mapper:
< soa-xpath-functions
" xmlns =" http://xmlns.Oracle.com/SOA/config/XPath "" "
' xmlns:repl = ' http://www.Oracle.com/xsl/transform/Java/COM.F17.CustomFunction.replaceString "" "
' xmlns:comp = ' http://www.Oracle.com/xsl/transform/Java/COM.F17.CustomFunction.compressFile "" "
version = "11.1.1.
resourceBundle = "oracle.tip.tools.ide.common.resource.IDEMessageBundle"
>
< name of the function = ' model: compressFile ">
com.F17.CustomFunction.compressFile < className > < / className >
< return type = "tree" / >
< params >
< param name = "stringToFormat" type = "string" / >
< / params >
< desc > compress long strings by DB storage < / desc >
< detail >
<! [CDATA [this is a custom function.] If you use it, you must include the
Following namespace declaration in your BPEL file.
< br / > < br / >
' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "
< br / > < br / >
USE: f17:compresFile (string)
< br / > < br / >
Returns XML document fragment: < br / >
See documentation for more details.]] >
< / details >
< / feature >
< name of the function = "repl:replaceString" >
com.F17.CustomFunction.replaceString < className > < / className >
< return type = "string" / >
< params >
< param name = "StringToFix" type = "string" / >
< param name = "RegX" type = "string" / >
< param name = "replaceString" type = "string" / >
< param name = "mode" type = "string" / >
< / params >
Sets < desc > replaceFirst and replaceAll functions java < / desc >
< detail >
<! [CDATA [this is a custom function.] If you use it, you must include the
Following namespace declaration in your BPEL file.
< br / > < br / >
' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "
< br / > < br / >
USE: f17:replaceString(String,String,String,String) < br / >
Chain change, regular expression, mode [optional] replace the string - 1 = all, 2 = first by default all the < br / >
See documentation for more details.]] >
< / details >
< / feature >
< / soa-xpath-functions >
None of the answers was * exactly * correct, but they gave me enough information to solve the problem.
To implement what I have to code the functions a bit differently.
- BPEL functions are all the IXpathFunction extension classes.
- Mapper functions are not.
- BPEL functions are each separate classes.
- A single class with a method for each desired function mapper functions.
- BPEL classes outcrop in the config file ext-bpel-xpath-functions-config. XML
- The Mapper class is exposed in the config file ext-Mapper-xpath-functions - config.xml
A BPEL class looks like:
public class editCaseNumber implements IXPathFunction { public Object call(IXPathContext context, List args) throws XPathFunctionException { return docOut; } }
A class to map looks like:
public class mapperFunctions { public static String replaceString(String sIn,String sMat,String sRep,String mode){ return finalString; } public static XMLDocumentFragment compressFile(String indoc){ return docOut; } }
(I deleted the code of these to avoid confusion.)
My ext-Mapper-xpath-functions file - config.xml looks like:
soa-xpath-functions xmlns="http://xmlns.oracle.com/soa/config/xpath" xmlns:map="http://www.oracle.com/XSL/Transform/java/com.f17.customfunction.mapperFunctions" version="11.1.1" resourceBundle="oracle.tip.tools.ide.common.resource.IDEMessageBundle" >
com.f17.customfunction.mapperFunctions.compressFile Compresses large strings for DB storage
USE: map:compresFile(string)
Returns XML document fragment containing HEX binary string:
<compressedFile$gt;[outPut]</compressedFile> See documentation for details.]]>com.f17.customfunction.mapperFunctions.replaceString Exposes replaceFirst and replaceAll java functions
USE: map:replaceString(String,String,String,String)
String to edit,
regular expression,
replacement string mode
1 = all
2 = first occurance
See documentation for details.]]> -
any user defined function in the rule set by the user
Hello
I wonder if I can use a function defined by the user in a rule set by the user in oracle sem... I've seen examples of user defined function the used in sparql query filter clause in this guide to dev... However, I don't know if I can define a function in oracle database SEM. and use it in the body rule or the head. For example, I want to define a function of the length that allow to calculate the difference between two dates. So, I want to set a rule as follows: event1: d1 and event1 has_start_date: has_end_date d2 and duration (24, d1, d2) then event1:date_satisfiable 'yes '. Oracle supports this type of rule? Thank you very much.
Hong
Salvation Hong,
User-defined in 12 c inference can be a good choice for your condition. Please see the following document.
Defined by the user and querying inference
Thank you
Zhe Wu
-
User Defined LOV to the table of the ADF.
Hello
I have an obligation to show one of the column as a LOV that provides only O/N values. Is it possible to have a user defined LOV in ADF Table instead of generating the ViewObject.
Please let me know.
Version: ADF 11g.
Thank you.Not necessarily. You just create a vo with a request (without creating any table in the backend).
Check Re: ViewLink with a static list display object example.
In your case, create a display object based on a query something like
select 'Y' List_Val, 'Yes' Display_Val from dual union select 'N', 'No' from dual
After that, follow the same procedure you have to create the model list flown using the VO created above.
Arun-
-
How to use the user defined function in the Update statement
Hi all
I wrote under the update statement to update the column based on the return value of function. but it does not work. Could someone help me on this. This function returns a single value for each project.
Thanks in advance.
UPDATE dg2. OD_PROJ_LOOKUP_TEMP o
SET Months_In_Stage_Cnt = Months_In_Stage_Cnt_ret (o.project_id) select the double;
Thank you
DebPLS-00231: function 'MONTHS_IN_STAGE_CNT_RET' cannot be used in SQL
-What is the function that is declared private in a package? If Yes, then it must be public, otherwise the SQL engine cannot be used.
Published by: Dom Brooks on November 18, 2011 09:43
-
Hi all
Long time lurker, first time poster. I hope someone can help me.
After watching this excellent video about adobe captivate blog "so what were the right answers in any case" I created a quiz with user variables and conditional early action. It displays a red x next to each question answered correctly at the end of the quiz.
- I created the variable user for each question to a value of 0. On an incorrect answer, the variable would be set to 1.
- At the end of the quiz is a blade that question and shows a red cross next to each question with a variable set to 1. uses conditional action that is triggered 'upon entry.
It works, but my problem is when I saw the quiz (in the browser or SWF), on an incorrect answer, the legend of the failure appears but does not really advance the question when I click anywhere or press o. It works well on the correct answers.
Can I sovle this by adding a next button, but I'd like to understand what I'm doing wrong.
- Using captivate 6.0.1.240 (copy in box)
- Windows 7
- images on the quiz properties and conditional action below
Any help appreciated.
Concerning
Jacob C
I tested this workflow on 6.1.319 and it works fine. If a little guess in the wild... No 6.0.1.240 around at the moment. Seems strange, because a simple action like your Assign action should normally release the read head. But of course, it's a question slide and they do not always behave as expected. Could you try to replace the action of the beneficiary by a standard tip with 2 statements, like this action:
- Assign the var_question_1 with 1
- Continue
And please, let me know if it works? This could be a difference between the two versions, but not sure at all.
Lilybiri
-
Problem LOV... Turning the display value and no key-value
Hello. Sorry for my bad English.
I have a problem with LOV dynamic pop up.
I have a simple form called nom_element and item_code containing the form A. users can create, update, and delete a new item using this form.
Another form called form B has a field called item_code item_code is a dynamic field of LOV pop up and a request for this LOV is like that;
Select nom_element d, r from item_master by item_code item_code;
When I create the new record in the form B and LOV allows to find and get the item code, LOV works very well
and he returns the key value in the field of item_code.
But when I try to update the record (I have a link to the page of the form B), item_code field value is not the key-value of LOV, but is a
Display value of LOV.
Any ideas?
Thank you.Hello:
If you want to display the key value, and then create a new field that can be a test field or a tabled text (display only) and assign the value of the column of the reporrt link or just the column as it appeas in the database.
If you use the form at the same time create and view, you might want to do this new field, but also your LOV field as conditional.
Bruce
-
I have a job with 20 steps. This error occurs for any stage of perticular. It produces randomally at any stage.
"The return value is unknown. The process exit code was 128. The step failed. »
This is not the right forum for SQL database issues.
Please repost your question in the MSDN SQL forum
http://social.msdn.Microsoft.com/forums/en-us/sqldatabaseengine/threadsSincerely,
Marilyn
-
Turning the Checkbox values to the report
Hi, I created checkbox "Gender": P2_gender
When I switch to IR in where clause as "" where sex =: P2_gender ""
It is return value if I check a value, but if the two values in the box check it shows no record found...
I don't know where I was wrong. I used to use the list of selection with the same logic worked well. But this is my first time using the checkbox...
Please guide me to achieve my requirement...
Thank you
Nihar NarlaThis is the way to do things:
SELECT * FROM emp WHERE INSTR (':' || :p1_deptno_checkbox || ':', ':' || deptno || ':') > 0
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Apress.com/9781430235125
http://Apex.Oracle.com/pls/Apex/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
------------------------------------------------------------------- -
"User define setting of the button" on Lenovo G570
Hello
I have a problem with my laptop Lenovo G570 (running Windows 7), in which case every so often a small icon (showing a green arrow pointing down) appears next to the usual icons for Skype, Bluetooth devices and so on. When this icon is present the graph to change the brightness and volume simultaneously will change, a horizontal black bar to that is in blue and light green.
Hovering over the icon indicates that it is a "user set Setting button, and if I right click it allows me to browse a pogram 'open' with her, even if I'm still confused to its functionality.
Is this a virus? I've already scanned with Malwarebytes, which does not pick up whatever it is and to this day a Super AntiSpyware scan does not do anything either. Usually I can run a system restore to my last saved system restore point in order to remove the icon, but it would be good to know for sure if I can't ignore the icon (and the changes to the user interface) or if there is a way to permanently solve the problem.
Thank you
Greg
Greg
It is part of Lenovo bloatware and I fear that you will need to contact them for the solution. I always remove their software every time I receive one.
-
User defined function in the cases in article
Hello
I have a function that returns in priview:
(1,2,3,4)
Now I am using this function in SQL where clause
Selection of the debug version where id in debug.debug_process)
Executing select I am getting ORA-01722 invalid number, I understand the functions return not only numbers but character symbols too "(en).
It is posible to use the function defined by the user that do not return a NUMBER CASE statement IN clause? If this is not the case, what advice can I sugest for a list of values for use in the Clause IN?
ID.
Thank you!
The SQL IN clause requires a set as the parameter type.
This means that the function used must provide a suitable type.
Examples:
SQL> create or replace type TNumberSet as table of number; 2 / Type created. SQL> SQL> create or replace function FunkyFoo return TNumberSet as 2 begin 3 return( 4 new TNumberSet(7369,7499,7902) 5 ); 6 end; 7 / Function created. SQL> SQL> select 2 * 3 from emp 4 where empno in(select * from table(FunkyFoo)); EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ---------- ---------- --------- ---------- ------------------- ---------- ---------- ---------- 7369 SMITH CLERK 7902 1980/12/17 00:00:00 800 20 7499 ALLEN SALESMAN 7698 1981/02/20 00:00:00 1600 300 30 7902 FORD ANALYST 7566 1981/12/03 00:00:00 3000 20 SQL> SQL> select 2 * 3 from emp 4 where TNumberSet(empno) submultiset of (FunkyFoo); EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ---------- ---------- --------- ---------- ------------------- ---------- ---------- ---------- 7369 SMITH CLERK 7902 1980/12/17 00:00:00 800 20 7499 ALLEN SALESMAN 7698 1981/02/20 00:00:00 1600 300 30 7902 FORD ANALYST 7566 1981/12/03 00:00:00 3000 20 SQL>
-
WE ARE FIVE USER IN THE COMPUTER THERE ARE MY CHILDREN AND ME, BUT ONLY TO THE INTERNET. HOW CAN I REMOVE OTHER USERS FROM THE COMPUTER?
WE ARE FIVE USER IN THE COMPUTER THERE ARE MY CHILDREN AND ME, BUT ONLY TO THE INTERNET. HOW CAN I REMOVE OTHER USERS FROM THE COMPUTER?
1 Please, there is this "internet label"... compose messages in capital letters is considered Rude and Yelling. "
2. only the administrator of the computer, or a user who has the admin password may add, change, or delete user accounts.
To remove a user account ...
Start button > Control Panel > Classic view > user accounts > click on manage another account > uac prompt (asking the permission of the administrator) > click on continue or enter the administrator password > now, you can remove any account you want.For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.
-
I have similar graphs using 80% of the same color (CMYK) spot such as defined in a saved palette, but it is noticeable darker than the other.
You have discovered a very powerful feature of Illustrator. You can assign attributes to the level of the group. Alternatively, you can assign attributes to the layer, character and type. Look at your appearance to confirm palette that you assign the assignment.
For example, if you had a rectangle file with a transparency of 50% of a spot color, and then pull it together you and affect 50% of group, your end color transparent would be 50% of the spot color.
-
Conditional User Defined Variable in the table of contents to RH10
Hello
I have a unique project created with tags of conditional compilation for a product in several countries. The name of the company was the same in all three countries, but now the name of the company in a country is about to change. I created UDVs with conditional compilation of tags to apply the appropriate name when aid is produced (Yay for RoboHelp 10 for allowing this).
There are 58 topics in the table of contents that include the name of the company in the title of the topic. My problem is, if I include the UDV to the title of a page in the table of contents, conditional text is ignored.
I guess that's because the table of contents allowing in conditional constructions apply to the page or the book itself and no text in the name of the page or the book.
Please can someone confirm that this is the case? If so, I'll make a suggestion to Adobe.
Thank you.
Hello
I hope that Willam won't mind my expand a little on the issue.
I note that you already seemed to be aware that the UDVs are possible in the text of the table of contents. And if I understand correctly, your problem here is that you want to condition the UDV in the table of contents, right?
Certainly a way to do that would be to have two different TOC entries. And apply tags to each, so that one or the other would be excluded. But to be honest, I always avoided tagging the elements of the table of contents that I saw myself mixed results.
The thought here for me is that I wonder why you feel the need to apply a condition to a variable? Why not use a different version of the variable? Of course, you create variables and insert them, but you can actually create different sets of variables that have different values, then when you create your output you simply choose the Variable you want to use.
See you soon... Rick
Maybe you are looking for
-
A particular Web Site does not load
A particular website does not load, and I was previously able to view this site about 2 weeks ago. It's a free WordPress site/blog. I keep getting the error message "The connection to the server was reset while the page was loading." I've tried delet
-
Hello! I need to change some Boolean button and I want to remove it from the button, the Green led, leaving the true/false state recognizable only from the color of any button. Is it possible to eliminate the led Green? I tried with nodes of property
-
Install the new Windows 7.
-
Adding an external microphone - s7 392
Hi guys,. I have a boom mic pro Nwe I want to use for purposes of productivity However, it does not appear the only option I have is the default mic s7 does anyone know how to use an external mic? Help, please!
-
Why are the lines of my text-images "off"?
Hello.I have a number of images text threaded at the other. tfLK [0] (the first in an array of managers of related texts) a (visually) lines 29 , but ' $.writeln(tfLK[0].lines.length) ' returns to 33, and indeed, when I target 'tfLK [0].lines.items (