As long as you have gdb connections to both you will be able to use esri (catalog) tools to move data between.
You will want to double check your CRS for support in both spatial databases.
If you don't use esri tools you will have to register your data in sde.
You simply mention that oracle supports spatial without saying that your data is in oracle spatial.
There are many things to consider if your data type is spatial (SDO) and especially if you are going to mssql-spatial.
It is possible to use both databasees without using "spatial", and unless you are developing applications and or processing huge amounts of data using the sdo functions I would suggest just using the esri binary format and allowing sde to manage the "spatial".
I am sure all of this sounds very confusing unless you already have some understanding of sde.
If not you can read more here...
ESRI Resource Center.
Edit:
When You define a geodatabase in ESRI you have several choices for the rdbms. Oracle, db2, informix, mssql. among others.
SDE creates all the tables and relationships needed to maintain the data with ESRI. There are several choices for the data type for creating tables. ESRI binary is the normal default for most of these rdbms.
Care should be taken when deciding what format to utilize as access from other applications, and interfaces can be affected by this.
ESRI resources should be able to fill in the rest of the gaps.
Best Answer
What you are asking for is linear referencing. Check out the
SDO_LRS
package for that.First the
SDO_NN
operator will give you the nearest line to a given point, thenSDO_LRS.PROJECT_PT()
against that line will give you a point on the line that contains the measure of that point, i.e. the distance from the start of the line.Here is a complete example. First consider the following two tables
This gets the closest interstate to the Indianapolis:
Let's get the shape of that interstate and turn it into an LRS geometry:
Each point in that geometry carries a measure. By default, measures start at 0 for the first point of the geometry and increase with the length of the line. The measure of the last point is the same as the measured length of the line (in meters).
Now let's project the point onto that line. This returns an LRS point on the line, which contains the measure of that point, i.e. the distance from the start of the line.
And finally, extract that measure: