Line that auto cross
I was looking at the previous posts regarding how to determine if a LINE intersects itself...
and the orientation was use sdo_intersection to do a free intersection on the line (i.e. pass in the same line with two args)
then use sdo_getvertices and County
I tried to do however get (what I think) is the strange results.
Two examples:
In an example here, I have a line that starts and ends at the same point, and the point that has a count > 1 is not the starting point / end.
Select t.x, t.y, count (*) total
Of
TABLE)
() sdo_util.getVertices
sdo_geom. () SDO_INTERSECTION
(select SDO_GEOMETRY (2002, 8265, NULL, SDO_ELEM_INFO_ARRAY (1,2,1), SDO_ORDINATE_ARRAY ()))
-122.3117777778, 47.4498888889,
-122.3, 47.45,
-122.5375277777,48.7926944444,
-122.3117777778, 47.4498888889
() as double geom)
,
(select SDO_GEOMETRY (2002, 8265, NULL, SDO_ELEM_INFO_ARRAY (1,2,1), SDO_ORDINATE_ARRAY ()))
-122.3117777778, 47.4498888889,
-122.3, 47.45,
-122.5375277777,48.7926944444,
-122.3117777778, 47.4498888889
() as double geom)
0.005))
) t
Group of t.x, t.y;
The above returns this point as the point of intersection free?
-122.5375277777,48.7926944444
I also have a more complex example that contains a line with many points, I'm expecting TWO x, y of the points as a free intersection points...
There are THREE of them. The I wasn't expecting to have a number of 2 is - 122.5903, 48.8563
Based on below why would '-122.5903, 48.8563' be considered a free intersection point?
Select t.x, t.y, count (*) total
Of
TABLE)
() sdo_util.getVertices
sdo_geom. () SDO_INTERSECTION
(select SDO_GEOMETRY (2002, 8265, NULL, SDO_ELEM_INFO_ARRAY (1,2,1), SDO_ORDINATE_ARRAY ()))
-122.3117777778, 47.4498888889,-122.2955, 47.7347,-122.293, 47.8181,-122.2904, 47.9015,-122.2879, 47.9849,-122.3108, 48.0519,-122.3332, 48.1356,-122.3808, 48.2197,-122.3788, 48.2864,-122.4015, 48.3701,-122.4247, 48.4371,-122.4732, 48.5045,-122.5222, 48.5551,-122.5209, 48.6052,-122.5448, 48.6555,-122.5435, 48.7055,-122.5431, 48.7222,-122.5418, 48.7723,-122.5903, 48.8563,-122.6422, 48.8068,-122.6434, 48.7567,-122.6198, 48.6897,-122.544, 48.6889,-122.5431, 48.7222,-122.5667, 48.7892,-122.6426, 48.7901,-122.6695, 48.7236,-122.6711, 48.6569,-122.6731, 48.5735,-122.7002, 48.4903,-122.3117777778 47.4498888889
() as double geom)
,
(select SDO_GEOMETRY (2002, 8265, NULL, SDO_ELEM_INFO_ARRAY (1,2,1), SDO_ORDINATE_ARRAY ()))
-122.3117777778, 47.4498888889,-122.2955, 47.7347,-122.293, 47.8181,-122.2904, 47.9015,-122.2879, 47.9849,-122.3108, 48.0519,-122.3332, 48.1356,-122.3808, 48.2197,-122.3788, 48.2864,-122.4015, 48.3701,-122.4247, 48.4371,-122.4732, 48.5045,-122.5222, 48.5551,-122.5209, 48.6052,-122.5448, 48.6555,-122.5435, 48.7055,-122.5431, 48.7222,-122.5418, 48.7723,-122.5903, 48.8563,-122.6422, 48.8068,-122.6434, 48.7567,-122.6198, 48.6897,-122.544, 48.6889,-122.5431, 48.7222,-122.5667, 48.7892,-122.6426, 48.7901,-122.6695, 48.7236,-122.6711, 48.6569,-122.6731, 48.5735,-122.7002, 48.4903,-122.3117777778 47.4498888889
() as double geom)
0.005))
) t
Group of t.x, t.y;
I could do something wrong but I wanted to see if the experts knew why these two example of free intersection tests do not seem to return the results, I expect.
Thanks in advance
See you soon
Look at the geometry out of just sdo_geom. SDO_INTERSECTION (no count and not sdo_util.getVertices). Both your examples are closed loops, and the SDO_INTERSECT is producing a reorganization but closed loop, it starts at a different point. By definition, a closed loop has the Summit even at the beginning and at the end, so the starting point will be a number two. The Geometry produced by sdo_geom. SDO_INTERSECTION is a legitimate topological representation of the intersection of the two loops: this is another representation of the object of the geometic.
I conclude that the SDO_INTERSECTION trick for line self intersections requires more work where the line is a closed loop. If you know that the input is a closed circuit, so I think excluding the last Summit of the intersection works:
Select t.x, t.y, count (*) total
de)
Select sdo_geom. () SDO_INTERSECTION
SDO_GEOMETRY (2002, 8265, NULL, SDO_ELEM_INFO_ARRAY (1,2,1), SDO_ORDINATE_ARRAY ())
-122.3117777778, 47.4498888889,
-122.3, 47.45,
-122.5375277777,48.7926944444,
-122.3117777778, 47.4498888889
))
,
SDO_GEOMETRY (2002, 8265, NULL, SDO_ELEM_INFO_ARRAY (1,2,1), SDO_ORDINATE_ARRAY ())
-122.3117777778, 47.4498888889,
-122.3, 47.45,
-122.5375277777,48.7926944444,
-122.3117777778, 47.4498888889
))
0.0001) I
the double) ii
, ARRAY)
t sdo_util.getVertices (II.i))
where rownum<>
Group of t.x, t.y
Incidentally, you should use a smaller tolerance, tolerance 0.005 tell 0.0001 - there are other free intersections that were not given by the SDO_INTERSECTION Tower. The line between - 122.5667, 48.7892 and - 122.6426, 48.7901 is less than 0, 05 - 122.5903, 48.8563
Tags: Database
Similar Questions
-
Hi all
We can add a button to the BP to approve Budget so that it can read all the charges in question cost journal line and auto fill on the grid.
Let's say I have a cost with 5 code cost journal
Code 1 price
2 cost code
Code 3 cost
Code 4 cost
Code 5 cost
BP budget approval, after that I click on New, can I add a button to the tab the line items so that when I click on this button, it reads all codes of cost in the cost journal and auto fill on the grid?
You can create a new 'model' BP for this purpose. Line item type. Then add a line manually with a cost on each code. Then you can use the copy in your BP BA record consolidate the function to copy the line items to the new folder of BP (including all cost codes) into your folder of BA. That is to set up a model record once with all cost codes and then copy consolidate billing it to all lines new record of BA. would this work?
-
How can I remove lines that intersect?
So I have to admit, I'm kind new to Illustrator and trying to figure out how to remove the lines that intersect this drawing I did, can be cut into a cutter to cut in one piece. The thing is, I don't know how to do. Here is the file, in which case it helps to solve the problem.
https://files.me.com/eovnu87435ds/99tjo3
Any help is greatly appreciated!
First things first
Select the two concentric circles of shift by clicking on it with the selection or direct Selection tool
then go to object > compound path > make or the command (command) 8 to make a compound path of two circles
then select the crossed rectangles and the path to the composed circle you just made
with the three selected go to pathfinder Panel and click on the first icon at the top left (unit)
and who will do
-
Ordered the iPhone 7 using a line that I will not activate
When I went to order my iPhone 7 on the Apple site, I was not able to transfer the update on my Verizon account to my line, so I used the line that took the upgrade. However, when I receive and configure the iPhone, I don't want to activate the phone on that line. Is there a way to change that line the iPhone turns on when I receive?
When you retrieve the iPhone, contact your carrier and tell them what you want and ask them how to proceed.
-
I spent over 5 hours in computer shares with AVG. They said your server messed up my email account. I can access my email account, but the line that reads "delete, move, not spam, more' loads ever... so I can't delete the email or anything else. My email account is to verizon yahoo. I need access to my email for various reasons, one of them being pay several bills online and my email account is where to get confirmation that the payment has gone through! My email works through IE, however. I don't want to use IE to see my email... I use Firefox for everything and it would be a pain in the end to have to switch to IE to access my mail. Not to mention, I hate IE - it's like using WEBTV! It's so slow... [address removed by email, please do not provide sensitive information in a public forum] is my email...
So Safe Mode made no difference?
To test how Firefox works no 'custom' on your system, could you experience in two minutes?
Create a new Firefox profile
A new profile will be your plugins installed by system (for example, Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions or other customizations. It should also have databases of completely fresh settings and cool a cache folder.
Out of Firefox and start in profile to help Manager start > run:
firefox.exe -P
Do not delete anything here.
Any time want to switch profiles, exit Firefox and return to this dialog box.
Click on the button to create a profile, assign a name like TEST and skip the option to choose a different folder location. Then launch Firefox in the new profile that you have created.
Yahoo does not improve in the new profile?
When you return to the Profile Manager, you might be tempted to use the button Delete a profile on TEST. It's a little too easy to accidentally delete your 'real' profile, so I recommend you to resist the temptation. If you don't want to clean up later, I suggest to make a backup of all your profiles first in case something go wrong.
-
Spontaneously numbers cells sometimes show a vertical line that can divide the cell and the inside entrance. Also it will not treat data in a split call correctly when these data are used in a formula. See below. Entry $5 300,07 is incorrect. SHD be the sum of the two entries above it.
Hi William,.
I suspect that you have in fact 2 tables here. Click on the bubble at the top left and drag the tables outside. After verifying that your table top is finished, ddelete another.
Quinn
-
[Q] can Vision track multiple objects in the same area - objects that might cross?
Hello
Sorry for this long title, but this is my question.
Can Vision track multiple objects in the same area - objects that could cross?
Because I'm able to do, extraction of XY, but it seems that "IMAQ County objects ' don't follow framework after but framework opposed, but extract the coordinates XY always in the same way, as for example from top and whenever he sees an object, it retrieves the XY, but if the objects pass through (then it will extract XY without worrying that the objects was the earlier but just based on"scan from top to bottom").
That's why I open this topic in the forum of Vision no part: http://forums.ni.com/t5/LabVIEW/Sort-XY-by-closest/td-p/2440428
Thank you
Sébastien
Thank you for your response.
My problem is that we work with very small insects and the shape/color is the same for all.
Then the solution is: Let's wait for "IMAQ County objects 3 ' then .
Thank you
Sébastien
-
can assign you a sentence/line that you use most often to shortcut keys
can assign you a sentence/line that you use most often to shortcut keys
The game may 10, 2012 01:26:02 + 0000, MC Space says:
can assign you a sentence/line that you use most often to shortcut keys
You can do it with a third-party program. I use and highly recommend
the free Autohotkey to http://www.autohotkey.com/. It works very well
and it is easy to use.Ken Blake, Microsoft MVP
-
OfficeJet 6600/problem with the vertical line that appears both scanned and copied items
There is a vertical line that follows the entire length of a page when I scan or copy. Have cleaned the glass, it is not the effect. Help
Hi gljatlaw,
I see that you are having problems of quality of scan. I'll take a look at the document below.
Let me know how it goes.
-
Just upgraded to Windows 7 to 8, using MS Office Word 2010, worked well on Win 7, but now type text and the cursor suddenly jumps into the existing text and continues typing, rather than the finish line that I'm on. Thought, I was accidentally touched for touch pad or other keys, so now consciously look for this but can find nothing on my part. Have experienced it before with a processor OS Linux and Open Source, when the OS has been updated. Think there may be a loophole to WIN 8. It also happens when keying in the screens like this, that has happened twice while here. Someone else spotted the same thing? Or is it just me?
Also, anyone know how to disable "Open Tap" on the Mouse touchpad of the notebook, its annoying, I could disable in WINDOWS 7 but cannot know how Win8.
Thank you very much for your help, the setting was not really there, but you gave me the name of the device, so I was able to download the right driver from
http://www.Synaptics.com/resources/drivers
above mentioned just in case anyone has the same problem. The site recommend to go with the hardware vendor's website, but ASUS has wrong driver, one of the above works fine.
Its such a relief to be able to settle this problem - THANK you
Lets see if it sorts the problem MS Office too.
-
How to remove the lines that have the employee name double?
Hello world
Greetings
I'm using oracle 11g.
Suppose I have a table and I want to delete lines that have the name used twice?
So given below is my table so I only delete lines that have more than one 'Ram' and 'Dilip' ename.
How to do this?
EmpID Ename salary Commission depnto 101 RAM 5000 453 1 102 RAM 6000 765 2 103 Sisi 3456 876 3 104 Dilip 7656 675 4 105 Mohan 9878 767 5 106 Dilip 5646 987 6 107 Ganesh 9823 455 7 You can use a simple code as follows
Delete From EMP
Where rowid! = (select min (rowid) of the group by Ename EMP);
For preserved older values using 'min (rowid)'
and for the most recent values required use "max (rowid)"
Thank you.
-
What is different between the socket and ware course oracle and making that auto study of oracle - not to mention that the cost
I would take oracle 12 c performance and tuning.
I noticed its a lot cheaper as self-training which is web access for a year.
However, self study does not prepare you as well as the oracle himself.
Thank you Roger
UO has four types of training: classroom, virtual Live, training on demand and self study. The first three are all variations on the same thing: a human being a conference accompanied by a Powerpoint presentation. The only difference is the specific method of delivery. I took a dozen or more courses in the classroom, when I worked for Oracle, but none of the other three. I don't know that they still existed at the time.
Self-study courses are completely different. They are not recorded training sessions (or they would cost the same as TOD). They seem to be created by Skillsoft computer-assisted training courses. There are some demos available on the OU Web site. Go to the following URL and click on the tab "Demos'", just above the section asking you to select a product area:
Self-study courses | Training | Oracle
That said, it is not yet an option available for the course self-study: Oracle 12 c database: performance management and Tuning.
-
When you use the pen tool when I click and create an anchor point and release the mouse button the pen tool emerges from the anchor and allow me to go and select a new anchor point. The right pen tool keeps adding lines that I move the mouse. How can I get the pen tool to release the anchor
Try this.go in the menus. Select cc illustrator > preferences > display selection & anchor > then make sure the box "activate the rubber band for" the pen tool is not selected. Then press OK. It should work.
-
the neutrophilia help lines that do not have a match.
I'm having a hell of a time trying to write a select statement that would choose to specific lines without match. hurt after a sample of my table and data below.
creating the table
CREATE TABLE "IDEA" ( "CODE" VARCHAR2(32 BYTE), "ACCOUNTCODE" VARCHAR2(32 BYTE), "DRCR" VARCHAR2(20 BYTE), "ENTRYID" VARCHAR2(32 BYTE), "JOURNALAMT" NUMBER(17,2) )
data in the table.
INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '7038', 'DR', '172863', '6.27') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '7038', 'DR', '172863', '6.28') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '1115', 'CR', '172863', '-12.55') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '7038', 'DR', '172899', '0.25') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '7038', 'DR', '172899', '0.25') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '7038', 'DR', '172899', '197.25') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '7038', 'DR', '172899', '197.25') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '1115', 'CR', '172899', '-394.50') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '7038', 'DR', '172903', '975') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '7038', 'DR', '172903', '975') INSERT INTO "IDEA" (CODE, ACCOUNTCODE, DRCR, ENTRYID, JOURNALAMT) VALUES ('Company', '1115', 'CR', '172903', '-1950')
When I run the following query I have that would get the following result
select --DRCR, ENTRYID, sum(JOURNALAMT) From idea group by entryid
my top of the query output.
"ENTRYID" "SUM(JOURNALAMT)" "172863" "0" "172899" "0.5" "172903" "0"
I want to identify the lines that make up the 50.
Please note that there might be 3 or 4 lines per credit. so it could be a football match of the 4DR same 5DR or 1 CR 1 CR however will always be 1 CR.
I thought to write a plsql program that would try to match every single possible combination for 1 credit, but it seems to me that there is an easier way.
any help would be grateful.
Hello
Here is a function that attempts to find a combination of 'DR' ranks with the entry ID given, whose journalamts correspond exactly to the amount given. If If is such a combination, it returns a string that contains a list delimited by amounts. You coould easily change this to return a list delimited by primary keys, or whatever you want:
FUNCTION to CREATE or REPLACE dr_list
(entryid_wanted IN idea.entryid%TYPE
journalamt_wanted in NUMBERS
prev_rowid IN DEFAULT NULL ROWID
)
RETURN VARCHAR2
IS
"failure_message VARCHAR2 (50): = '(aucune correspondance trouvée);
remainder_list VARCHAR2 (4000);
return_list VARCHAR2 (4000);
BEGIN
IF journalamt_wanted > 0
THEN
return_list: = failure_message; -Are likely to be replaced later-Find each line that may be part of a solution
FOR (IN) r
SELECT journalamt
R_id AS ROWID
The IDEA
WHERE Drcr = "DR".
AND entryid = entryid_wanted
AND journalamt > 0 - if necessary
LNNVL (ROWID, AND<=>=>
ORDER BY ROWID
)
LOOP
IF r.journalamt = journalamt_wanted
SO - This line is a solution alone
return_list: = r.journalamt;
EXIT;
On the OTHER - see if this line belongs to a bigger solution
remainder_list: = dr_list (entryid_wanted
, journalamt_wanted - r.journalamt
r.r_id
);
IF remainder_list <> failure_message
THEN
return_list: = r.journalamt | ', ' || remainder_list;
EXIT;
END IF;
END IF;
END LOOP;
END IF;RETURN return_list;
END dr_list;
/You can use the function in a query like this:
SELECT EntryID
SUM (journalamt) AS total_amt
, dr_list (entryid, SUM (journalamt)) AS extra_drs
The IDEA
GROUP BY entryid
;
and it could produce an output like this:
ENTRYID TOTAL_AMT EXTRA_DRS
---------- ---------- ------------------------------
172903 0
172863 0
172899.5.25,.25
8 987 (no match)
901 5 2, 2, 1Note that when you call the function, pass you the arguemnts only 2. The 3rd argument is used only by the function when it calls itself.
-
How can I get the black line that perfectly align than the bars on the chronology of return?
As small black line that goes to the bottom of the screen when I put two bars/clips side by side without overlapping one another.
For the last two days, my Adobe first CC did not do that and I try to guess it. This has caused some clips to overlap. This slows down my editing because I have to make sure that the place is perfect, and sometimes very difficult to do manually.
Could someone help me with this please?
Thank you.
you have disabled snap? This is the icon of the magnet on the editing toolbar.
Maybe you are looking for
-
Firefox will not start on Mac 10.10.4
Every time I try and open Firefox sometimes just with a crash report - see below. I tried to uninstall Firefox, reinstall Firefox, displacement of the profile folder and using Terminal to get to the Profile Manager (even that crashes once I've select
-
MODBUS RTU - problem reading Holding - myPCLab Novus records
Hello I've tried for a few days to read the logs at Novus myPCLab (it uses the Modbus RTU Protocol). I used the DSC module both Modbus Library without success (it seems to connect properly but cannot read). I need to read the given current. Does anyo
-
How to recover the... Task Manager?
I replaced my task manager with process explorer, which I accidentally deleted... yesterday... now my task manager disappeared... How can I get that back?
-
Canon Pixma MG3100cant use to print wireless
I installed it,., he used a lot before... now it won't print or scan from my laptop... but now I have a new network and lost Disc... but it works very well for my husband on his desk, he will not be printed repeat me printing error... can u please ad
-
Age of dell1525 taken in charge and most programs are either crashing or can not connect
Windows vista on my dell1525 always seem to take ages to load up and internet searches are more frequently either crashing or does not connect after the initial connection - also tape the letters seem to jump out of place. It's now my computer is too