Skip to content

Commit

Permalink
debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonOmo committed Oct 7, 2024
1 parent 763cef8 commit 8fadc8f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/active_record/connection_adapters/postgis/oid/spatial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ def type
def serialize(value)
return if value.nil?
geo_value = cast_value(value)
if value == "SRID=3785;POINT(1 2)"
puts ?* * 100
puts "@geo_type: #{@geo_type}"
puts "type.to_s: #{type.to_s}"
puts "@srid: #{@srid}"
p spatial_factory
p value
p geo_value
puts
puts
end

# TODO - only valid types should be allowed
# e.g. linestring is not valid for point column
Expand Down

0 comments on commit 8fadc8f

Please sign in to comment.