Skip to content

Instantly share code, notes, and snippets.

@eMerzh
Created May 20, 2013 17:01
Show Gist options
  • Save eMerzh/5613601 to your computer and use it in GitHub Desktop.
Save eMerzh/5613601 to your computer and use it in GitHub Desktop.
Postgis Numeric : postgis-2.0.3/loader/shp2pgsql-core.c
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