Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6591331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:24:37+00:00 2026-05-25T17:24:37+00:00

First off, gist here Map.svg in the gist is the original Map I’m working

  • 0

First off, gist here

Map.svg in the gist is the original Map I’m working with, got it off wikimedia commons.

Now, there is a land mass off the eastern cost of Texas in that original svg. I removed it using Inkscape, and it re-wrote the path in a strange new way. The diff is included in the gist.

Now this new way of writing the path blows up my parser logic, and I’m trying to understand what happened. I’m hoping someone here knows more about the SVG file format that I do. I will admit I have not read through the entire SVG standard spec, however the parts of it I did read didn’t mention anything about missing commands or relative coordinates. Then again I may have been looking at the incorrect spec, not sure.

The way I understood it, SVG path data was very straight forward, something like this:

(M,L,C)[point{n}] .... [Z] then repeat ad-nauseum

Now the part I’m trying to understand is this new Inkscape has written out what seems like relative coordinates, without commands like L, or L being implied somehow. My gut is telling me what has happened here is obvious to someone. For what it’s worth I’m doing my parsing in C.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:24:38+00:00Added an answer on May 25, 2026 at 5:24 pm

    If you’re parsing SVG, why not look at the SVG specification?

    Start a new sub-path at the given (x,y) coordinate. M (uppercase) indicates that absolute coordinates will follow; m (lowercase) indicates that relative coordinates will follow. If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are treated as implicit lineto commands.

    From: http://www.w3.org/TR/2011/REC-SVG11-20110816/paths.html#PathDataMovetoCommands

    You said,

    The way I understood it, SVG path data was very straight forward, something like this: (M,L,C)[point{n}] .... [Z]

    I don’t know where you got that information. Stop getting your information from that source.

    I will admit I have not read through the entire SVG standard spec…

    Nobody reads the entire spec. Just focus on the part you’re implementing at the moment. You could also start with SVG Tiny, and work with that subset for now.

    Path Grammar is where you should start when writing a parser. If you can’t read it, then buy a book on compilers.

    Path grammar: http://www.w3.org/TR/2011/REC-SVG11-20110816/paths.html#PathDataBNF

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, I'm following the practice found here for Rails concerns (great idea!): https://gist.github.com/1014971
first off I'm a noob to PHP but here is my problem. I am
First off, I'm using XCode 4.0.2. Okay, here is my issue. I can build
First off I apologize if there is another post out there that answers this,
First off, here's my code: Sub SimulatePortfolio() Dim lambda As Double Dim num As
First off, I know there are ways to make it so that text can
First off I'm horrible with regex, hoping I can get some help here cause
First off, I want to apologize beforehand, as I know there is a lot
First off, there's a bit of background to this issue available on my blog:
First off, I'm working on an app that's written such that some of your

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.