Skip to content
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

Closed
qgib opened this issue Mar 20, 2007 · 8 comments
Closed

msexport creates wrong LAYER PROJECTION #10732

qgib opened this issue Mar 20, 2007 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Mar 20, 2007

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.


@qgib
Copy link
Contributor Author

qgib commented Mar 20, 2007

Author Name: Gary Sherman (@g-sherman)


Can you provide (attach) the .qgs file? My tests indicate that layer PROJECTION sections are written out properly.

@qgib
Copy link
Contributor Author

qgib commented Mar 20, 2007

Author Name: jmckenna-dmsolutions-ca - (jmckenna-dmsolutions-ca -)


why is 'sourcesrs' set to latlong?

@qgib
Copy link
Contributor Author

qgib commented Mar 20, 2007

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.

@qgib
Copy link
Contributor Author

qgib commented Mar 21, 2007

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?)

@qgib
Copy link
Contributor Author

qgib commented Mar 29, 2007

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.

@qgib
Copy link
Contributor Author

qgib commented Apr 2, 2007

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.

@qgib
Copy link
Contributor Author

qgib commented Nov 16, 2007

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.


  • status_id was changed from Open to Closed
  • resolution was changed from to fixed

@qgib
Copy link
Contributor Author

qgib commented Aug 21, 2009

Author Name: Anónimo (Anónimo)


Milestone Version 0.9.1 deleted

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant