mahiv / ziggis

Automatically exported from code.google.com/p/ziggis
0 stars 0 forks source link

Spatial Reference for Feature Class is not set #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This should be simple to solve.
Looks like the srid is always set to -1 (undefined) even if it is correctly
read from PostGis spatial_ref_sys with the following sql:

select g.*,g.oid,s.srtext from geometry_columns as g left join
spatial_ref_sys as s on g.srid=s.srid where f_table_schema='public' and
f_table_name='zone'

I think when the Feature Class is instantiated the Spatial Reference should
be set according to the correct srid.

Original issue reported on code.google.com by pco...@gmail.com on 2 Jan 2007 at 9:48

GoogleCodeExporter commented 8 years ago
Are you aware in ArcObjects that the "FactoryCode" property of a 
SpatialReference is
the same as the SRID?  It looks like you're setting the spatial reference via 
the
text representation.  You can just set the FactoryCode =  srid.
Bruce Rindahl

Original comment by bruce.ri...@gmail.com on 22 Feb 2007 at 6:30

GoogleCodeExporter commented 8 years ago
Hi Bruce
we are doing it by using the FactoryCode, of course, putting FactoryCode = srid 
as
you say
there are 2 issues, in any case:
1) srid=-1 is FactoryCode=0, this caused us some issue, we have solved that
2) AFAIK the complete srid list in PostGIS could be different for some 
projections
from the Esri Factory Code lists, this could cause failing many PostGIS layers 
that
fall in this category, but untill now we didn't get negative feedback

in any case thanks for your feedback
Paolo

Original comment by pco...@gmail.com on 22 Feb 2007 at 6:43

GoogleCodeExporter commented 8 years ago
Glad you found it.  You know I asked ESRI tech support last year if the SRID 
value
was supported and they answered no.  When I found this value as a fluke they 
had no
idea about it and there was no documentation anywhere.

I can't get zigGIS to work yet - I just filed an incident report.

Thanks!
Bruce 

Original comment by bruce.ri...@gmail.com on 23 Feb 2007 at 12:06

GoogleCodeExporter commented 8 years ago
this was solved.

Original comment by pco...@gmail.com on 6 Mar 2007 at 5:02