Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8175707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:52:25+00:00 2026-06-06T22:52:25+00:00

We are a GIS RoR-based software company which works with spatial data. At the

  • 0

We are a GIS RoR-based software company which works with spatial data.
At the present time, we directly execute our pure SQL in Oracle, but it’s a challenging process, now we consider the idea of switching to GeoRuby.
We want to adopt GeoRuby with our corporation’s Oracle database and our Rails environment.
As far as you probably know, there is no well-structured adapter for this purpose.
Presently, I am working on my own spatial oracle adapter.
For now, I can create tables and Geometry columns with migrations. Also, I can manage to create models for a table.
For example, with assumption of having a GeoShape model which have two properties (name:string and geom:geometry), I can do:

g = GeoShape.new(:name => "Point1", geom: Point.from_x_y(-1.6, 2.8, 123))

After executing above statement, I have:

=> #<GeoShape id: nil, name: "Point1", geom: <GeoRuby::SimpleFeatures::Point:0x6a3cb030 @srid=123, @with_z=false, @with_m=false, @y=2.8, @x=-1.6, @z=0.0, @m=0.0>, created_at: nil, updated_at: nil>

Now I want to save my model to DB with g.save.

I am getting the following errors which is completely logical becasue the type mismatch between GeoRuby and Oracle types.

INSERT INTO "GEO_SHAPES" ("CREATED_AT", "GEOM", "ID", "NAME", "UPDATED_AT") VALUES (:a1, :a2, :a3, :a4, :a5)  [["created_at", Sun, 01 Jul 2012 04:34:34 UTC +00:00], ["geom", #<GeoRuby::SimpleFeatures::Point:0x6a3d3410 @srid=123, @with_z=false, @with_m=false, @y=2.8, @x=-1.6, @z=0.0, @m=0.0>], ["id", 10053], ["name", "Point1"], ["updated_at", Sun, 01 Jul 2012 04:34:34 UTC +00:00]]
ActiveRecord::StatementInvalid: OCIError: ORA-00932: inconsistent datatypes: expected MDSYS.SDO_GEOMETRY got CHAR: INSERT INTO "GEO_SHAPES" ("CREATED_AT", "GEOM", "ID", "NAME", "UPDATED_AT") VALUES (:a1, :a2, :a3, :a4, :a5)   

Anyone have any idea regarding the process of doing this?
I guess, I must map my GeoRuby structure to corresponding Oracle SDO_Geometry, but I don’t have any idea about the process.

Thanks very much for your helps.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:52:26+00:00Added an answer on June 6, 2026 at 10:52 pm

    I could manage to do this. Now I can directly save from GeoRuby models to Oracle DB.
    The process is illustrated in this thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does OpenStreetMap just provide GIS data? To render maps and have a browser based
I have the situation where i use GIS software which stores the information about
I'm developing a GIS-based application and I have organized data fro the user to
I draw some GIS data dynamically, based on user's control, into CGImageRef. But how
I've been recently hired by a GIS company to rewrite their old geomatics libraries.
Besides GIS applications, which other applications or libraries use R-trees and its variants?
I have an installed library called Gdal which runs certain GIS commands. This command
For my company in house use i want to develop a gis project with
We're building a GIS interface to display GPS track data, e.g. imagine the raw
If a gis application has some tables which don't have gis related columns, does

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.