Hi Phil,


I can confirm that your solution works: I just copied one of these prj-files 
and now it displaying correctly.



Thanks again,



Arjen



From: Arjen Markus [mailto:arjen.mar...@deltares.nl]
Sent: Thursday, March 26, 2015 12:26 PM
To: Phil Rosenberg
Cc: plplot-devel@lists.sourceforge.net
Subject: Re: [Plplot-devel] Shapefile incorrectly displayed


Hi Phil,



Thanks for the update - the prj-file should be available somewhere ... Ah, I 
see: for this particular file it was missing. I have a number of additional 
shapefiles for the same area and the same projection and they have an 
accompanying prj-file. That ought to solve it. I will try it.



Regards,



Arjen


> -----Original Message-----
> From: Phil Rosenberg [mailto:p.d.rosenb...@gmail.com]
> Sent: Thursday, March 26, 2015 11:52 AM
> To: Arjen Markus
> Cc: plplot-devel@lists.sourceforge.net
> Subject: Re: [Plplot-devel] Shapefile incorrectly displayed
>
> Oh and one other point. I found a bug which causes a crash if you include the 
> .shp
> extension on the map filename. I will commit the fix post release, but in the
> meantime just ensure you omit the extension.
>
> Phil
>
> On 26 March 2015 at 10:46, Phil Rosenberg <p.d.rosenb...@gmail.com> wrote:
> > Hi Arjen
> > Sorry this took me so long to look at.
> >
> > Yes you are correct that the problem arises due to the data not being
> > in lat/lon. To deal with this you need a projection metadata file
> > which has the same filename as the shapefile but a .prj extension. If
> > this file is missing then plplot assumes that the data is lat/lon in
> > degrees so wraps it around the globe - hence the issues you are
> > seeing. If the file exists then plplot only looks at the first 6
> > characters of the file. If these are "PROJCS" then this indicates that
> > the data is projected data and it will not wrap round. If it is
> > anything else (the only other valid option at the moment is GEOGCS)
> > then it assumes that the data is lat/lon in degrees.
> >
> > There is actually an option for having lat/lon in some other units,
> > but I only just found this out now when reading
> > http://support.esri.com/cn/knowledgebase/techarticles/detail/14056.
> >
> > So to fix your problem just create a .prj file containing the
> > characters PROJCS and things will work. If you want to create a full
> > .prj file for your data set then there are details in that link. I
> > presume other viewers make the opposite assumption and assume a
> > projected data set unless they find a .prj file containing GEOGCS.
> > Perhaps we should change our default to match?
> >
> > I assume this behaviour isn't documented, I really should add it and
> > will when I get time.
> >
> > Phil
> >
> > On 24 March 2015 at 06:30, Arjen Markus <arjen.mar...@deltares.nl> wrote:
> >> Hi Phil,
> >>
> >>
> >>
> >> I have just sent you privately a zip file with all the stuff. If you
> >> have not received it (spam filters and virus checkers are sometimes
> >> rather aggressive against such attachments), let me know. (Sending it
> >> directly to you seemed to me to put less strain on the mailing list.)
> >>
> >>
> >>
> >> Regards,
> >>
> >>
> >>
> >> Arjen
> >>
> >>
> >>
> >>> -----Original Message-----
> >>> From: Phil Rosenberg [mailto:p.d.rosenb...@gmail.com]
> >>> Sent: Monday, March 23, 2015 5:44 PM
> >>> To: Arjen Markus
> >>> Cc: plplot-devel@lists.sourceforge.net
> >>> Subject: Re: [Plplot-devel] Shapefile incorrectly displayed
> >>>
> >>
> >>> Hi Arjen
> >>> Could you send me the shapefile and all associated ancillary files
> >>> and I'll have a look it this?
> >>>
> >>> Phil
> >>>
> >>> On 20 March 2015 at 13:51, Arjen Markus <arjen.mar...@deltares.nl> wrote:
> >>> > Hi everyone,
> >>> >
> >>> >
> >>> >
> >>> > I know we are in a code freeze, but I ran into a curious problem
> >>> > with the new plmapfill routines to handle "shape files". While the
> >>> > Plplot example x19 works very nicely, I have a shape file where
> >>> > this is not the case. It may have to do with the use of UTM (x/y)
> >>> > coordinates instead of lat/lon, but the symptom is that the
> >>> > vertical coordinate is scaled and displayed correctly whereas the
> >>> > horizontal coordinate is not. The elements appear to be contained
> >>> > in a narrow box. When I zoom in, the network I expect to see is a
> >>> > bunch of short and unconnected lines. I know the file contains the
> >>> > correct information, because if I use a different viewer I do get the 
> >>> > sort of
> network I expect.
> >>> >
> >>> >
> >>> >
> >>> > I have attached two screenshots - they should cover the same
> >>> > coordinates (minus the text) - and the source code for the program.
> >>> >
> >>> >
> >>> >
> >>> > Any thoughts?
> >>> >
> >>> >
> >>> >
> >>> > Regards,
> >>> >
> >>> >
> >>> >
> >>> > Arjen
> >>> >
> >>> >
> >>> >
> >>> > DISCLAIMER: This message is intended exclusively for the
> >>> > addressee(s) and may contain confidential and privileged
> >>> > information. If you are not the intended recipient please notify
> >>> > the sender immediately and destroy this message. Unauthorized use,
> >>> > disclosure or copying of this message is strictly prohibited. The
> >>> > foundation 'Stichting Deltares', which has its seat at Delft, The
> >>> > Netherlands, Commercial Registration Number 41146461, is not
> >>> > liable in any way whatsoever for consequences and/or damages
> >>> > resulting from the improper, incomplete and untimely dispatch, receipt 
> >>> > and/or
> content of this e-mail.
> >>> >
> >>> > ------------------------------------------------------------------
> >>> > ----
> >>> > -------- Dive into the World of Parallel Programming The Go
> >>> > Parallel Website, sponsored by Intel and developed in partnership
> >>> > with Slashdot Media, is your hub for all things parallel software
> >>> > development, from weekly thought leadership blogs to news, videos,
> >>> > case studies, tutorials and more. Take a look and join the conversation 
> >>> > now.
> >>> > http://goparallel.sourceforge.net/
> >>> > _______________________________________________
> >>> > Plplot-devel mailing list
> >>> > Plplot-devel@lists.sourceforge.net
> >>> > https://lists.sourceforge.net/lists/listinfo/plplot-devel
> >>> >
> >>
> >> DISCLAIMER: This message is intended exclusively for the addressee(s)
> >> and may contain confidential and privileged information. If you are
> >> not the intended recipient please notify the sender immediately and
> >> destroy this message. Unauthorized use, disclosure or copying of this
> >> message is strictly prohibited. The foundation 'Stichting Deltares',
> >> which has its seat at Delft, The Netherlands, Commercial Registration
> >> Number 41146461, is not liable in any way whatsoever for consequences
> >> and/or damages resulting from the improper, incomplete and untimely
> >> dispatch, receipt and/or content of this e-mail.
DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.
DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to