#3414: v.import: ERROR: Invalid e-w resolution field: 0 when importing EU_LAEA point into Sinusoidal location ---------------------------------+------------------------- Reporter: neteler | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: 7.2.2 Component: Projections/Datums | Version: svn-trunk Resolution: | Keywords: v.import CPU: Unspecified | Platform: Linux ---------------------------------+-------------------------
Comment (by neteler): Thanks for the new updated no_vector_default_region_2.diff, tested here: {{{ GRASS 7.3.svn (modis_sinusoidal):~ > v.import --v in=~/point_eu_laea.shp out=point_eu_laea2Creating temporary location for </home/mundialis/point_eu_laea.shp>... Using OGR driver 'ESRI Shapefile' Projection of dataset does not appear to match current location. GRASS LOCATION PROJ_INFO is: name: unnamed a: 6371007.181 es: 0 proj: sinu lon_0: 0 x_0: 0 y_0: 0 no_defs: defined Import dataset PROJ_INFO is: name: ETRS89_ETRS_LAEA datum: etrs89 ellps: grs80 proj: laea lat_0: 52 lon_0: 10 x_0: 4321000 y_0: 3210000 no_defs: defined In case of no significant differences in the projection definitions, use the -o flag to ignore them and use current location definition. Consider generating a new location with 'location' parameter from input data set. switch to temp location -PROJ_INFO------------------------------------------------- name : ETRS89_ETRS_LAEA datum : etrs89 ellps : grs80 proj : laea lat_0 : 52 lon_0 : 10 x_0 : 4321000 y_0 : 3210000 no_defs : defined -PROJ_UNITS------------------------------------------------ unit : Meter units : Meters meters : 1 Importing </home/mundialis/point_eu_laea.shp> ... Using OGR driver 'ESRI Shapefile' Projection of input dataset and current location appear to match Check if OGR layer <point_eu_laea> contains polygons... 100% Importing 1 features Using native format Default driver / database set to: driver: sqlite database: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db Column name <cat> renamed to <cat_> Importing 1 features (OGR layer <point_eu_laea>)... 100% ----------------------------------------------------- Building topology for vector map <point_eu_laea2@PERMANENT>... Registering primitives... One primitive registered One vertex registered Building areas... 100% 0 areas built 0 isles built Attaching islands... Attaching centroids... 100% Topology was built Number of nodes: 0 Number of primitives: 1 Number of points: 1 Number of lines: 0 Number of boundaries: 0 Number of centroids: 0 Number of areas: 0 Number of isles: 0 Reprojecting <point_eu_laea2>... Input Projection Parameters: +proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +no_defs +a=6378137 +rf=298.257222101 +towgs84=0.000,0.000,0.000 Input Unit Factor: 1 Output Projection Parameters: +proj=sinu +lon_0=0 +x_0=0 +y_0=0 +no_defs +a=6371007.181 +b=6371007.181 Output Unit Factor: 1 Using native format Reprojecting primitives ... Building topology for vector map <point_eu_laea2@Germany_LST_1km_daily_gdd_2016>... Registering primitives... One primitive registered One vertex registered Building areas... 100% 0 areas built 0 isles built Attaching islands... Attaching centroids... 100% Topology was built Number of nodes: 0 Number of primitives: 1 Number of points: 1 Number of lines: 0 Number of boundaries: 0 Number of centroids: 0 Number of areas: 0 Number of isles: 0 }}} Now the file is smoothly imported :-) -- Ticket URL: <https://trac.osgeo.org/grass/ticket/3414#comment:14> GRASS GIS <https://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev