-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msexport creates wrong LAYER PROJECTION #10732
Comments
Author Name: Gary Sherman (@g-sherman) Can you provide (attach) the .qgs file? My tests indicate that layer PROJECTION sections are written out properly. |
Author Name: jmckenna-dmsolutions-ca - (jmckenna-dmsolutions-ca -) why is 'sourcesrs' set to latlong? |
Author Name: anonymous - (anonymous -) That's the default map projection if you don't specify one. Try setting the projection using Project Properties. If you have already done that, try setting the default projection for QGIS using the Projection tab under Options. Then save your project file and see if sourcesrs is correct. Sounds like the bug is either in the project output code, or the python mapserver export script. |
Author Name: jmckenna-dmsolutions-ca - (jmckenna-dmsolutions-ca -) I already set a custom projection in the Project Properties, so I also set the "Global default projection" in Options to this same custom projection...but the 'sourcesrs' in the .qgs file is still set to latlong for some reason. Is it possible that I am not setting these projections properly? (is sourcesrs set correctly for other people?) |
Author Name: Gary Sherman (@g-sherman) The sourcesrs should be the same as the SRS for the layer. In your sample, province2.shp is in WGS84 (4326). Is this true? The destination SRS is your projected coordinate system. In the map file I exported, it had the map projection set properly and defined the layer projection as WGS84. This is correct, assuming province2.shp is actually in WGS84. |
Author Name: jeffmckenna-gmail-com - (jeffmckenna-gmail-com -) This bug has to do with this source SRS being incorrectly set: here is part of my original entry into this bug: "In my test case, I set a custom projection in QGIS for the map, however the msexport utility outputs a mapfile with the LAYER PROJECTION set to latlong for some reason (the MAP PROJECTION object is correctly set to the custom projection)." province2.shp is in the custom projection that I mentioned (not latlong), yet msexport assigns a latlong projection to the LAYER incorrectly. I would assume that the msexport utility would output the custom projection to the mapfile's MAP projection object (which it does correctly), and then outputs no LAYER projection in my case. |
Author Name: Gary Sherman (@g-sherman) I think this is fixed. Due to some internal constraints, the PROJECTION section is always written out for the layer but should be correct.
|
Author Name: Anónimo (Anónimo) Milestone Version 0.9.1 deleted |
Author Name: jmckenna-dmsolutions-ca - (jmckenna-dmsolutions-ca -)
Original Redmine Issue: 673
Assignee: nobody -
In my test case, I set a custom projection in QGIS for the map, however the msexport utility outputs a mapfile with the LAYER PROJECTION set to latlong for some reason (the MAP PROJECTION object is correctly set to the custom projection).
If there is no way in QGIS to set a LAYER projection, then the msexport utility should just use the projection from the project properties for the mapfile's MAP projection object, and then not include any projection objects at the layer level.
The text was updated successfully, but these errors were encountered: