Hi,

unfortunately the problem is not due to switched axis. The polygons are
displayed in the correct quadrant but shifted to south west.
I played arount with the parameters in the PRJ file and found out that
everything is OK as soon as I replace

PROJECTION["Mercator"],
by

   PROJECTION["Popular Visualisation Pseudo Mercator",
AUTHORITY["EPSG","1024"]],

   PARAMETER["semi_minor", 6378137.0],



everything is OK.


I am going to contact the MetaCRS group as Jody suggested.


Best Regards,

Andreas




2014-08-28 4:41 GMT+02:00 Andrea Aime <andrea.a...@geo-solutions.it>:

> Hi,
> did you remember to force the EPSG database into lon/lat mode?
> Its natural state is lat/lon mode
>
> http://docs.geotools.org/stable/userguide/library/referencing/order.html
>
> Cheers
> Andrea
>
>
> On Wed, Aug 27, 2014 at 6:56 PM, Andreas Bergmann <bergmann...@gmail.com>
> wrote:
>
>> Hi,
>>
>>
>> I have problems with processing shapefiles in geotools, that have been
>> created with QGIS desktop
>>
>>
>> The situation:
>>
>> I have a shapefile where geometry has coordinates according to the CRS
>> EPSG:3857
>>
>> The WKT definition in the prj file is different depending on which tool I
>> use to export the shapefile:
>>
>> Created with Geotools:
>>
>> PROJCS["WGS 84 / Pseudo-Mercator",
>>
>>    GEOGCS["WGS 84",
>>
>>    DATUM["World Geodetic System 1984",
>>
>>    SPHEROID["WGS 84", 6378137.0, 298.257223563,
>> AUTHORITY["EPSG","7030"]],
>>
>>    AUTHORITY["EPSG","6326"]],
>>
>>    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
>>
>>    UNIT["degree", 0.017453292519943295],
>>
>>    AXIS["Geodetic latitude", NORTH],
>>
>>    AXIS["Geodetic longitude", EAST],
>>
>>    AUTHORITY["EPSG","4326"]],
>>
>>    PROJECTION["Popular Visualisation Pseudo Mercator",
>> AUTHORITY["EPSG","1024"]],
>>
>>    PARAMETER["semi_minor", 6378137.0],
>>
>>    PARAMETER["latitude_of_origin", 0.0],
>>
>>    PARAMETER["central_meridian", 0.0],
>>
>>    PARAMETER["scale_factor", 1.0],
>>
>>    PARAMETER["false_easting", 0.0],
>>
>>    PARAMETER["false_northing", 0.0],
>>
>>    UNIT["m", 1.0],
>>
>>    AXIS["Easting", EAST],
>>
>>    AXIS["Northing", NORTH],
>>
>>    AUTHORITY["EPSG","3857"]
>>
>> ]
>>
>>
>>
>> Created with QGIS:
>>
>> PROJCS["WGS_84_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"],
>>
>>    PARAMETER["central_meridian",0],
>>
>>    PARAMETER["false_easting",0],
>>
>>    PARAMETER["false_northing",0],
>>
>>    UNIT["Meter",1],
>>
>>    PARAMETER["standard_parallel_1",0.0]
>>
>> ]
>>
>>
>> The problem is that the position of the geometry is completely wrong
>> ('somewhere in the woods') when I import a QGIS created shapefile into a
>> getools application.
>>
>> How can this be fixed?
>>
>> Which of the missing attributes produce this error?
>>
>>
>> Best regards,
>>
>> Andreas
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>> _______________________________________________
>> GeoTools-GT2-Users mailing list
>> GeoTools-GT2-Users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>
>
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/NWWaa2 for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to