On Thu, Jul 3, 2014 at 7:46 AM, maven apache wrote:
> Hi:
>
> I solve the problem by set the property:
>
> System.setProperty("org.geotools.referencing.forceXY", "true");
>
> I am not sure why but it works.
>
The GeoTools referencing subsystem by default uses the axis order of the
official EPSG
Hi:
I solve the problem by set the property:
System.setProperty("org.geotools.referencing.forceXY", "true");
I am not sure why but it works.
On Thu, Jul 3, 2014 at 11:20 AM, maven apache
wrote:
> Hi Oleksandr Huziy:
>
> I am afraid I can not share the file because of the company policy.
>
>
Hi Oleksandr Huziy:
I am afraid I can not share the file because of the company policy.
However you remind me to check the data. And I copy just one feature and
save it as another shapfile, and I can get the image.
But the original file have 20,000 + features, so I can not find which one
cause
Could you please share your shape file for testing?
It seems that your calculated box is very small, try to zoom out a bit
If I remember correctly there is a precision limit in geotools, it is
certainly used for operations, not sure what happens when rendering
Cheers
2014-07-02 20:08 GM
I have checked the bounds, and I am sure they are the same.
To make it sure again:
System.out.println("map bounds:" + map.getMaxBounds());
double[] box = getWGS84LngLat(9275, 21747, 16);
System.out.println(String.format("calculated box:%s %s %s %s", box[0],
box[1], box[2], box[3]));
ReferencedE
Hi:
Could you print map.getMaxBounds() and box and compare them? My guess is
that the projection in your shape file is not epsg:4326 or something wrong
with your order maybe it expects lat/lon order ie {bottom, left, top,
right}??
Cheers
2014-07-02 4:48 GMT-04:00 maven apache :
> Hi;
>
> I am