Converting Oriented Points to Simple Points (SDO_POINT)

Does anyone know of a utility or script to convert oriented 3D points to simple points?

Hi,
The below script is to get simple point from 2D oriented point. You can easily modify this for 3D point.
CREATE OR REPLACE FUNCTION getPoint(geom SDO_GEOMETRY) RETURN SDO_GEOMETRY IS
BEGIN
if geom.SDO_ORDINATES is not null and geom.SDO_ORDINATES.count() = 4 then
RETURN SDO_GEOMETRY(2001,geom.sdo_srid,
sdo_point_type(geom.SDO_ORDINATES(1), geom.SDO_ORDINATES(2), null),
null,
null);
else
return null;
end if ;
END getPoint;
Sujnan

Similar Messages

  • Value of oriented point geometry into SDO_ETYPE

    Hello! I have this problem:
    I tried to insert an oriented point geometry.
    This coordinates (x,y,z) identifies the point (A ) that I want to place.
    580117.84, 4998489.37, 0
    This coordinates (x,y,z) identifies the coordinates of the end point (B) where is orientated the vector
    580121.56, 4998490.93, 0
    I have read the instruction http://download.oracle.com/docs/html/B14255_01/sdo_objrelschema.htm#CBBIAGFJ
    and I have create this query
    INSERT INTO TABLE_A
    VALUES
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1, 1, 4, 1, 0),
    SDO_ORDINATE_ARRAY(580082.54, 4998456.45, 0, 580080.6, 4998496.5, 0))
    SDO_ORDINATE_ARRAY(580117.84, 4998489.37 , 0, 3.72, 1.56 , 0 )),
    If I make a select row of TABLE_A right for to see SDO_GEOMETRY I find:
    GEOMETRY1(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1, 1, 4, 1, 0),
    SDO_ORDINATE_ARRAY(580117,84, 4998489,37, 0, 3,72, 1,56, 0))
    I work with Geomedia intergraph and if I rotate or spin the symbol at the point and then I do again the same select
    the result is:
    GEOMETRY1(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORD
    INATE_ARRAY(,598974545, -,80076807, 0, 580117,84, 4998489,37, 0))
    I don't understand what mean the number of SDO_ETYPE inside SDO_ELEM_INFO_ARRAY.
    also in SDO_ORDINATE_ARRAY this value identifies the orientation
    ,598974545, -,80076807, 0
    but I can't realize from where this numbers come out.
    Somebody can explain to me?
    Thanks in advance.
    Angelo!

    Excuse!
    I make a mistake the query is
    INSERT INTO TABLE_A
    VALUES
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1, 1, 4, 1, 0),
    SDO_ORDINATE_ARRAY(580117.84, 4998489.37 , 0, 3.72, 1.56 , 0 )),
    and not
    //INSERT INTO TABLE_A
    // VALUES
    // SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1, 1, 4, 1, 0),
    // SDO_ORDINATE_ARRAY(580082.54, 4998456.45, 0, 580080.6, 4998496.5, 0))
    // SDO_ORDINATE_ARRAY(580117.84, 4998489.37 , 0, 3.72, 1.56 , 0 )),
    I wait your news.

  • FOI marker trimmed when using oriented point geometry

    Greetings,
    I am trying to rotate a FOI polygon marker using oriented point geometry. While the angle of the marker (hollow arrow) is rendered properly in Oracle Maps, the size of the actual marker image shipped to the browser is always constant in size and does not account for the potential increase in image dimensions due to rotation. So, the image always is clipped at the corners, if rotation swings a portion of it outside the static image dimensions. The best way to replicate this behavior is by using a simple square marker on any rotated point geometry: the corners of the square get clipped.
    I appreciate any advice on how to solve or work around this.
    Regards,
    -Simon

    Joao,
    Thanks for your reply. I found that all types of markers, including images and TTF symbols get clipped. The only way that seems to work buffering an image marker symbol by empty pixels in order to provision space for its rotation.
    Regards,
    -Simon

  • How to get all the values of the SDO_ORDINATE_ARRAY of a Oriented Point

    Hi,
    I'm trying to get the values of a Geometry wich is an Oriented Point. To that, i'm using SDO_UTIL.GETVERTICES, but this utility only obtains the point X,Y, it doesn't obtain the values of the orientation vector.
    The Geometry is this:
    MDSYS.SDO_GEOMETRY(
         2001,8307,NULL,
         MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1,3,1,0),
         MDSYS.SDO_ORDINATE_ARRAY(-75.586088632813272,6.1794352615514194,0.57278169530235967,-0.81970795380217887,0)
    The query is this:
    SELECT c.ipid, c.nombre, t.X, t.Y, t.Z, t.W
    FROM Hidrantes c,
    TABLE(SDO_UTIL.GETVERTICES(c.geometria)) t
    where c.ipid = 4691117
    ORDER BY c.ipid, t.id;
    Result:
    4691117          -75,5860886328133     6,17943526155142          (null) (null)
    As you can see, it only obtains the X,Y values but not the values of the orientation vector, how can I get the values?.
    Thanks in advance

    Tobonale,
    Sql-Only approaches:
    *[1] Return Oridinate Array*
    Append .SDO_ORDINATES to your geometry object or column name:
    SELECT MDSYS.SDO_GEOMETRY(
         2001,8307,NULL,
         MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1,3,1,0),
         MDSYS.SDO_ORDINATE_ARRAY(-75.586088632813272,6.1794352615514194,0.57278169530235967,-0.81970795380217887,0)
    ).SDO_ORDINATES
    FROM dualResult:
    SDO_ORDINATE_ARRAY(-75.586089, 6.17943526, .572781695, -.81970795, 0)*[2] Return Flattened Oradinate Array*
    SELECT * FROM
    TABLE (
         MDSYS.SDO_GEOMETRY(
         2001,8307,NULL,
         MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1,3,1,0),
         MDSYS.SDO_ORDINATE_ARRAY(-75.586088632813272,6.1794352615514194,0.57278169530235967,-0.81970795380217887,0)).SDO_ORDINATES
    )Result:
      -75.586089
      6.17943526
      .572781695
      -.81970795
               0Regards,
    Noel

  • I am sort of new to MAC's and I love them so far.  I am looking for a software or app to convert power point presentations to flash much like Ipring for PC Can anyone recommend something?

    I am looking for a software or app to convert power point presentations to flash much like Ipring for PC Can anyone recommend something?

    This article has 6 ways to do it.

  • Converting multiple points to line

    Hi All
    I have table consist of point data.. how to convert multiple points to line data.. if anyknows pls tell me ..
    Thak you

    user13340372,
    . . . .Are you trying to draw a line between 2 points or draw a line connecting N points?
    How to Create a Line From 2 Points_
    . . . .You could use the SDO_Geometry constructor. For example, if you have a table POINTS defined as (ID NUMBER, FromPt SDO_GEOMETRY, ToPt SDO_GEOMETRY), then you could:
    SELECT 
        SDO_GEOMETRY(
        'LINESTRING ('||
        -- concatenate coordinates from FromPt
        REPLACE(REPLACE(p.FromPt.Get_WKT(), 'POINT (', NULL), ')', NULL)||','||
        -- concatenate coordinates from ToPt
        REPLACE(REPLACE(p.ToPt.Get_WKT(), 'POINT (', NULL), ')', NULL)||')'
        ---  SRID
        , 4326)
    FROM
        POINTS p;              
    How to Create a Line From N Points_
    . . . .In a "connect-the-dots" puzzle, you draw lines from one numbered point to the next numbered point. There, the numbers define how points are related. If you dont have that information, then you need to decide how you want your points connected. Here are a few options - your requirements should indicate which (if any) is suitable:
    . . . .(a) Draw Arbitrary Linestring Through Points: user10278189 already posted that PL/SQL solution (above).
    . . . .(b) Connect Nearest Neigbors: set CURRENT_POINT to a point (e.g., bottom-left). Then identify its nearest-neighbor (hereinafter, "NextPoint") using SDO_NN. Flag NextPoint as "visited" and set CURRENT_POINT to NextPoint. Repeat until all points in the point-set are flagged as "visited." The result ( which depends on the starting point ) is a linestring connecting all points (a "line" is only between 2 points; a linestring is between 2 or more points). This requires PL/SQL.
    . . . .(c) Draw Along Shortest Distances: Create a table containing: FromPt_ID, toPt_ID and distances between each pair of points. (If you do this via a cross product, remove rows where FromPt_ID = ToPt_ID.) Begin connecting the points with the minimum distance from the last "visited" point (as before, flag the points that have been used as "visited"). The result of this operation is the shortest linestring connecting your point-set. This requires PL/SQL.
    . . . .(d) Outline Set of Points: You could also use the SDO_GEOM.Sdo_ConvexHull function to create polygon that encloses your point set, and then use SDO_UTIL.PolygonToLine to turn that area-geometry into a line-geometry. This can probably be done in a single statement.
    . . . .(e) Others (TSP, spanning tree, etc).
    Regards,
    Noel

  • Can't add, delete, convert anchor points

    Finally upgraded to CS3, and I find that I can't can't add, delete, convert anchor points on a path in certain documents. I get the "Please use the XX tool on a segment of a path. The appearance tells me I have a path. I can paste the paths into a new file, and everything works. I saved to CS2 and can manipulate to my hearts content. These are not a complicated paths (4-12 points).
    On a related note, when I tried to draw the path, the anchor point would not appear where I clicked but up and to the right or down and the left. Moving points with the mouse or the arrow tool constrains the angle and length. Moving in the transform palette, i can move it freely
    Obviously, I can copy and paste these into new docs, but is there I did in setting the original documents that caused this behavior, because I'd like to avoid it in the future.
    Sorry if this is an obvious question, I'm more of 'Shop person. Thanks in advance.

    Yeah, removing grid saved me too.  The irony here is we use grids to try and be more accurate, yet the paths can't even be found with snap on.  Really dumb 'gotchya' for anyone moving over to this software IMHO

  • How can I convert page points into document points??

    Hello,
    How can I convert page points into document points? any API?
    I have found 2 APIs
    AIDocumentViewSuite::ArtworkPointToViewPoint( ) and
    AIDocumentViewSuite::ViewPointToArtworkPoint( )
    but I dont know what is view point and art work point.
    I think artwork point = page points and view points = document points. am I correct ???

    What do you mean by 'document points'? Do you mean document units? Like centimeters or inches? If that, there's no API to do (well, kind of in AIUser.h, but that gives you back a string with a unit suffix). Frankly, its pretty easy to just figure out the conversion values for each type of ruler unit -- there are only five or so you need -- and then write a dinky function that takes a value in one or the other, looks up the current document unit and uses that to convert the value (one function for each way). You just need to figure out everything in terms of points (since pixels == points) -- in that regard, it probably helps to know that 72 pt == 1 inch. From that you can figure out pointer-per-inch|centimeter|millimeter|pica.

  • Label oriented points horizontal

    Hi,
    rotated labeling with oriented points works fine (only as whole image theme as we learned here!).
    But what if I would like to label some objects horizontal in some case? It is possible to use a marker style with text definition as label style. Then the labels are horizontal, but I can't use effects like halo or sticky then. Is there an other way to ignore the orientation?
    Best Regards,
    MH

    Hi MH,
    labeling of oriented point features always respect the orientation angle. There is no custom parameter to ignore the orientation in this case.
    Joao

  • Convert anchor points to curve affecting adjacent points

    I was excited about the "convert anchor point to curve" function in illustrator CS3
    However, when i select a corner point and convert it to curve, it only extends the handlers of the selected points, but doesn't affect the exit handler and entry handler of the adjacent anchor points. As a result the curve is just a smooth round transition,not a curve.
    For instance, in FH3, if I "convert to curve" to the anchor points of a square , i'd get a circle and viceversa:
    If i convert to curve the anchor points of a square in illustrator i get a square with rounded edges.(see example below)
    I'd prefer a behaviour similar to Aldus Freehand-It gave me an accurate fast control of curves while drawing-What does other user think?
    Uploaded with
    plasq's
    Skitch!

    I was excited about the "convert anchor point to curve" function in illustrator CS3
    However, when i select a corner point and convert it to curve, it only extends the handlers of the selected points, but doesn't affect the exit handler and entry handler of the adjacent anchor points. As a result the curve is just a smooth round transition,not a curve.
    For instance, in FH3, if I "convert to curve" to the anchor points of a square , i'd get a circle and viceversa:
    If i convert to curve the anchor points of a square in illustrator i get a square with rounded edges.(see example below)
    I'd prefer a behaviour similar to Aldus Freehand-It gave me an accurate fast control of curves while drawing-What does other user think?
    Uploaded with
    plasq's
    Skitch!

  • Using Oriented Point for from-to address ranges

    I am trying to use the oriented point functionality to place from and to address ranges on my map. I have a problem that for the Horizontal Align, when I set the From to "Start" and the To to "End", the connecting edges cause the numbers to overlap. (ie: edge 1's To overlaps edge 2's From)
    Has anyone gotten this to work correctly?
    I am using the 091229 build of Mapviewer 11.

    The problem you have with using AD accounts for 802.1x auth as well as Network admin is mapping the groups. You can't map groups based on service being requested so unless all your Network Team accounts map to the same group you would have used for 802.1x then you have a problem
    So the best option is probably to create seperate acccounts inside ACS for network admins, ( a shame I know since passwords will not be in step ).
    As for deployment docs there is a white paper I co-authored that describes how to get the most out of T+ Network Admin access.
    You can find it via Extraxi's web site
    http://www.extraxi.com/TDA.htm
    And Select the "Building Scalable T+ Device Mgmt link"

  • Steps to convert access point from LightWeight mode to Autonomous mode

    I need steps to convert the following access point from Lightweight mode to Autonomous mode
    AIR-AP1242AG-E-K9
    Regards,
    Majid

    Hi Majid,
    The method is just hidden a little further down the doc that Scott linked (+5 points Scott :)
    Using a TFTP Server to Return to a Previous Release
    Note This section does not apply to Cisco C3201WMIC and Cisco C3201LAP.
    Follow these steps to revert from LWAPP mode to autonomous mode by loading a Cisco IOS release using a TFTP server:
    Step 1 The static IP address of the PC on which your TFTP server software runs should be between 10.0.0.2 and 10.0.0.30.
    Step 2 Make sure that the PC contains the access point image file (such as c1200-k9w7-tar.122-15.JA.tar for a 1200 series access point) in the TFTP server folder and that the TFTP server is activated.
    Step 3 On the PC where the TFTP server is located, perform these steps:
    a. Disable any software firewall products, such as Windows firewall, ZoneAlarm firewall, McAffee firewall, or others.
    b. Ensure all Windows files are visible. From Windows Explorer, click Tools > Folder Options > View > Show hidden files and folders.
    Step 4 Rename the access point image file in the TFTP server folder to c1200-k9w7-tar.default for a 1200 series access point, c1130-k9w7-tar.default for an 1130 series access point, c1240-k9w7-tar.default for a 1240 series access point, and c1250-k9w7-tar.default for a 1250 series access point.
    Step 5 Connect the PC to the access point using a Category 5 (CAT5) Ethernet cable.
    Step 6 Disconnect power from the access point.
    Step 7 Press and hold MODE while you reconnect power to the access point.
    Step 8 Hold the MODE button until the status LED turns red (approximately 20 to 30 seconds) and then release.
    Step 9 Wait until the access point reboots, as indicated by all LEDs turning green followed by the Status LED blinking green.
    Step 10 After the access point reboots, reconfigure it using the GUI or the CLI.
    http://www.cisco.com/en/US/docs/wireless/access_point/conversion/lwapp/upgrade/guide/lwapnote.html#wp160918
    Hope this helps!
    Rob

  • Convert anchor point tool problem

    I'm new to illustrator.. when I want to move tangents independently it only works with the first one I grab, the other one disappears, and reappears while I hold the first one.. bug?

    1) Both handles reappear and I can move them as I should be able to with the convert tool
    2) that also works fine with the direct select tool,I don't even have to convert so that kinda solves my problem
    3) when point is converted I can drag handles with the direct select tool
    Thx!

  • DNG Converter no longer converts focusing points from Canon CR2 files

    Hi all,
    Up until some time between July 2010 and September 2010, the focusing points embedded in the original Canon CR2 files were also converted and containded in the DNG-file. Hence up until this point in time the focusing points were shown in Apple's Aperture. Since September 2010 this is no longer the case.
    I had hoped for the DNG Converter 6.7 Beta to have corrected this truncation of the files.
    I am using af Canon EOS 1D Mark III. I am running OS X Lion 10.7.3
    1. Has anybody else experienced the same change in behavor of the DNG Converter?
    2. Can anybody still see the focus points in Aperture or equal Imaging program?
    3. Does anybody have an idea, how to contact Adobe for such a feature request?
    Thank you in advance for your help.
    Kind regards,
    Allan

    Hi MadManChan2000,
    Thank you for your answer. So what you are saying is that for some reason Apple's Aperture is no longer reading these MarkerNote metadata correctly?
    Kind regards,
    Allan

  • Put convert anchor points options in Keyboard Shortcuts

    I have two objects with the exact same border path and multiple types of points within the border. I believe that the only way to covert two corner points (at the exact same location) into smooth points (and thus maintain the exact same path for both) is to use the Control panel method (paste in from Help, below). This requires going clear up to the Control panel. I wish that both of these Control panel options where available under Keystroke Shortcuts. This would allow much faster operation that the long trip for my mouse or pen on my large Wacom board.
    -------> From AI Help file:
    Convert one or more anchor points using the Control panel
    To use the anchor point conversion options in the Control panel, only relevant anchor points, not the entire object, should be selected. If you select multiple objects, one of the objects must be only partially selected. When entire objects are selected, the Control panel options change to those that affect the entire object.
    To convert one or more corner points to smooth points, select the points and then click the Convert Selected Anchor Points To Smooth button in the Control panel.
    To convert one or more smooth points to corner points, select the points and then click the Convert Selected Anchor Points To Corner button in the Control panel.

    The buttons are not recordable.
    > I believe that the only way to covert two corner points (at the exact same location) into smooth points (and thus maintain the exact same path for both)
    Unless I'm misunderstanding your description, Illustator's new but lame convert buttons do not really meet your criteria anyway. The Convert to Smooth button does not merge two coincident corner points on the same path into a single smooth point. You still have two points.
    If the two coincident points are actually endpoints of two separate paths, CtrlShiftAlt-J will average their positions, join and merge them.
    The convert point type commands should be located in proper contextual cursor menus in AI. But AI does not really have proper contextual cursor menus.
    AI's confused interface has pretty much run out of practical keyboard shortcuts.
    Illustrator's new convert anchorpoint buttons are very lame compared to the features that have long existed in Adobe's other drawing program, FreeHand. The convert to corner button should not retract existing handles. The convert to smooth should not always extend handles. Provision should be made for individual retraction/auto-extension when converting.
    We are not seeing Adobe leverage the rights to better functionality it gained when it acquired Macromedia. We are only seeing cheap, piecemeal imitations and lip-service toward the still-superior functionality in the acquired program.
    JET

Maybe you are looking for

  • ITunes media on a server

    My mac was stolen but I have all my media on an external hard drive. I want to see if I can make do with just an ipad and not a mac. I intend to get a synology NAS and put all my files on there. How do I arrange the media on the synology NAS and then

  • Multiple loaders, one complete event

    Hi, What i have: I have a buch of data stored in a sqlite db. Getting that data is no problem. With that data i get 2 image paths to locally stored images. Now i want to send the data to a server using a remoteObject and amfphp. Getting to the server

  • Can't see HIDDEN items in App Store

    When I view my App Store account, it says I have 2 hidden items. However, when I click to view the hidden items, it says I have no hidden items. The only thing I can come up with is that at some point in time, I had two apps hidden that have since be

  • How do I shorten my file names

    I have my catalog the way it should be but the file names seem to go forever. example top 45 copy 11111111111111.edit can I like turn them back to a simple file name I have thousands I need to do this to

  • Calibration: iMac displays grey as white

    I bought a hardware calibration tool (Spyder 3 Express) to adjust my Mac's monitor (iMac 27" 2011). Everything looks fine, but yesterday I saw a photo of me on another monitor and noticed a greyish background. My iMac displays pure white and I didn't