Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

We have an Esri based system in production; a complicated data model with a large number of feature classes. We need to migrate the data to another spatial reference.

The feature classes have class extensions and relationship classes defined on them, so the behaviour of creating new feature classes for the reprojection result that the standard projection geoprocessing tool exhibits is very cumbersome (class extensions and relationships are lost).

If necessary, we'll code up a solution but would prefer not to. Is it somehow possible, using standard or 3rd party extensions, to do a bulk, in-place reprojection and setting of new spatial reference?

Thanks!

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

The answer will depend on your class extensions. In reply to George's Answer you have mentioned that

as the geometry will be projected back to the projection set on the feature class when persisted after the change

This leads me to believe that your custom class extension is validating the geometry and checking the spatial reference as well.

share|improve this answer
add comment

That it is possible. When you grab an IGeometry object (such as a geometry for a certain record in a feature class, you can use the Project(ISpatialReference on it). After that, only save the edit and I think you're done. The problem is that you will be reprojecting the original data.

An ideal solution would creating a duplicate of your database, and then using search/update cursors, you reproject each geometry.

I'm pretty sure there might be easier / more efficient ways of doing it, but that should work.

I also would like to know alternatives to this problem.

share|improve this answer
    
First, I was looking, as described, for a way to achieve it withs standard ArcMap/GeoProcessing. ;) Second, the suggestion you give will not work (we already tried that), as the geometry will be projected back to the projection set on the feature class when persisted after the change. –  Cumbayah Jul 29 '10 at 7:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.