Ticket #339 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: bscott Assigned to: 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 (0.9 kB) - added by mloskot on 04/30/08 21:25:14.
Patch from Bruno Scott

Change History

04/30/08 21:25:14 changed by mloskot

  • attachment postgis_trunk_339.patch added.

Patch from Bruno Scott

04/30/08 21:25:24 changed by mloskot

  • keywords set to srid srs epsg.
  • status changed from new to assigned.

05/02/08 11:26:44 changed by mloskot

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

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