ShapefileReaderJGeom LRS

Hi.
Does anyonr have sample code for converting ESRI shape files with PolylineM features to SDO using ShapefileReaderJGeom Class? I have Oracle 10g r2 and the latest sdoapi library. It always fails during getGeometry / getGeometryBytes method. Perhaps I'm not passing the correct arguments but the javadoc is very vague and is lacking samples.
Thansks!
BC
Here's the code I used as my basis:
import oracle.spatial.util.*;
import java.sql.*;
import oracle.sql.STRUCT;
import oracle.jdbc.driver.*;
import oracle.spatial.geometry.JGeometry;
public class Shape2JGeom2
//Standard constructor
public Shape2JGeom2()
public static void main(String[] args)
Shape2JGeom2 shape2JGeom = new Shape2JGeom2();
//ESRI shapefile (.dbf, .shx and .shp files)
String shapefile = "d:/code/spatial/states";
int shpRecords;
int dim = 2;
String url = "jdbc:oracle:thin:@truth.oraclecorp.com:1521:orcl";
String username = "scott";
String password = "tiger";
Connection conn = null;
try
DriverManager.registerDriver(new OracleDriver());
conn = DriverManager.getConnection(url, username, password);
catch (Exception e)
e.printStackTrace();
try
//New ESRI shapefile reader which includes methods for object extraction and description
ShapefileReaderJGeom sfr = new ShapefileReaderJGeom(shapefile,dim);
shpRecords = sfr.numRecords();
System.out.println("The number of records in this ESRI shapefile is: " + shpRecords);
PreparedStatement ps = conn.prepareStatement("insert into states_test (id,geom) values(?,?)");
for (int i = 0;i<shpRecords;i++)
//Extract bytes out of ESRI shapefile and create an Oracle JGeometry object
JGeometry jgeom = sfr.getGeometry(sfr.getGeometryBytes(i,dim),dim,0);
//Convert JGeometry instance to DB STRUCT
STRUCT obj = JGeometry.store(jgeom, conn);
//Insert id and JGeometry (as SDO_GEOMETRY) into Oracle DB table
ps.setInt(1,i);
ps.setObject(2, obj);
ps.execute();
System.out.println("Record " + i + " inserted into the database");
ps.close();
conn.close();
catch (Exception e)
e.printStackTrace();
}

Dan,
I was never able to get the java-based shapefile converter to work with polylineM features. The following thread details the error message returned: Java SDOAPI error
Thanks.
BC

