Smart M.App discussions

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Contributor
Posts: 54
Registered: ‎05-30-2016

How to prepare Vector Data in Geomedia for upload

[ Edited ]

Hi all,

I tried to upload the "States" shapefie, which was exported from Geomdeia USSampleData Warehouse, Using Geomedia professional 2016.

While processing, I got an error mesage  without much decription. Just "ERROR". 

Same error is raised for Any other Shp which is exported by Geomedia, no matter which EPSG. I get an error also if I try to upload a Geojson which was converted from those SHPs.

Other SHPs which I got from other sources worked just fine, also Geojson which were converted from those other.

What can be the reason? How should I prepare Vector data from Geomedia to be succesfully uploaded to Mapp Chest\Studio.

The SHP is attached

 

Thanks!

Highlighted
Staff
Posts: 23
Registered: ‎03-03-2016

Re: How to prepare Vector Data in Geomoedia for upload

Hi Gideon,

 

have you tried to convert the source data to EPSG 4326? When uploading shp file to M.App Chest, please remember to upload all necessary files: 

  • *.shp ; *.dbf ; *.shx.

Best Regards,
Alina

Highlighted
Contributor
Posts: 54
Registered: ‎05-30-2016

Re: How to prepare Vector Data in Geomoedia for upload

Hi Alina,

Yes I tried also with EPSG:4326 and I uploaded *.shp ; *.dbf ;  and *.shx

Attach is a sahpefile  in EPSG:4326 with a single polygon whiich cannot be processed.

Best Regards,

Gideon

Highlighted
Technical Evangelist
Posts: 1,236
Registered: ‎09-11-2015

Re: How to prepare Vector Data in Geomoedia for upload

[ Edited ]

Hi Gideon,

 

The Shapefile data is still in Israeli projection, if I check the PRJ file it contains:

PROJCS["Transverse_Mercator", 
GEOGCS["GCS_Israel_Datum",
DATUM["D_Israel_Datum",
SPHEROID["GRS_1980",6378137,298.257222101]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",31.7343936111111],PARAMETER["central_meridian",35.2045169444444],PARAMETER["scale_factor",1.0000067],PARAMETER["false_easting",219529.58],PARAMETER["false_northing",626907.39],UNIT["Meter",1]]

What you need to do in GeoMedia is to change the GWS coordinate system before exporting the data to EPSG:4326

2.png

 

Then use Manage Data > Export to... > Shapefile and check again if the exported PRJ file contains the expected CRS.

After that I was able to load the data in M.App Chest and view the results.

1.png

 

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Highlighted
Contributor
Posts: 54
Registered: ‎05-30-2016

Re: How to prepare Vector Data in Geomoedia for upload

Thank you Jan,

I see, I guess I missed something in the transformation workflow. Now it is clear.

Anyway,  which SRS's are valid for Raster and for Vector datasets?

Regards,

Gideon

 

Highlighted
Technical Evangelist
Posts: 1,236
Registered: ‎09-11-2015

Re: How to prepare Vector Data in Geomoedia for upload

Hi Gideon,

 

  • The vector data should be in EPSG:4326.
  • The raster data however can be (and must be) in any standard EPSG code.

 

Regards,

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Highlighted
Technical Evangelist
Posts: 9
Registered: ‎03-25-2016

Re: How to prepare Vector Data in Geomedia for upload

Hi All,

 

You can upload into the M.App Chest (and then use it in Smart M.App) shape files in any coordinate system but the following conditions must be met:

 

If your shape files are in EPSG:4326 you need to upload three files:

*.shp

*.shx

*.dbf

 

If your shape files are in other SRS than EPSG:4326 you must also upload *.prj file with proper SRS definition.

 

It should be noted that PRJ file must contain the optional AUTHORITY entry, which describes any standard designation for projection.

For example the PRJ file which is generated by GeoMedia during data export to shape files is deprived from AUTHORITY entry, therefore you need to add it manually at the end of file.

 

Best Regards,

Mateusz

Highlighted
Contributor
Posts: 54
Registered: ‎05-30-2016

Re: How to prepare Vector Data in Geomedia for upload

Hi Mateusz,

That exapins it.

Thank you very much,

Gideon

Highlighted
Technical Evangelist
Posts: 24
Registered: ‎11-16-2015

Re: How to prepare Vector Data in Geomedia for upload

Hello

Can you include here an example of the .prj file with the AUTHORITY entrance needed.

This will help everybody as an example

Best regards

Bego

Highlighted
Technical Evangelist
Posts: 9
Registered: ‎03-25-2016

Re: How to prepare Vector Data in Geomedia for upload

Hi All,

 

Here is the sample PRJ file for EPSG:3857 SRS with optional AUTHORITY entry:

 

PROJCS["WGS_1984_Pseudo_Mercator",

                        GEOGCS["GCS_WGS_1984",

                                    DATUM["D_WGS_1984",

                                                SPHEROID["WGS_1984",6378137,298.257223563]

                                    ],

                                    PRIMEM["Greenwich",0],

                                    UNIT["Degree",0.017453292519943295]

            ],

            PROJECTION["Mercator_Auxiliary_Sphere"],

            PARAMETER["false_easting",0],

            PARAMETER["false_northing",0],

            PARAMETER["central_meridian",0],

            PARAMETER["standard_parallel_1",0],

            PARAMETER["Auxiliary_Sphere_Type",0],

            UNIT["Meter",1],

            AUTHORITY["EPSG",3857]

]

 

Please note that normally a PRJ file contains all the text on a single line with no extra spaces.  Here it is reformatted for better clarity.

 

 

Best Regards,

 

Mateusz