# Error: Invalid coordinateSystemFlag value

**URL:** <https://discourse.slicer.org/t/error-invalid-coordinatesystemflag-value/12957>\
**Category:** Support\
**Created:** [August 12, 2020, 3:58am UTC](https://discourse.slicer.org/t/error-invalid-coordinatesystemflag-value/12957 "2020-08-12T03:58:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![szhang](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@szhang](https://discourse.slicer.org/u/szhang)\
**Post date:** [August 12, 2020, 3:58am UTC](https://discourse.slicer.org/t/error-invalid-coordinatesystemflag-value/12957/1 "2020-08-12T03:58:45Z")

</div>

Hello  
In Error log, there comes an error showing “VTK: Invalid coordinateSystemFlag value:0”, how to fix this, by coordinate system conversion?  
It looks like _coordinateSystemFlag_ = 0 for RAS system which is used by Slicer, then why is it problematic?

Thank you!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 12, 2020, 6:45pm UTC](https://discourse.slicer.org/t/error-invalid-coordinatesystemflag-value/12957/2 "2020-08-12T18:45:13Z")

</div>

Thanks for reporting this. `Invalid coordinateSystemFlag value` is reported when you run a CLI module that does not specify `coordinateSystem="lps"`. As long as you specify `lps` or `ras` as coordinate system, you can ignore this warning (and I’ll push a fix today to prevent displaying warning in this case).

---

<div class="post-metadata">

**Author:** ![szhang](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@szhang](https://discourse.slicer.org/u/szhang)\
**Post date:** [August 12, 2020, 7:21pm UTC](https://discourse.slicer.org/t/error-invalid-coordinatesystemflag-value/12957/3 "2020-08-12T19:21:35Z")

</div>

Thank you, great to know!  
May I learn how to specify coordinate system in the module? doesn’t it depend on the configuration associated with the data being imported? or since mostly we import DICOM, by default it is set like this?

> int coordinateSystem = vtkMRMLStorageNode::CoordinateSystemLPS

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 12, 2020, 7:23pm UTC](https://discourse.slicer.org/t/error-invalid-coordinatesystemflag-value/12957/4 "2020-08-12T19:23:33Z")

</div>

See an example how to specify coordinate system for input points here:

> <https://github.com/Slicer/Slicer/blob/ebc74c7ca99c28a395ebc099a14b002fb28decf1/Modules/CLI/ACPCTransform/ACPCTransform.xml#L15>