Similar Messages

  • Index on LRS returning error

    Hello
    We running some test on Oracle Spatial 8.1.7 on NT using LRS.
    After conversion our test dataset (roads) into LRS, we're trying to create an index
    on the geometry column.
    We're receiving the following error:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-22060: argument [2] is an invalid or uninitialized number
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 8
    ORA-06512: at line 1
    I ran already through the similar issues in the forum so I already checked
    the SRID issues; Metadata issues: no problem here.
    We recently added the patch 571278 for bug 1575474.
    any idea what's causing this error?
    tx
    Luc

    We did found the problem after extensive search and testing...
    We used an sql statement for updating the metadatadefinition when we converted our dataset into an LRS.
    For the DIM_ELEMENT of the Measures we used:
    MDSYS.SDO_DIM_ELEMENT('M', NULL, NULL, NULL)
    This is apparently causing the errors.
    Although you have to exclude the M dimension when building the spatial index, the Upper and lower bounds may not have a NULL value.
    Luc

  • Questions on the LRS network model.

    On page 6-26 of the "Oracle Spatial Topology and Network Data Models" documentation, the example shows that measures are recorded in the 'roads' table (i.e. the one with the geometry of the feature).
    1. Why in this example is 'null' used for Node 5 ('...automatically calculated and filled...') but not the others?
    2. Why in this example is measure even necessary? There is no link to the underlying route from this table (i.e. measures should only be recorded in the context of a given route).
    3. It seems like this measure is merely the offset from the starting vertex (not true LRS); do we have the wrong interpretation?
    On Page 6-30, the example shows that measures are recorded for each Node and each Link. We had envisioned nodes and links being separate from the route they play a role upon. For example, if the same node was part of two distinct routes, does this mean storing two rows in "road_nodes"? But they're the exact same location and the same node in our network. The same question applies to the 'road_links' table. If the answer is 'duplicate the rows' in nodes and links (once per route), why doesn't 10g Spatial record 'measure' in the "road_paths" table? Note that, on page 6-31, it says that it is '...for possible future use...'...
    This example also implies the rows in the roads table are replicated as the (m)easure of the geometry column would change based on the route involved? If this is not the case why store the measure in the geometry column at all?

    Hi,
    My name is Gary Wong, and the original poster was asking these questions on my behalf. I'd like to continue the thread below in-line....
    A: This is a basic LRS concept. You can have some NULL
    measure values, and LRS can compute the actual measure
    corresponding to a NULL value. This has nothing to do
    with Network modeling, so you can assume a valid
    measure value here for this example.So this was just an example showing both 'manually calculated and entered' and 'let Spatial figure it out'? As this is merely the offset from the starting point, wouldn't a user always use NULL to let Spatial figure it out? It seems like this model will always use whole links in a contiguous fashion, so when would the measure not be the cumulative total?
    2. Why in this example is measure even necessary? There
    is no link to the underlying route from this table
    (i.e. measures should only be recorded in the context
    of a given route).So in this model (and example), the entry in roads is the route itself? Other LRS models allow the re-use of a common route, so multiple entries in the roads table would reference the same route (in another table). A real-life example is a single straight road that has different names, or has different road surface, or road classifications.
    Folowing this example, if I wanted to spatially reference some other business attribution on an existing route, say R1, would I have to create another entry in roads and duplicate the data? Even if it has the same start/end locations and path?
    A: Measure is always an offset from the start vertex
    and this is true for any LRS system. I am not sure what
    you mean by "not true LRS".My mistake in using these words; there is no true LRS, just different models/implementations of it =8^). Other LRS systems can have a measure beginning, say 2.5 metres after the starting node (node, not vertex; I define a vertex as as one of co-ordinates defining the link, and node as a topologically significant vertex such as the start and end vertices).
    Hmmm, does this answer my first question above? If you wished to start a road (as per the example) slightly off of a node, would you enter a non-zero measure as the initial co-ordinate?
    Assuming I'm on the right track (i.e. cannot re-use a route), does anyone know if Oracle plans to implement this kind of LRS in 10g Spatial?
    I see a cryptic ".. for possible future use..." reference on page 6-31 regarding the create_path_table() and create_path_link_table() methods.
    Is this future use to allow multiple uses and references of a route?
    Thanks and sorry for the loooong email..
    gary

  • Is there a serious flaw in LRs Print Module?

    I have been having no end of difficulty getting a decent print from LR. The more I search for answers the more I find that others have the same issue. It seems to be related mostly to Canon and HP printers. Most Epson users indicate they are getting great prints.
    Multiple combinations of settings have been suggested (all from very helpful folks, thks!) but all attempts have not produced anything remotely close to whats on the screen. PSE3 prints perfectly for me, and other comments indicate that CS2&3 and PSE4&5 also deliver superior results to LR.
    It seems that there a serious problem with LRs Print Module whereby it cannot interpret and convert profiles properly? Has this been officially addressed by Adobe? If so, please direct to where I can find that information, please.
    Dont misunderstand me, LR is a fantastic program and a very powerful RAW workflow tool. Even the Print Module has some really cool stuff, but not so cool when the colours dont come out close to the original.
    Where does one go from here to find a solution to this problem?

    Hi Dave
    I posted this earlier in this thread about CS3 printing problems that Adobe has addressed and I just reviewed it again and noticed some common problems under the "Issues Fixed in this Release" as follows:
    "Color matching is now correct on BPE printers (notably the Epson 3800) when Photoshop is set to handle color management."
    "BPE Printers expect a Profile to be passed when Photoshop manages color. Photoshop now passes the Profile."
    "Epson 2400 driver no longer does double color profiling when PS is handling the color management and we explicitly turn off Epson color management in the Print dialog."
    "Color management will now produce identical results on Intel and PowerPC-based Macs."
    "Correct Page Setup now comes up in the Print dialog when you change printers to print different documents."
    "Page Setup would sometimes show the preferences for a previously selected printer."
    "RGB to CMYK conversion with a specific ICC profile and Adobe(ACE) engine is fixed."
    "Specific types of ICC profiles were being incorrectly converted. Converted images would appear close to black, if not entirely black."
    These appear to be the same issues that are happening in LR that require a similar fix that CS3 required.
    Here's the link again:
    http://www.adobe.com/support/photoshop/ts/documents/kb402846/PhotoshopPrintingNotes.pdf

  • SDO_UTIL.APPEND strips away LRS dimensions

    Hi folks,
    Checking over the forum it seems I did note this issue in passing a year ago
    https://community.oracle.com/message/11033886#11033886
    But it came out to bite me today.  It does seem true that I flog poor old SDO_UTIL.APPEND every-so-often and perhaps I should find other interests.
    I am thinking this is probably a "feature" and a small blurb should be added to the documentation for the function.  SDO_UTIL.APPEND simply says of itself, "Appends one geometry to another geometry to create a new geometry."
    There is no mention of what types of geometries you should or should not feed to it.
    However feeding LRS geometries to SDO_UTIL.APPEND is a bad idea (see below) as the function destroys the LRS dimension from the SDO_GTYPE producing a 3D geometry.  I guess that I should be using SDO_LRS.CONCATENATE_GEOM_SEGMENTS though I am not interested in this case in merging the geometries, I just want to house them together in a multi-geometry.  I think this is what SDO_UTIL.APPEND was meant for.
    Assuming this is just a feature, perhaps Oracle could add a note on the SDO_UTIL.APPEND page that the function is not valid for LRS geometries?  Or is this a bug? 
    Cheers,
    Paul
    ON 11GR2:
    SELECT
    SDO_UTIL.APPEND(
        SDO_GEOMETRY(3302,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(1,1,1, 2,2,2))
       ,SDO_GEOMETRY(3302,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(3,3,3, 4,4,4))
    FROM dual;
    RESULT:
    SDO_GEOMETRY(3006,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,2,1,7,2,1),SDO_ORDINATE_ARRAY(1,1,1,2,2,2,3,3,3,4,4,4))

    Paul,
    My take on append, is that it will just stuff the first and the second geometries together with no logic applied. So although your example result geometry just happens to work out, there is no logic given to the measure portion of the LRS. The measure can be a distance, say meters for Lat/Lon - or it can be some arbitrary scale such as the percentage of a city block going from 0 to 1. Since append would have no knowledge of how your two line stings are to be stuck together, you could easily wind up with:
    SELECT
    SDO_UTIL.APPEND(  
        SDO_GEOMETRY(3302,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(3,3,3, 4,4,4)),
        SDO_GEOMETRY(3302,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(1,1,1, 2,2,2))
    FROM dual;
    RESULT:
    SDO_GEOMETRY(3006,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,2,1,7,2,1),SDO_ORDINATE_ARRAY(3,3,3,4,4,4,1,1,1,2,2,2))
    ...that of course is completely invalid as the measure is not progressing in order:
    SELECT
    SDO_LRS.VALIDATE_LRS_GEOMETRY(
       SDO_GEOMETRY(3306,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,2,1,7,2,1),SDO_ORDINATE_ARRAY(3,3,3,4,4,4,1,1,1,2,2,2))
    FROM
    dual;
    RESULT ON 11.2.0.4.2: 13335
    ORA-13335 LRS segment is not defined
    Cause: The given start or end measures are not defined, or some assigned measures in between are not in an ascending order.
    Action: An LRS geometric segment is defined if its start and end measure are assigned (non-null). Any other measures assigned on the segment must be in an ascending order.
    Bryan
    PS - Yes, I agree on the error message - or more so, on checking for valid inputs to start with. However, I do get the idea that doing so on something that is called millions or billions of times in a row, can cause it to run slightly slower. All in all, I'd personally rather have validity checks that a routine that runs 2% faster and can give me invalid answers.

  • "invalid LRS segment" when querying an Oracle Spatial DB

    I have a table of GIS segments in an Oracle Spatial database. I'm using C# and ODP to connect to the database. For a given measure from the start of a segment, I want to find the GPS coordinates for that point. I'm running the following query:
    select g.geom.sdo_ordinates ord_array from
    *(select sdo_lrs.locate_pt(shape,0.02,0) as geom from test_schema.test_table*
    where route='ABC' and segmentnum='101.1') g
    where shape is of type SDO_GEOMETRY. I'm getting the following error:
    ORA-13331: invalid LRS segment
    Is there a problem with how I'm passing shape to locate_pt()? The Oracle Spatial documentation says the argument should be SDO_geometry, so that seems ok.
    Edited by: 964844 on Oct 11, 2012 2:10 PM

    I'm using C# with ODP.NET.
    Here is the current version of the code that is failing:
    var param = new OracleParameter("geom", OracleDbType.Object);
    param.UdtTypeName = "MDSYS.SDO_GEOMETRY";
    param.Direction = ParameterDirection.Input;
    OracleCommand oCmd = new OracleCommand();
    oCmd.Connection = this.oConn;
    oCmd.CommandText = queryStr;
    oCmd.CommandType = CommandType.Text;
    oCmd.Parameters.Add(param);
    OracleDataAdapter da = new OracleDataAdapter(oCmd);
    DataTable dt = new DataTable();
    da.Fill(dt);
    The exception is generated by the da.Fill(dt) line.

  • Oracle Spatial LRS point X and Y.

    I’m having some problems with LRS points.
    Two tables: A and b. Table A contains valid LRS linestrings; table B (non spatial) is a list of points with stated eastings and northings columns that exist in close proximity to the linestrings. Points are associated to the linestring by a.unique_id.
    I’m successfully projecting the b.points onto their a.linestrings using SDO_LRS.PROJECT_PT passing the a.geometry and constructing a geometry from b.eastings and b.northings.
    So far so good. I can get the measure by nesting SDO_LRS.GET_MEASURE; and offset with SDO_LRS.GET_OFFSET. Meaning that the returned value from SDO_LRS.PROJECT_PT is a valid LRS point (SDO_GTYPE=3301):
    (3301, 81989, (0, 0, ), (1, 1, 1, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ), (525121.71247406, 185976.696321595, 21.4631188722804, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ))
    This is my problem: how do I extract the X and Y from the SDO_LRS.PROJECT_PT returned value?
    This work so far:
    SELECT a.unique_id,
    b.point_id,
    SDO_LRS.GET_MEASURE
    SDO_LRS.PROJECT_PT
    a.geoloc,
    b.SDO_GEOMETRY (2001,81989,SDO_POINT_TYPE(b.def_easting,b.def_northing,NULL),NULL,NULL)
    ABS(SDO_LRS.FIND_OFFSET
    a.geoloc,
    b.SDO_GEOMETRY (2001,81989,SDO_POINT_TYPE(b.def_easting,b.def_northing,NULL),NULL,NULL)
    FROM road_network a,points b
    WHERE a.unique_id = b.roads_id
    I’d like to add the following selections but it does not work:
    SDO_LRS.PROJECT_PT
    a.geoloc,
    b.SDO_GEOMETRY (2001,81989,SDO_POINT_TYPE(b.def_easting,b.def_northing,NULL),NULL,NULL)
    ).SDO_POINT.X,
    SDO_LRS.PROJECT_PT
    a.geoloc,
    b.SDO_GEOMETRY (2001,81989,SDO_POINT_TYPE(b.def_easting,b.def_northing,NULL),NULL,NULL)
    ).SDO_POINT.Y
    And this one neither (just a couple of brackets, sign of desperation!):
    (SDO_LRS.PROJECT_PT
    a.geoloc,
    b.SDO_GEOMETRY (2001,81989,SDO_POINT_TYPE(b.def_easting,b.def_northing,NULL),NULL,NULL)
    )).SDO_POINT.X
    (SDO_LRS.PROJECT_PT
    a.geoloc,
    b.SDO_GEOMETRY (2001,81989,SDO_POINT_TYPE(b.def_easting,b.def_northing,NULL),NULL,NULL)
    )).SDO_POINT.Y
    It always returns 0.
    When you look at the SDO_LRS.PROJECT_PT returned value you’ll see the following only ordinates: 525121.71247406, 185976.696321595, 21.4631188722804
    525121.71247406 being the X;
    185976.696321595 the Y; and
    21.4631188722804 the LRS measure.
    So, how do I get those X and Y as part of my query results? Thanks.
    Edited by: JG1981 on Jun 25, 2010 3:30 PM

    A bit of time has past... I got back to this piece of work again. Thanks for the tips above, I’ve successfully implemented some of those. It works, but it’s too slow for production.
    To summarise, this is the real world problem I’m dealing with:
    Let’s say I’ve got a table containing pedestrian’s footways; each footway is referenced to its road network section (link), many footways records to one section. I have to calculate the length of each individual footway along its road section.
    Theoretically this is done by projecting all the footway vertices onto its road section and returning the difference between the highest LRS value and the lowest. The problem is slightly made worse by the fact that each footway polygon can actually be made up of multiple elements (multipolygon).
    The following is a sort of high level logic. I’d like to know if any of you agree with this:
    1.     A temporary table t is created and populated with the following columns:
    a.     Footway_id  existing identifier;
    b.     Element_id  sequential and unique to the footway record;
    c.     Vertices  LRS point (projected point);
    2.     The table t is then queried: for each footway[sum[ each element (maxLRS-minLRS)]], in short, for each footway multipolygon the length of each element is added together to give the total length of the footway.
    Is this too clumsy? Is there another way to go about? Perhaps without the use of a temporary table? Any suggestion’s welcome.
    Thanks

  • Convert from ordinary geometry to LRS geometry

    Hi
    I have converted line geometry to LRS geometry by using the block as given below. I also created metadata for X,Y,M before converting to LRS.
    BEGIN
    IF (SDO_LRS.CONVERT_TO_LRS_LAYER('centerline', 'GEOMETRY') = 'TRUE')
    THEN
    DBMS_OUTPUT.PUT_LINE('Conversion from STD_LAYER to LRS_LAYER succeeded.');
    ELSE
    DBMS_OUTPUT.PUT_LINE('Conversion from STD_LAYER to LRS_LAYER failed.');
    END IF;
    END;
    The conversion is succesful but there are two problems after conversiion:
    (1) SDO_GTYPE, it is 4402 instead of 3302
    (2) The measures are zero
    SQL> select a.geometry.sdo_gtype from centerline a;
    GEOMETRY.SDO_GTYPE
    4002
    4002
    4002
    4002
    SQL> select a.geometry.sdo_ordinates from centerline a;
    GEOMETRY.SDO_ORDINATES
    SDO_ORDINATE_ARRAY(-118.43115, 33.949104, 0, 0)
    SDO_ORDINATE_ARRAY(-118.41902, 33.93364, 0, 0)
    SDO_ORDINATE_ARRAY(-118.41934, 33.935822, 0, 0)
    SDO_ORDINATE_ARRAY(-118.43423, 33.946848, 0, 0)
    Can you help me to convert sdo_gtype to 3302 and how to update measures based on geometry length ??
    Thanks
    Syed Masood

    Hi Syed
    You have not given all details to completely check what you have done or how your source data looks like.
    This feedback is based on the elements you have given.
    The resulting LRS has gtype 4402, this means your input geometry had gtype 3002.
    At the same time, as your resulting LRS geom has only 4 ordinates, means that your input geometry had only 3 ordinates.
    This means that your input geometry was a 3D point.
    The result is an LRS point, with a measure 0 at the start point (itself).
    For 3D geometries there are LRS_3D functions dealing with 3D, however they do not cope with geodetic (latlon) type of geometries, I believe.
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28400/sdo_lrs_concepts.htm#i890852
    What you can do is turn your 3D input geometries into 2D before converting them to LRS geometries, as this seems what your after (with the question to have gtypes 3302), obvisouly you will loose your z info.
    select SDO_LRS.CONVERT_TO_LRS_GEOM(sdo_cs.make_2d(SDO_GEOMETRY(3002, 4326, NULL,
    SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(-118.43115, 33.949104, 0)))) from dual;
    But you will have to check the input as being line strings first.
    Please check this first, if you need more help, post one of your input geometries to start with.
    I hope this helps. (should you feel the same, please mark the post as helpful or as correct answer)
    Luc

  • Urgent - Please help me on Linera Refrencing System-LRS

    Oracle Spatial - Linear Referencing System (LRS)question
    We are building a Highway Database management system and would like to implement Oracle Spatial- Linear Refrencing System-LRS . I have found some example at http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/inter.817/a85337/sdo_lrsa.htm#884429 . In this example Oracle has used coordinats ie x and y . I know that major advantage of using LRS is its capability of locating attributes and events along a linear feature with only one parameter (usually known as measure) instead of two (such as latitude/longitude or x/y in Cartesian space). How can I use one parameter and in my case it is MEASURE (mile point) like 10, 20, 40, etc to build my route geometry in this situation. I tried to do following in my route table but when I tried to validate the route , it gave me error- FALSE.
    Here is my insert statement in route table lrs_routes with column route_id, route_name and route_geometry of the type MDSYS.SDO_GEOMETRY.
    INSERT INTO lrs_routes VALUES(
    3,
    'Route-3',
    MDSYS.SDO_GEOMETRY(
    3001,
    NULL,
    NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),
    MDSYS.SDO_ORDINATE_ARRAY(
    0,
    1.57,
    1.62,
    2.7,
    7.5,
    8.9,
    53.6,
    55.4,
    57.6,
    60.2,
    70.99,
    71.54,
    73.97,
    77.21,
    83.56,
    89.59,
    91.29
    I will appreciate your input.
    Thank you.
    Syed

    Dave,
    I am using 8i - 8.17. Thanks for the update. One more question I would like to ask, do you have any background of designing a spatial Database? I am responsible to design our Route System using LRS and as you know each route at one mile point may have several featuers such as 'payment Type', 'Payment width', 'Median type', 'Posted Speed limit' etc . One mile point may have upto 90 features in my case. I am planning to create two tables one to hold just route name, route type and the geometry , something similar to following
    s_routes tables
    (route_id number,
    route_name varchar2(40),
    route_type varchar2(5), -- HiGHWAY or LOCAL
    route_geometry MDSYS.SDO_GEOMETRY)
    second table will hold all the features of the route
    s_route_features
    (route_id number, - -Foreigh key from s_routes
    rf_id number, -- route feature id , primary key concate with route_id
    attribute_name varchar2(50), -- Payment type, median width etc
    begin_milepoint number,
    end_milepoint number,
    utm_x number,
    utm_y number
    I am storing my route geometry in the first table and all the featuers/attributes in the second table.
    Second table can hold upto 5000 records for one route only , because for each milepoint there can be several route attributes and theer can be several begin mile point
    My question is , lets say the length of a route is 180 miles and I want to divide this route into two at some point say at 75 , so how can I divide one route into two routes and at the same time I would like to divide my route features in the s_route_features . In other words route one will hold feature upto 75 miles and second route will hold features starting from 76 to 180 miles and the length of the second route will be 105 ( 180 minus 75) .
    Let me know if it make sence to you.
    Thanks
    Syed
    Syed

  • How to configure lrs-vpsx printer soltion for Oracle EBS 11.5.10.2 on RHEL5

    currently we are using cups fot printing , we are planing to replace cups with lrs-vpsx .
    could you please provide me the configuration steps.

    user612416 wrote:
    currently we are using cups fot printing , we are planing to replace cups with lrs-vpsx .
    could you please provide me the configuration steps.https://forums.oracle.com/forums/search.jspa?threadID=&q=Printer+AND+Setup&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Confirmed LRS at point of order but monthly LR cha...

    Hi - I ordered BTI2 on bt.com end of April when LRS was at £141 and received an order confirmation for that via email. Now I received my first bill and the line rental is charged at £15.99 and LRS is not activated. I called BT support but after 20 min without solving the issue they referred me to send a letter by post to their BT Correspondence Centre in Durham!! The only option I have is to upgrade to LRS moving forward which means I pay the increased rate of £15.99 x 10!! How can BT change my LRS order initially?? Even though I ordered LRS it is now on monthly payment. Could someone please help?

    conrad wrote:
    See this post https://community.bt.com/t5/Bills-Packages/Expected-To-Pay-For-BT-Clerical-Error-When-Package-Not-Ad...
    I thought that LRS had to be paid for when you ordered it , on-line or over the phone even if it was in advance of the start date.
    The times I have ordered LRS I had to pay the amount immediately. My daughter is moving to BT and had to pay LRS when placing the order even though activation was 4 weeks away
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Convert non-LRS point to LRS-point

    Can you please show me how to convert a non-LRS point to a LRS point?
    The sdo_lrs.convert_to_lrs_geom function does not work with points. It returns an error:
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "MDSYS.SDO_LRS", line 1767
    Thanks
    Dave

    I got around this by creating a sql script of insert statements to insert LRS points into another table:
    spool c:\temp\convert_to_lrs_pt.sql
    set serveroutput on
    declare
    x number;
    y number;
    z number;
    CURSOR POINTS_CURSOR IS
    SELECT GEOM,FID FROM INV_TRFC_STN where fid < 3000;
    myCURSOR POINTS_CURSOR%ROWTYPE;
    begin
    DBMS_OUTPUT.ENABLE(1000000);
    for myCURSOR in POINTS_CURSOR
    LOOP
    x := myCURSOR.geom.sdo_point.x;
    y := myCURSOR.geom.sdo_point.y;
    dbms_output.put_line ('insert into test2 values ');
    dbms_output.put_line ('(mdsys.sdo_geometry(3001,41141,NULL,mdsys.sdo_elem_info_array(1,1,1),');
    dbms_output.put_line ('mdsys.sdo_ordinate_array(' &#0124; &#0124; x &#0124; &#0124; ',' &#0124; &#0124; y &#0124; &#0124; ', NULL)),' &#0124; &#0124; myCURSOR.FID &#0124; &#0124; ');');
    end loop;
    end;
    spool off
    But if there is another way I would really like to know.
    Thanks
    Dave

  • What is LRS, and how do I change it to MPEG?

    When I tried moving my library between computers, I went through the whole consolidate library, using the iPod as a hard drive spiel. For some reason, all of my songs became what the computer is calling LRS files, and so iTunes will not play any of them. What is LRS, why did they change, and how do I/can I change them back to mp3s and mpegs? Please help! I don't want to lose my library!

    that's picas (12 points). change it in your new document setup

  • Oracle Spatial - LRS component

    Hello,
    I am working as a consultant for a transportation department for building Highway Database Management system .Transportation department uses several Linear Referncing Methods such as Milepoint, Station, Refrence Marker etc to locate an attribute on a route . I am new to Oracle - LRS but have heared that by implementing Oracle-LRS , it can locate route attribute and events by one measure and not with x and y coordinate. Does anyone have implemented Oracle-LRS , if so I would like to know how can I design my dastabase based on LRS.
    What other problems Oracle LRS can solve in my case ?
    I will appreciate if some one can pass me design code etc to look into.
    Thank you.
    Suhail

    Thanks for your advice . I donot have 9i but hope to get very soon, I will give a shot then . One more thing which you mentioned in your previous answer is that one has to write extensive PL/SQL code to use LRS. In my case , I have a simple table of roads and would like to clip a segment of road dynamically and then based on the result I would like to fetch some data from other tables . But I lost here, because I donot have a way to relate data in the other table. I have a simple table say routes to store road geometry and in other route_features table I am storing road features ( attribute of the table is rc_id (pk),route_id_fk,feature_id_fk,feature_value,begin_milepoint,end_milepoint. Both tables are related with one key ie ROUTE_ID .I want to clip a segment of route from first table and then would like to get the data from the second table. I have no idea how I can accomplish this in PL/SQL. Here is my code what I am trying to do
    SQL> SELECT SDO_LRS.CLIP_GEOM_SEGMENT(route_geometry, 15, 30)
    2 FROM routes WHERE route_id = 1;
    SDO_LRS.CLIP_GEOM_SEGMENT(ROUTE_GEOMETRY,5,10)(SDO_GTYPE, SDO_SRID, SDO_POINT(X,
    SDO_GEOMETRY(3302, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
    5, 4, 5, 8, 4, 8, 10, 4, 10))
    Now in the above result I have the output which is based on x,y,m . How I can use this to get feature_id_fk,feature_value data from teh second table? This is what you mentioned that requires lotof Pl/SQL programming. Could you share soem code here how to accomplis my task.
    I will appreciate your input.
    Thank you.
    Suhail

  • Problem working out measures on LRS segment

    Hi,
    I'm working on an app to work out waiting times of conmuters at bus stops. I chose the approach of using measures to assign times in stops from the start of the line, e.g.
    STOP1 is (x1,y1,0)
    STOP2 is (x2,y2,17)
    etc
    The stops are the points defining LRS line string with geodetic coordinates.
    It works fine projecting points (buses' positions) on the line string which gives me the measure of all buses and from it I can calculate the min time to a stop among all buses.
    The problem is, some of the routes are not simple line like 1----2------------3-------4, but they have sections where the bus leaves the motorway at an exit, runs down a road to a stop, and comes back to the motorway up the same road to the same exit, something like (dots are countryside ;-)):
    1----------2-------------3-------------5
    ...........................|...............
    ...........................|...............
    ..........................4...............
    When I try to project a point between 3 and 4, Oracle gives wrong results (measures that correspond to the 1-2 segment).
    Is my approach wrong?. Is there a way to deal with this go-and-return using the same road issue?.
    Thank you.

    Hi,thanks for the message yes will post pic later today! cheers

Maybe you are looking for

  • Blue screen 109 error, mini dump attached, please help

    Hi Experts, I am frequently getting blue screen error in my laptop. Please help. The link to minidump file is given below. I am using Windows 7 ultimate operating system. I have tried a lot of things to avoid this dump but it keep recurring. https://

  • Uninstall/Install Hootenanny

    Think i messed things up real good here. A few weeks ago, i got a trojan virus on my system. Was able to remove it and do a system restore to an earlier date. Issues were fixed with system. Then i attempted to edit some HTML files in dream weaver and

  • Photo Album from Internet

    Hi, wondered if anyone could help. We are trying to deploy photos of students to staff on their school iPads. The idea is they can be used in something like idoceo. Yes we could send out all pictures but with 1200 students, a lot would be unnecessary

  • Does ATV send output through digital output when TV is turned off?

    I listen to music more than I watch video, therefore the answer to this will factor into my decision to buy ATV and use to select and play music from an iTunes playlist through my home stereo from an iOS device......thanks!

  • Send ACC_GL_POSTING01 idocs to another system?

    Hi all, i need to send G/L account postings  transaction <b>F-02</b> from one R/3 ro another as soon as the documents is posted or manually distribute through a program. suppose a FI document is posted in source R/3 in <b>company code '<u>18</u>0'  a