Ticket #339 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

PostGIS defect : Srid is not set properly when creating a FeatureClass

Reported by: bscott Owned by: mloskot
Priority: critical Milestone: 3.4.0
Component: PostGIS Provider Version: 3.3.0
Severity: 2 Keywords: srid srs epsg
Cc: External ID:

Description

PostGIS provider does not support ContextCreation? but does support ContextAssociation? Even if we use FdoGeometricPropertyDefinition::SetSpatialContextAssociation? the table in PostGIS is always created with srid = -1

When a table is created with a postgis tool like shp2pg.exe using a srid The postGIS provider return "PostGIS_srid" as context name. So by calling SetSpatialContextAssociation?("PostGIS_srid") it should create the table with the proper srid

Attachments

postgis_trunk_339.patch Download (0.9 KB) - added by mloskot 4 years ago.
Patch from Bruno Scott

Change History

Changed 4 years ago by mloskot

Patch from Bruno Scott

Changed 4 years ago by mloskot

  • keywords srid srs epsg added
  • status changed from new to assigned

Changed 4 years ago by mloskot

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in trunk (r3950). Bruno, thank you very much for the fix!

Note: See TracTickets for help on using tickets.