Created
May 20, 2013 17:01
-
-
Save eMerzh/5613601 to your computer and use it in GitHub Desktop.
Postgis Numeric : postgis-2.0.3/loader/shp2pgsql-core.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1470,1477c1470 | |
< void removeChar(char *str, char garbage) { | |
< char *src, *dst; | |
< for (src = dst = str; *src != '\0'; src++) { | |
< *dst = *src; | |
< if (*dst != garbage) dst++; | |
< } | |
< *dst = '\0'; | |
< } | |
--- | |
> | |
1489d1481 | |
< char *tmpstr; | |
1560,1563c1552 | |
< // printf("value : %s\n",DBFReadStringAttribute(state->hDBFHandle, item, i) ); | |
< tmpstr = DBFReadStringAttribute(state->hDBFHandle, item, i); | |
< removeChar(tmpstr, ','); | |
< rv = snprintf(val, MAXVALUELEN, "%s", tmpstr); | |
--- | |
> rv = snprintf(val, MAXVALUELEN, "%s", DBFReadStringAttribute(state->hDBFHandle, item, i)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment