Skip to content

Commit

Permalink
cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Jun 6, 2024
1 parent 386845b commit fca42bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inst/include/gdallibrary/gdallibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,10 @@ inline List gdal_read_geometry(CharacterVector dsn,
inline CharacterVector gdal_proj_to_wkt(CharacterVector proj_str) {
OGRSpatialReference oSRS;
char *pszWKT = nullptr;
oSRS.SetFromUserInput(proj_str[0]);

//const char* crs_in[] = {CHAR(STRING_ELT(proj_str, 0))};

oSRS.SetFromUserInput(const char* proj_str[0]);
// #if GDAL_VERSION_MAJOR >= 3
// const char *options[3] = { "MULTILINE=YES", "FORMAT=WKT2", NULL };
// OGRErr err = oSRS.exportToWkt(&pszWKT, options);
Expand Down

0 comments on commit fca42bd

Please sign in to comment.