English

Error: Error: x,y coordinate expected

Solution or Workaround

Summary

This error occurs while running the MIFSHAPE utility:

Error: x,y coordinate expected.
Line -103.908878 40.001187-103.924129 40.001170
At line 20
Feature Count
Unknown 0
None 0
Point 0
Line 0
Poly 0
Text 0
Items
STREET FROMLEFT TOLEFT FROMRIGHT TORIGHT ZIP_LEFT ZIP_RIGHT
CFCC_CODE ST_COUNTY TLID

Cause

One or more pairs of coordinates in the .MIF file are concatenated (see second and third coordinates in the above error).

Solution

1. Load the .MIF file into a text editor.

2. Search for the line containing the coordinates reported by the error message. For example:

    Line -103.908878  40.001187-103.924129  40.001170  

3. Separate the offending coordinates. For example:

    Line -103.908878  40.001187 -103.924129  40.001170  

4. Run the MIFSHAPE utility again.

Generally, when this occurs, the .MIF file will have numerous coordinate pairs that need to be separated. You may choose to manually search and fix as many pairs as you can before running MISHAPE again, or you may run the utility so the error occurs and you fix one pair of coordinates at the time.